]> git.eshelyaron.com Git - emacs.git/commitdiff
(toplevel): Load defgroup's differently;
authorGerd Moellmann <gerd@gnu.org>
Mon, 26 Jun 2000 15:06:07 +0000 (15:06 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 26 Jun 2000 15:06:07 +0000 (15:06 +0000)
patch from John.

lisp/eshell/esh-module.el

index df447b0f2dc2b3c932b4986a3df9e0bd853fedcb..67acb6ac99fa88619f2e843d902cc22f17fcc402 100644 (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)