diff options
| -rw-r--r-- | lisp/eshell/esh-module.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/eshell/esh-module.el b/lisp/eshell/esh-module.el index df447b0f2dc..67acb6ac99f 100644 --- a/lisp/eshell/esh-module.el +++ b/lisp/eshell/esh-module.el | |||
| @@ -71,8 +71,9 @@ customizing the variable `eshell-modules-list'." | |||
| 71 | ;; documentation can be provided when the user customize's | 71 | ;; documentation can be provided when the user customize's |
| 72 | ;; `eshell-modules-list'. | 72 | ;; `eshell-modules-list'. |
| 73 | (eval-when-compile | 73 | (eval-when-compile |
| 74 | (when (equal (file-name-nondirectory byte-compile-current-file) | 74 | (when (and byte-compile-current-file |
| 75 | "esh-module.el") | 75 | (equal (file-name-nondirectory byte-compile-current-file) |
| 76 | "esh-module.el")) | ||
| 76 | (let* ((directory (file-name-directory byte-compile-current-file)) | 77 | (let* ((directory (file-name-directory byte-compile-current-file)) |
| 77 | (elc-file (expand-file-name "esh-groups.elc" directory))) | 78 | (elc-file (expand-file-name "esh-groups.elc" directory))) |
| 78 | (eshell-load-defgroups directory) | 79 | (eshell-load-defgroups directory) |