Function: file-provides

file-provides is a byte-compiled function defined in loadhist.el.gz.

Signature

(file-provides FILE)

Documentation

Return the list of features provided by FILE as it was loaded.

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-provides (file)
  "Return the list of features provided by FILE as it was loaded.
FILE can be a file name, or a library name.
A library name is equivalent to the file name that `load-library' would load."
  (let (provides)
    (dolist (x (file-loadhist-lookup file) provides)
      (when (eq (car-safe x) 'provide)
	(push (cdr x) provides)))))