summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorRomain Francoise <romain@orebokech.com>2005-10-22 17:34:49 +0000
committerRomain Francoise <romain@orebokech.com>2005-10-22 17:34:49 +0000
commite8fbc5e02398f6a00c999efc4d66054b94443d24 (patch)
treea7b569b649ebeb397dcb4f6f70ebc14fbd725792 /lisp/subr.el
parent6d1e17be5b0fb57bacb25b7c7708b4b118343761 (diff)
downloademacs-e8fbc5e02398f6a00c999efc4d66054b94443d24.tar.gz
(eval-after-load): Convert library name to an absolute file name using
locate-library, since load-history no longer has library names in it.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 5c662e9524d..04b36897f39 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1350,7 +1350,8 @@ evaluated whenever that feature is `provide'd."
;; Make sure `load-history' contains the files dumped with
;; Emacs for the case that FILE is one of them.
;; (load-symbol-file-load-history)
- (assoc file load-history))
+ (when (locate-library file)
+ (assoc (locate-library file) load-history)))
(eval form))))
form)