Mercurial > emacs
diff lisp/eshell/esh-cmd.el @ 37450:b1c5785dbec5
(eshell-find-alias-function): Corrected the fix from last night, since
it wasn't finding eshell/cd.
author | John Wiegley <johnw@newartisans.com> |
---|---|
date | Tue, 24 Apr 2001 20:48:14 +0000 |
parents | f4b209194d8c |
children | 4dc446a29001 |
line wrap: on
line diff
--- a/lisp/eshell/esh-cmd.el Tue Apr 24 20:47:45 2001 +0000 +++ b/lisp/eshell/esh-cmd.el Tue Apr 24 20:48:14 2001 +0000 @@ -1293,8 +1293,10 @@ (intern (file-name-sans-extension (file-name-nondirectory (concat "eshell-" (match-string 2 file))))))) - (if (and (eshell-using-module module-sym) - (memq module-sym (eshell-subgroups 'eshell))) + (if (and (functionp sym) + (or (null module-sym) + (eshell-using-module module-sym) + (memq module-sym (eshell-subgroups 'eshell)))) sym)) ;; Otherwise, if it's bound, return it. (if (functionp sym)