aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2001-05-10 03:30:15 +0000
committerJohn Wiegley2001-05-10 03:30:15 +0000
commitcee38ad6eca330312e96f02e8b11e1a2a849c824 (patch)
tree771626ddfb9aacc9da65ff22d35baf8f0fdc7a47
parent36e813279d7ca224828eff8538d3eba2d046c304 (diff)
downloademacs-cee38ad6eca330312e96f02e8b11e1a2a849c824.tar.gz
emacs-cee38ad6eca330312e96f02e8b11e1a2a849c824.zip
(eshell-number-regexp): Now that number conversions only happen for
Lisp function calls, the number regexp should now match all integer and floating point forms.
-rw-r--r--lisp/eshell/esh-util.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el
index 440cf01d607..62c72af02ca 100644
--- a/lisp/eshell/esh-util.el
+++ b/lisp/eshell/esh-util.el
@@ -88,7 +88,7 @@ Numeric form is tested using the regular expression
88 :type 'boolean 88 :type 'boolean
89 :group 'eshell-util) 89 :group 'eshell-util)
90 90
91(defcustom eshell-number-regexp "\\(0\\|-?[1-9][0-9]*\\(\\.[0-9]+\\)?\\)" 91(defcustom eshell-number-regexp "-?\\([0-9]*\\.\\)?[0-9]+\\(e[-0-9.]+\\)?"
92 "*Regular expression used to match numeric arguments. 92 "*Regular expression used to match numeric arguments.
93If `eshell-convert-numeric-arguments' is non-nil, and an argument 93If `eshell-convert-numeric-arguments' is non-nil, and an argument
94matches this regexp, it will be converted to a Lisp number, using the 94matches this regexp, it will be converted to a Lisp number, using the