(toplevel): Load defgroup's differently;

patch from John.
This commit is contained in:
Gerd Moellmann 2000-06-26 15:06:07 +00:00
parent d6d5905738
commit cab90cd857

View file

@ -71,8 +71,9 @@ customizing the variable `eshell-modules-list'."
;; documentation can be provided when the user customize's
;; `eshell-modules-list'.
(eval-when-compile
(when (equal (file-name-nondirectory byte-compile-current-file)
"esh-module.el")
(when (and byte-compile-current-file
(equal (file-name-nondirectory byte-compile-current-file)
"esh-module.el"))
(let* ((directory (file-name-directory byte-compile-current-file))
(elc-file (expand-file-name "esh-groups.elc" directory)))
(eshell-load-defgroups directory)