aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorSam Steingold2012-06-26 12:23:01 -0400
committerSam Steingold2012-06-26 12:23:01 -0400
commitd2c32364fd1873a6e9cfa52d2531dfbe500ad297 (patch)
treef567c36975e6d137b55ecca8ddf856cfe6e7de0d /lisp/eshell
parent62efea5e881407a178c5c291575facc17dca8a3f (diff)
downloademacs-d2c32364fd1873a6e9cfa52d2531dfbe500ad297.tar.gz
emacs-d2c32364fd1873a6e9cfa52d2531dfbe500ad297.zip
* lisp/files.el (file-name-base): New convenience function.
* lisp/autoinsert.el, lisp/cus-dep.el, lisp/doc-view.el, lisp/image-dired.el, * lisp/woman.el, lisp/eshell/esh-cmd.el, lisp/progmodes/ada-xref.el, * lisp/progmodes/cc-defs.el, lisp/progmodes/cperl-mode.el, * lisp/progmodes/flymake.el, lisp/progmodes/gud.el, lisp/progmodes/idlwave.el, * lisp/textmodes/ispell.el, lisp/textmodes/reftex-ref.el, * lisp/textmodes/tex-mode.el: Use it. Did not touch cedet and org because they are maintained elsewhere.
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/esh-cmd.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el
index 850cecbc0a5..872d1cdd53e 100644
--- a/lisp/eshell/esh-cmd.el
+++ b/lisp/eshell/esh-cmd.el
@@ -1220,9 +1220,7 @@ COMMAND may result in an alias being executed, or a plain command."
1220 (if (and file 1220 (if (and file
1221 (string-match "\\(em\\|esh\\)-\\(.*\\)\\(\\.el\\)?\\'" file)) 1221 (string-match "\\(em\\|esh\\)-\\(.*\\)\\(\\.el\\)?\\'" file))
1222 (let ((module-sym 1222 (let ((module-sym
1223 (intern (file-name-sans-extension 1223 (intern (file-name-base (concat "eshell-" (match-string 2 file))))))
1224 (file-name-nondirectory
1225 (concat "eshell-" (match-string 2 file)))))))
1226 (if (and (functionp sym) 1224 (if (and (functionp sym)
1227 (or (null module-sym) 1225 (or (null module-sym)
1228 (eshell-using-module module-sym) 1226 (eshell-using-module module-sym)