Function: help--loaded-p
help--loaded-p is a byte-compiled function defined in help-fns.el.gz.
Signature
(help--loaded-p FILE)
Documentation
Try and figure out if FILE has already been loaded.
Source Code
;; Defined in /usr/src/emacs/lisp/help-fns.el.gz
(defun help--loaded-p (file)
"Try and figure out if FILE has already been loaded."
;; FIXME: this regexp business is not good enough: for file
;; `toto', it will say `toto' is loaded when in reality it was
;; just cedet/semantic/toto that has been loaded.
(or (let ((feature (intern-soft file)))
(and feature (featurep feature)))
(let* ((re (load-history-regexp file))
(done nil))
(dolist (x load-history)
(and (stringp (car x)) (string-match-p re (car x)) (setq done t)))
done)))