From cee38ad6eca330312e96f02e8b11e1a2a849c824 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 10 May 2001 03:30:15 +0000 Subject: [PATCH] (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. --- lisp/eshell/esh-util.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 :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 -- 2.39.5