aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorEli Zaretskii2000-09-02 05:36:27 +0000
committerEli Zaretskii2000-09-02 05:36:27 +0000
commit5514ba5c2a30f91458afa711499be96e970db7bd (patch)
tree6f2a865d5a72cb6c39801245815a76b25eb4fa3b /lisp/eshell
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.
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/esh-module.el14
1 files changed, 12 insertions, 2 deletions
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)