Function: file-loadhist-lookup
file-loadhist-lookup is a byte-compiled function defined in
loadhist.el.gz.
Signature
(file-loadhist-lookup FILE)
Documentation
Return the load-history element for FILE.
FILE can be a file name, or a library name.
A library name is equivalent to the file name that load-library would load.
Source Code
;; Defined in /usr/src/emacs/lisp/loadhist.el.gz
(defun file-loadhist-lookup (file)
"Return the `load-history' element for FILE.
FILE can be a file name, or a library name.
A library name is equivalent to the file name that `load-library' would load."
;; First look for FILE as given.
(let ((symbols (assoc file load-history)))
;; Try converting a library name to an absolute file name.
(and (null symbols)
(let ((absname
(locate-file file load-path (get-load-suffixes))))
(and absname (not (equal absname file))
(setq symbols (cdr (assoc absname load-history))))))
symbols))