diff options
| author | John Wiegley | 2001-05-10 03:30:15 +0000 |
|---|---|---|
| committer | John Wiegley | 2001-05-10 03:30:15 +0000 |
| commit | cee38ad6eca330312e96f02e8b11e1a2a849c824 (patch) | |
| tree | 771626ddfb9aacc9da65ff22d35baf8f0fdc7a47 | |
| parent | 36e813279d7ca224828eff8538d3eba2d046c304 (diff) | |
| download | emacs-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.el | 2 |
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. |
| 93 | If `eshell-convert-numeric-arguments' is non-nil, and an argument | 93 | If `eshell-convert-numeric-arguments' is non-nil, and an argument |
| 94 | matches this regexp, it will be converted to a Lisp number, using the | 94 | matches this regexp, it will be converted to a Lisp number, using the |