Mercurial > emacs
changeset 23285:76798d29cb2b
(load-history-loaded): New variable.
(symbol-file): Load etc/fns-VERSION.el if that has not been done.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 21 Sep 1998 16:32:55 +0000 |
parents | 38519676398c |
children | 3ccc2a1aa6fa |
files | lisp/loadhist.el |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/loadhist.el Mon Sep 21 16:31:46 1998 +0000 +++ b/lisp/loadhist.el Mon Sep 21 16:32:55 1998 +0000 @@ -31,9 +31,18 @@ ;;; Code: +(defvar load-history-loaded nil + "Non-nil means we have loaded the file `etc/fns-VERSION.el'. +That file records the part of `load-history' for preloaded files, +which is cleared out before dumping to make Emacs smaller.") + (defun symbol-file (sym) "Return the input source from which SYM was loaded. This is a file name, or nil if the source was a buffer with no associated file." + (unless load-history-loaded + (load (expand-file-name (format "fns-%s.el" emacs-version) + data-directory)) + (setq load-history-loaded t)) (catch 'foundit (mapcar (function (lambda (x) (if (memq sym (cdr x)) (throw 'foundit (car x)))))