]> git.eshelyaron.com Git - emacs.git/commit
Add QUOTED argument to 'eshell-stringify'
authorJim Porter <jporterbugs@gmail.com>
Sun, 20 Oct 2024 22:30:19 +0000 (15:30 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 8 Nov 2024 13:30:31 +0000 (14:30 +0100)
commitbf2e0e293cff3fcc64441533c2650b280c954212
tree70e2d078a85062e9f2dae8953719c63ce3f03957
parent179cc3d7b9ddfb2f1888935bf8d7f08706b75273
Add QUOTED argument to 'eshell-stringify'

This will make it easier to reconstitute numbers that we converted to
strings.

* lisp/eshell/esh-util.el (eshell--numeric-string-p): New function.
(eshell-stringify, eshell-stringify-list): Add QUOTED argument.
(eshell-convert, eshell-list-to-string): Stringify as quoted.

* lisp/eshell/esh-arg.el (eshell--numberlike-p): Remove.
(eshell-concat-1): Pass along QUOTED.

* lisp/eshell/esh-cmd.el (eshell-lisp-command): Use
'eshell--numeric-string-p'.

* lisp/eshell/esh-var.el (eshell-parse-variable):
* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): Stringify as
quoted.

(cherry picked from commit 4d69d3778a51427654965cbcc5bb03611034b656)
lisp/eshell/em-cmpl.el
lisp/eshell/esh-arg.el
lisp/eshell/esh-cmd.el
lisp/eshell/esh-util.el
lisp/eshell/esh-var.el