diff options
| author | Karl Heuer | 1998-12-10 03:25:15 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-12-10 03:25:15 +0000 |
| commit | e88b8369a672de0477aa45252fb4341bf45d910b (patch) | |
| tree | 5681b8b5dda2b112c8007d353850eb1ff6a69c7f | |
| parent | 12b0f4514ba7b52219fb25db3a820387984cd701 (diff) | |
| download | emacs-e88b8369a672de0477aa45252fb4341bf45d910b.tar.gz emacs-e88b8369a672de0477aa45252fb4341bf45d910b.zip | |
(load-history-loaded): defvar moved to help.el.
| -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 |