Function: load-history-regexp
load-history-regexp is a byte-compiled function defined in subr.el.gz.
Signature
(load-history-regexp FILE)
Documentation
Form a regexp to find FILE in load-history.
FILE, a string, is described in the function eval-after-load.
Source Code
;; Defined in /usr/src/emacs/lisp/subr.el.gz
;;;; Specifying things to do later.
(defun load-history-regexp (file)
"Form a regexp to find FILE in `load-history'.
FILE, a string, is described in the function `eval-after-load'."
(if (file-name-absolute-p file)
(setq file (file-truename file)))
(concat (if (file-name-absolute-p file) "\\`" "\\(\\`\\|/\\)")
(regexp-quote file)
(if (file-name-extension file)
""
;; Note: regexp-opt can't be used here, since we need to call
;; this before Emacs has been fully started. 2006-05-21
(concat "\\(" (mapconcat #'regexp-quote load-suffixes "\\|") "\\)?"))
"\\(" (mapconcat #'regexp-quote jka-compr-load-suffixes "\\|")
"\\)?\\'"))