diff options
| author | Glenn Morris | 2012-09-24 14:22:10 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-09-24 14:22:10 -0400 |
| commit | 289c24bdfd92c06a726ebbb22e5a3c781227bd01 (patch) | |
| tree | 214065e5d9366bf1b58794478a48ad018221261e | |
| parent | 8fb8b88f2d1ac6dd0feb3c590614257f8fad0fee (diff) | |
| download | emacs-289c24bdfd92c06a726ebbb22e5a3c781227bd01.tar.gz emacs-289c24bdfd92c06a726ebbb22e5a3c781227bd01.zip | |
* eshell/esh-cmd.el (eshell-find-alias-function): Tighten up file-name regexp.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/eshell/esh-cmd.el | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c1f205eeaf4..270d548b718 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-09-24 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * eshell/esh-cmd.el (eshell-find-alias-function): | ||
| 4 | Tighten up file-name regexp. (Bug#12499) | ||
| 5 | |||
| 1 | 2012-09-24 Fabián Ezequiel Gallina <fgallina@cuca> | 6 | 2012-09-24 Fabián Ezequiel Gallina <fgallina@cuca> |
| 2 | 7 | ||
| 3 | Enhancements for triple-quote string syntax. | 8 | Enhancements for triple-quote string syntax. |
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." | |||
| 1218 | ;; If the function exists, but is defined in an eshell module | 1218 | ;; If the function exists, but is defined in an eshell module |
| 1219 | ;; that's not currently enabled, don't report it as found | 1219 | ;; that's not currently enabled, don't report it as found |
| 1220 | (if (and file | 1220 | (if (and file |
| 1221 | (string-match "\\(em\\|esh\\)-\\(.*\\)\\(\\.el\\)?\\'" file)) | 1221 | (string-match "\\(em\\|esh\\)-\\([[:alnum:]]+\\)\\(\\.elc?\\)?\\'" |
| 1222 | file)) | ||
| 1222 | (let ((module-sym | 1223 | (let ((module-sym |
| 1223 | (intern (file-name-base (concat "eshell-" (match-string 2 file)))))) | 1224 | (intern (file-name-base (concat "eshell-" (match-string 2 file)))))) |
| 1224 | (if (and (functionp sym) | 1225 | (if (and (functionp sym) |