]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-number-regexp): Now that number conversions only happen for
authorJohn Wiegley <johnw@newartisans.com>
Thu, 10 May 2001 03:30:15 +0000 (03:30 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Thu, 10 May 2001 03:30:15 +0000 (03:30 +0000)
Lisp function calls, the number regexp should now match all integer
and floating point forms.

lisp/eshell/esh-util.el

index 440cf01d607b3d86faffe0b65449e7e15a797a3b..62c72af02ca284e16bcf9d89c2e37e92de8c49fe 100644 (file)
@@ -88,7 +88,7 @@ Numeric form is tested using the regular expression
   :type 'boolean
   :group 'eshell-util)
 
-(defcustom eshell-number-regexp "\\(0\\|-?[1-9][0-9]*\\(\\.[0-9]+\\)?\\)"
+(defcustom eshell-number-regexp "-?\\([0-9]*\\.\\)?[0-9]+\\(e[-0-9.]+\\)?"
   "*Regular expression used to match numeric arguments.
 If `eshell-convert-numeric-arguments' is non-nil, and an argument
 matches this regexp, it will be converted to a Lisp number, using the