Make #'eval-after-load DTRT for dumped lisp (Closes bug 183)
authorSteve Youngs <steve@sxemacs.org>
Sat, 18 Jun 2016 07:59:37 +0000 (17:59 +1000)
committerSteve Youngs <steve@sxemacs.org>
Sat, 18 Jun 2016 07:59:37 +0000 (17:59 +1000)
* lisp/subr.el (eval-after-load): Make sure FORM is eval'd
immediately if FILE is a dumped lib.

Signed-off-by: Steve Youngs <steve@sxemacs.org>
lisp/subr.el

index d9a37a3..9d1cde1 100644 (file)
@@ -1700,7 +1700,8 @@ is normally called."
        (progn
          (nconc elt (list form))
          ;; If the file has been loaded already, run FORM right away.
-         (and (assoc file load-history)
+         (and (or (assoc file load-history)
+                  (member file preloaded-file-list))
               (eval form)))))
   form)
 (make-compatible 'eval-after-load "")