]> git.eshelyaron.com Git - emacs.git/commit
During completion, convert all Eshell arguments to strings
authorJim Porter <jporterbugs@gmail.com>
Sun, 22 Jan 2023 21:20:46 +0000 (13:20 -0800)
committerJim Porter <jporterbugs@gmail.com>
Tue, 31 Jan 2023 01:49:11 +0000 (17:49 -0800)
commite7d0aa248e684a6de0d655d93bfcfee06cc8ff09
tree57da89cd001aa6ae1501174122eb9e55c6dec4e7
parentcc5a2ed457eb34543bb7aaf6b39663af2599805d
During completion, convert all Eshell arguments to strings

Eshell was already converting some types (numbers, nil) to strings, as
well as fixing up multiple-dot forms like ".../", so this way is more
consistent and should produce fewer problems for Pcomplete functions.

* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): Always
convert parsed arguments to strings.

* test/lisp/eshell/em-cmpl-tests.el (eshell-arguments-equal,
eshell-arguments-equal--equal-explainer): New functions.
(em-cmpl-test/parse-arguments/pipeline)
(em-cmpl-test/parse-arguments/multiple-dots)
(em-cmpl-test/parse-arguments/variable/numeric)
(em-cmpl-test/parse-arguments/variable/nil)
(em-cmpl-test/parse-arguments/variable/list)
(em-cmpl-test/parse-arguments/variable/splice): Use
'eshell-arguments-equal'.
lisp/eshell/em-cmpl.el
test/lisp/eshell/em-cmpl-tests.el