Commit 289c24bd authored by Glenn Morris's avatar Glenn Morris
Browse files

* eshell/esh-cmd.el (eshell-find-alias-function): Tighten up file-name regexp.

parent 8fb8b88f
2012-09-24 Glenn Morris <>
* eshell/esh-cmd.el (eshell-find-alias-function):
Tighten up file-name regexp. (Bug#12499)
2012-09-24 Fabián Ezequiel Gallina <fgallina@cuca>
Enhancements for triple-quote string syntax.
......@@ -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?\\)?\\'"
(let ((module-sym
(intern (file-name-base (concat "eshell-" (match-string 2 file))))))
(if (and (functionp sym)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment