summaryrefslogtreecommitdiff
path: root/lisp/eshell/em-script.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2001-05-10 03:47:24 +0000
committerJohn Wiegley <johnw@newartisans.com>2001-05-10 03:47:24 +0000
commit127fd3c222486a6349564cb23c21db95f6d3da11 (patch)
treeef93b1ea61b6f82553f98174684d7af2d34c3a3e /lisp/eshell/em-script.el
parentc26f6b27452cd3cd6328e0152feac65f5edfb49e (diff)
downloademacs-127fd3c222486a6349564cb23c21db95f6d3da11.tar.gz
emacs-127fd3c222486a6349564cb23c21db95f6d3da11.tar.bz2
emacs-127fd3c222486a6349564cb23c21db95f6d3da11.zip
Set the property `eshell-no-numeric-conversions' on the following
functions (which all deal with filesystem entities, and never Lisp numerical values): eshell/cd, eshell/pushd, eshell/popd, eshell/ls, eshell/source, eshell/., eshell/man, eshell/rm, eshell/mkdir, eshell/rmdir, eshell/mv, eshell/cp, eshell/ln, eshell/cat, eshell/make, eshell/diff, eshell/locate, eshell/occur, eshell/which, eshell/addpath.
Diffstat (limited to 'lisp/eshell/em-script.el')
-rw-r--r--lisp/eshell/em-script.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/eshell/em-script.el b/lisp/eshell/em-script.el
index 8967426cadf..0dcc4d42e51 100644
--- a/lisp/eshell/em-script.el
+++ b/lisp/eshell/em-script.el
@@ -119,6 +119,8 @@ Invoke the Eshell commands in FILE in a subshell, binding ARGS to $1,
$2, etc.")
(eshell-source-file (car args) (cdr args) t)))
+(put 'eshell/source 'eshell-no-numeric-conversions t)
+
(defun eshell/. (&rest args)
"Source a file in the current environment."
(eshell-eval-using-options
@@ -130,6 +132,8 @@ Invoke the Eshell commands in FILE within the current shell
environment, binding ARGS to $1, $2, etc.")
(eshell-source-file (car args) (cdr args))))
+(put 'eshell/. 'eshell-no-numeric-conversions t)
+
;;; Code:
;;; em-script.el ends here