summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-11-14 11:01:26 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-11-14 11:01:26 +0000
commit175acc2dec010dc5edc0321cc14bad086d785082 (patch)
tree3e119f82e43d7a9a817919fe129d5058a43b2bec /lisp
parent746a9754a0272c2c0512ff408322eb62e64a7e44 (diff)
downloademacs-175acc2dec010dc5edc0321cc14bad086d785082.tar.gz
emacs-175acc2dec010dc5edc0321cc14bad086d785082.tar.bz2
emacs-175acc2dec010dc5edc0321cc14bad086d785082.zip
(eshell-lisp-command): Do not late-convert string arguments to numbers
unless the whole argument was seen as a number.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/eshell/esh-cmd.el3
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 74e9cbf75d4..652fbb5813b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
2003-11-14 John Wiegley <johnw@newartisans.com>
+ * eshell/esh-var.el (eshell-parse-variable-ref): Added a backslash
+ that was optional, but obviously missing based on surrounding
+ code.
+
* eshell/esh-cmd.el (eshell-lisp-command): Do not late-convert
string arguments to numbers unless the whole argument was seen as
a number.
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el
index 54f4d6c7739..e944020b1ed 100644
--- a/lisp/eshell/esh-cmd.el
+++ b/lisp/eshell/esh-cmd.el
@@ -1400,7 +1400,8 @@ messages, and errors."
(let ((arg (car args)))
(if (and (stringp arg)
(> (length arg) 0)
- (get-text-property 0 'number arg))
+ (not (text-property-not-all
+ 0 (length arg) 'number t arg)))
(setcar args (string-to-number arg))))
(setq args (cdr args))))
(eshell-apply object eshell-last-arguments))