]> git.eshelyaron.com Git - emacs.git/commitdiff
(eval-after-load): Convert library name to an absolute file name using
authorRomain Francoise <romain@orebokech.com>
Sat, 22 Oct 2005 17:34:49 +0000 (17:34 +0000)
committerRomain Francoise <romain@orebokech.com>
Sat, 22 Oct 2005 17:34:49 +0000 (17:34 +0000)
locate-library, since load-history no longer has library names in it.

lisp/ChangeLog
lisp/subr.el

index fed628ba939d2af613de50e5b3ecbe668a5b89d2..4276c2b536350d1568dd1fa18bc05f1b93c9ee15 100644 (file)
@@ -1,8 +1,14 @@
+2005-10-22  Romain Francoise  <romain@orebokech.com>
+
+       * subr.el (eval-after-load): Convert library name to an absolute
+       file name using locate-library, since load-history no longer has
+       library names in it.
+
 2005-10-22  Richard M. Stallman  <rms@gnu.org>
 
        * files.el (make-temp-file): Moved from subr.el.
        * subr.el (make-temp-file): Moved to files.el.
-       
+
        * window.el (get-buffer-window-list): Moved from subr.el.
        * subr.el (get-buffer-window-list): Moved to window.el.
 
index 5c662e9524d586aac854c0c66a916c47422bbc1a..04b36897f3992d982e7d407522fefe790ed1453e 100644 (file)
@@ -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)