]> git.eshelyaron.com Git - emacs.git/commitdiff
(load-history-loaded): New variable.
authorKarl Heuer <kwzh@gnu.org>
Mon, 21 Sep 1998 16:32:55 +0000 (16:32 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 21 Sep 1998 16:32:55 +0000 (16:32 +0000)
(symbol-file): Load etc/fns-VERSION.el if that has not been done.

lisp/loadhist.el

index 1c727688ce71bf7ec94f30acabfb9d4ae2aa85fb..5cebf2d63c4d0800439c879eed0084c10ca6a7eb 100644 (file)
 
 ;;; 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)))))