diff options
author | Jim Porter <jporterbugs@gmail.com> | 2023-01-26 13:11:15 -0800 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2023-01-27 18:03:10 -0800 |
commit | 5642bf0b9726ea299a670e7393695148f31c619b (patch) | |
tree | 02a01b11590bd8f57f78d7eb74ce2338a0b5f98d /lisp/emacs-lisp | |
parent | dabe0b7d40778496ecb308f54999248ea286d89b (diff) | |
download | emacs-5642bf0b9726ea299a670e7393695148f31c619b.tar.gz emacs-5642bf0b9726ea299a670e7393695148f31c619b.tar.bz2 emacs-5642bf0b9726ea299a670e7393695148f31c619b.zip |
Make 'eshell-number-regexp' into a regular defvar
This isn't a very useful thing to customize, since it needs to detect
numbers that can successfully be parsed by 'string-to-number'.
Changes to this variable would therefore likely requiring adjusting
'eshell-convert-to-number' as well.
* lisp/eshell/esh-util.el (eshell-number-regexp): Make into a defvar
and improve the regexp to support more numbers (including infinity and
NaN).
* test/lisp/eshell/esh-util-tests.el
(esh-util-test/eshell-convert-to-number/floating-point)
(esh-util-test/eshell-convert-to-number/floating-point-exponent)
(esh-util-test/eshell-convert-to-number/non-numeric)
(esh-util-test/eshell-convert-to-number/no-convert): New tests.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions