aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2000-09-02 05:36:27 +0000
committerEli Zaretskii2000-09-02 05:36:27 +0000
commit5514ba5c2a30f91458afa711499be96e970db7bd (patch)
tree6f2a865d5a72cb6c39801245815a76b25eb4fa3b
parent79cf8e808eed44d1fb836639a6ede0f19b92726d (diff)
downloademacs-5514ba5c2a30f91458afa711499be96e970db7bd.tar.gz
emacs-5514ba5c2a30f91458afa711499be96e970db7bd.zip
(eval-when-compile): Don't lose if esh-module.el's file name
is truncated to DOS 8+3 limits.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/eshell/esh-module.el14
2 files changed, 17 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0a16adc5b5b..bfe171fe673 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12000-09-02 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * eshell/esh-module.el (eval-when-compile): Don't lose if
4 esh-module.el's file name is truncated to DOS 8+3 limits.
5
12000-09-01 John Wiegley <johnw@gnu.org> 62000-09-01 John Wiegley <johnw@gnu.org>
2 7
3 * pcomplete.el (pcomplete-dirs-or-entries): Added a missing 8 * pcomplete.el (pcomplete-dirs-or-entries): Added a missing
diff --git a/lisp/eshell/esh-module.el b/lisp/eshell/esh-module.el
index fec608fc471..edc4cab050d 100644
--- a/lisp/eshell/esh-module.el
+++ b/lisp/eshell/esh-module.el
@@ -73,8 +73,18 @@ customizing the variable `eshell-modules-list'."
73(eval-when-compile 73(eval-when-compile
74 (when (and (boundp 'byte-compile-current-file) 74 (when (and (boundp 'byte-compile-current-file)
75 byte-compile-current-file 75 byte-compile-current-file
76 (equal (file-name-nondirectory byte-compile-current-file) 76 (or
77 "esh-module.el")) 77 (equal (file-name-nondirectory byte-compile-current-file)
78 "esh-module.el")
79 ;; When eshell file names are expanded from a wildcard
80 ;; or by reading the Eshell directory, e.g. when they
81 ;; say "make recompile" in the lisp directory, Emacs on
82 ;; MS-DOS sees a truncated name "esh-modu.el" instead of
83 ;; "esh-module.el".
84 (and (fboundp 'msdos-long-file-names)
85 (null (msdos-long-file-names))
86 (equal (file-name-nondirectory byte-compile-current-file)
87 "esh-modu.el"))))
78 (let* ((directory (file-name-directory byte-compile-current-file)) 88 (let* ((directory (file-name-directory byte-compile-current-file))
79 (elc-file (expand-file-name "esh-groups.elc" directory))) 89 (elc-file (expand-file-name "esh-groups.elc" directory)))
80 (eshell-load-defgroups directory) 90 (eshell-load-defgroups directory)