diff options
| -rw-r--r-- | lisp/loadhist.el | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lisp/loadhist.el b/lisp/loadhist.el index ffa279d6d27..47863f06d0a 100644 --- a/lisp/loadhist.el +++ b/lisp/loadhist.el | |||
| @@ -31,33 +31,6 @@ | |||
| 31 | 31 | ||
| 32 | ;;; Code: | 32 | ;;; Code: |
| 33 | 33 | ||
| 34 | (defvar load-history-loaded nil | ||
| 35 | "Non-nil means we have loaded the file `fns-VERSION.el' in `exec-directory'. | ||
| 36 | That file records the part of `load-history' for preloaded files, | ||
| 37 | which is cleared out before dumping to make Emacs smaller.") | ||
| 38 | |||
| 39 | (defun symbol-file (sym) | ||
| 40 | "Return the input source from which SYM was loaded. | ||
| 41 | The value is normally a string that was passed to `load': | ||
| 42 | either an absolute file name, or a library name | ||
| 43 | \(with no directory name and no `.el' or `.elc' at the end). | ||
| 44 | It can also be nil, if the definition is not associated with any file." | ||
| 45 | (unless load-history-loaded | ||
| 46 | (load (expand-file-name | ||
| 47 | ;; fns-XX.YY.ZZ.el does not work on DOS filesystem. | ||
| 48 | (if (eq system-type 'ms-dos) | ||
| 49 | "fns.el" | ||
| 50 | (format "fns-%s.el" emacs-version)) | ||
| 51 | exec-directory) | ||
| 52 | ;; The file name fns-%s.el already has a .el extension. | ||
| 53 | nil nil t) | ||
| 54 | (setq load-history-loaded t)) | ||
| 55 | (catch 'foundit | ||
| 56 | (mapcar | ||
| 57 | (function (lambda (x) (if (memq sym (cdr x)) (throw 'foundit (car x))))) | ||
| 58 | load-history) | ||
| 59 | nil)) | ||
| 60 | |||
| 61 | (defun feature-symbols (feature) | 34 | (defun feature-symbols (feature) |
| 62 | "Return the file and list of symbols associated with a given FEATURE." | 35 | "Return the file and list of symbols associated with a given FEATURE." |
| 63 | (catch 'foundit | 36 | (catch 'foundit |