# HG changeset patch # User Eli Zaretskii # Date 967872882 0 # Node ID 02375e0f6ea7c735bc018471d1f457b96ca7c318 # Parent a36c3cf583d4bdb5d2a7e361fed05ead4a64c1cd (eval-when-compile): Don't lose if esh-module.el's file name is truncated to DOS 8+3 limits. diff -r a36c3cf583d4 -r 02375e0f6ea7 lisp/eshell/esh-module.el --- a/lisp/eshell/esh-module.el Fri Sep 01 22:48:12 2000 +0000 +++ b/lisp/eshell/esh-module.el Sat Sep 02 05:34:42 2000 +0000 @@ -73,8 +73,18 @@ (eval-when-compile (when (and (boundp 'byte-compile-current-file) byte-compile-current-file - (equal (file-name-nondirectory byte-compile-current-file) - "esh-module.el")) + (or + (equal (file-name-nondirectory byte-compile-current-file) + "esh-module.el") + ;; When eshell file names are expanded from a wildcard + ;; or by reading the Eshell directory, e.g. when they + ;; say "make recompile" in the lisp directory, Emacs on + ;; MS-DOS sees a truncated name "esh-modu.el" instead of + ;; "esh-module.el". + (and (fboundp 'msdos-long-file-names) + (null (msdos-long-file-names)) + (equal (file-name-nondirectory byte-compile-current-file) + "esh-modu.el")))) (let* ((directory (file-name-directory byte-compile-current-file)) (elc-file (expand-file-name "esh-groups.elc" directory))) (eshell-load-defgroups directory)