]> git.eshelyaron.com Git - emacs.git/commit
Improve the behavior of concatenating parts of Eshell arguments
authorJim Porter <jporterbugs@gmail.com>
Mon, 2 May 2022 23:56:49 +0000 (16:56 -0700)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 3 May 2022 16:23:02 +0000 (18:23 +0200)
commita3a7279a4ab00be69519f98536ec75dc81217b50
tree9f4c6349e0896be9a6bfae8dbe03d1e677c64d63
parent06423b5d1e05d524e8e745f071cbb691b446efd2
Improve the behavior of concatenating parts of Eshell arguments

Previously, concatenating a list to a string would first convert the
list to a string.  Now, the string is concatenated with the last
element of the list.

* lisp/eshell/esh-util.el (eshell-to-flat-string): Make obsolete.

* lisp/eshell/esh-arg.el (eshell-concat, eshell-concat-1): New
functions.
(eshell-resolve-current-argument): Use 'eshell-concat'.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-concat-cmd):
Add check for concatenation of multiline output of subcommands.
(esh-var-test/quoted-interp-concat-cmd): New test.

* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-test-13): Use
'eshell-concat'.

* doc/misc/eshell.texi (Expansion): Document this behavior.

* etc/NEWS: Announce the change (bug#55236).
doc/misc/eshell.texi
etc/NEWS
lisp/eshell/esh-arg.el
lisp/eshell/esh-util.el
test/lisp/eshell/em-extpipe-tests.el
test/lisp/eshell/esh-var-tests.el