diff options
Diffstat (limited to 'lisp/eshell/esh-cmd.el')
| -rw-r--r-- | lisp/eshell/esh-cmd.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el index 515a23f81d7..921f08e36f8 100644 --- a/lisp/eshell/esh-cmd.el +++ b/lisp/eshell/esh-cmd.el @@ -1218,7 +1218,8 @@ COMMAND may result in an alias being executed, or a plain command." ;; If the function exists, but is defined in an eshell module ;; that's not currently enabled, don't report it as found (if (and file - (string-match "\\(em\\|esh\\)-\\(.*\\)\\(\\.el\\)?\\'" file)) + (string-match "\\(em\\|esh\\)-\\([[:alnum:]]+\\)\\(\\.elc?\\)?\\'" + file)) (let ((module-sym (intern (file-name-base (concat "eshell-" (match-string 2 file)))))) (if (and (functionp sym) |
