1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-27 07:41:28 -08:00
emacs/lisp/eshell
Jim Porter 5642bf0b97 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.
2023-01-27 18:03:10 -08:00
..
em-alias.el Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
em-banner.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-basic.el Use proper types for Eshell warnings 2023-01-18 09:14:59 -08:00
em-cmpl.el Make 'eshell-bol' obsolete 2023-01-14 11:09:02 -08:00
em-dirs.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-elecslash.el Make 'eshell-bol' obsolete 2023-01-14 11:09:02 -08:00
em-extpipe.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-glob.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-hist.el Make 'eshell-bol' obsolete 2023-01-14 11:09:02 -08:00
em-ls.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-pred.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-prompt.el Add 'file-user-uid' to get the connection-local effective UID 2023-01-16 17:11:02 -08:00
em-rebind.el Make 'eshell-bol' obsolete 2023-01-14 11:09:02 -08:00
em-script.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-smart.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-term.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-tramp.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
em-unix.el Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
em-xtra.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
esh-arg.el ; * lisp/eshell/esh-arg.el (eshell-prepare-splice): Fix quoting. 2023-01-23 11:37:01 +01:00
esh-cmd.el Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
esh-ext.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
esh-io.el Set the 'field' property for Eshell output 2023-01-14 11:09:02 -08:00
esh-mode.el Use the 'field' property to navigate through Eshell prompts 2023-01-14 11:13:42 -08:00
esh-module.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
esh-opt.el Merge from origin/emacs-29 2023-01-01 05:47:47 -05:00
esh-proc.el Merge from origin/emacs-29 2023-01-27 11:30:38 +01:00
esh-util.el Make 'eshell-number-regexp' into a regular defvar 2023-01-27 18:03:10 -08:00
esh-var.el Add support for negative indices and index ranges in Eshell 2023-01-27 18:03:10 -08:00
eshell.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00