summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-01-11 14:24:02 +0000
committerGerd Moellmann <gerd@gnu.org>2001-01-11 14:24:02 +0000
commit422717d17bf62d24e977ce728fe9d50abaa96a13 (patch)
tree1d66658c48a8564770818229a9dccbec4894315c /lisp/subr.el
parent2c2ff7f28872678cc72bf317a919e5a96a135aa4 (diff)
downloademacs-422717d17bf62d24e977ce728fe9d50abaa96a13.tar.gz
(eval-after-load): Call load-symbol-file-load-history to
ensure that eval-after-load works for files dumped with Emacs.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 2dc159a3424..3a60e15b0e5 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -804,6 +804,9 @@ It does nothing if FORM is already on the list for FILE.
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)))