diff lisp/subr.el @ 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 1486728b21f0
children be18bd846968
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)))