changeset 35231:c19a7d700b6d

(eval-after-load): Call load-symbol-file-load-history to ensure that eval-after-load works for files dumped with Emacs.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 11 Jan 2001 14:23:25 +0000
parents 2c2f69f9b3b7
children 4e0f20145b5f
files lisp/subr.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Thu Jan 11 13:37:34 2001 +0000
+++ b/lisp/subr.el	Thu Jan 11 14:23:25 2001 +0000
@@ -804,6 +804,9 @@
 FILE must match exactly.  Normally FILE is the name of a library,
 with no directory or extension specified, since that is how `load'
 is normally called."
+  ;; Make sure `load-history' contains the files dumped with Emacs
+  ;; for the case that FILE is one of the files dumped with Emacs.
+  (load-symbol-file-load-history)
   ;; Make sure there is an element for FILE.
   (or (assoc file after-load-alist)
       (setq after-load-alist (cons (list file) after-load-alist)))