]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-lisp-command): Do not late-convert string arguments to numbers
authorJohn Wiegley <johnw@newartisans.com>
Fri, 14 Nov 2003 11:01:26 +0000 (11:01 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 14 Nov 2003 11:01:26 +0000 (11:01 +0000)
unless the whole argument was seen as a number.

lisp/ChangeLog
lisp/eshell/esh-cmd.el

index 74e9cbf75d4b7577b7886904debfb6e786b7a423..652fbb5813b76a613b3912dae3f3dba7fe1432d0 100644 (file)
@@ -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.
index 54f4d6c7739eab013768aee43b28108bdf317594..e944020b1edcc1542e3e7f12157d58987204de7e 100644 (file)
@@ -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))