aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2010-01-22 12:23:25 +0200
committerEli Zaretskii2010-01-22 12:23:25 +0200
commit6a801864b18fb130aff93bab09c54a6d454bfc34 (patch)
treed8b88f2a19f6147bf3ad902171804f19e0c386af /lisp
parent2aff7c53068db3b7afcb9e66d8b5329f7d704dbb (diff)
downloademacs-6a801864b18fb130aff93bab09c54a6d454bfc34.tar.gz
emacs-6a801864b18fb130aff93bab09c54a6d454bfc34.zip
Fix bug #5447, whereby loading C:/foo.el.gz on MS-Windows would fail.
jka-compr.el (jka-compr-load): If load-file is not in load-history, try its file-truename version.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/jka-compr.el9
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a308a571874..1dc503e2bd6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-01-22 Eli Zaretskii <eliz@gnu.org>
2
3 * jka-compr.el (jka-compr-load): If load-file is not in
4 load-history, try its file-truename version. (bug#5447)
5
12010-01-21 Alan Mackenzie <acm@muc.de> 62010-01-21 Alan Mackenzie <acm@muc.de>
2 7
3 Fix a situation where deletion of a cpp construct throws an error. 8 Fix a situation where deletion of a cpp construct throws an error.
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el
index 12f48bd96b1..34ffcc90a76 100644
--- a/lisp/jka-compr.el
+++ b/lisp/jka-compr.el
@@ -590,7 +590,14 @@ There should be no more than seven characters after the final `/'."
590 (or nomessage 590 (or nomessage
591 (message "Loading %s...done." file)) 591 (message "Loading %s...done." file))
592 ;; Fix up the load history to point at the right library. 592 ;; Fix up the load history to point at the right library.
593 (let ((l (assoc load-file load-history))) 593 (let ((l (or (assoc load-file load-history)
594 ;; On MS-Windows, if load-file is in
595 ;; temporary-file-directory, it will look like
596 ;; "c:/DOCUME~1/USER/LOCALS~1/foo", whereas
597 ;; readevalloop will record its truename in
598 ;; load-history. Therefore try truename if the
599 ;; original name is not in load-history.
600 (assoc (file-truename load-file) load-history))))
594 ;; Remove .gz and .elc?. 601 ;; Remove .gz and .elc?.
595 (while (file-name-extension file) 602 (while (file-name-extension file)
596 (setq file (file-name-sans-extension file))) 603 (setq file (file-name-sans-extension file)))