]> git.eshelyaron.com Git - emacs.git/commit
Be more careful about applying spliced arguments
authorJim Porter <jporterbugs@gmail.com>
Sun, 20 Oct 2024 22:02:18 +0000 (15:02 -0700)
committerEshel Yaron <me@eshelyaron.com>
Tue, 22 Oct 2024 19:01:58 +0000 (21:01 +0200)
commit690bc445774832564e59d4ba8d5988e0fb8cf611
tree2c0d1a1626c295e37ac3c78c6d5e03b9542618e4
parentef97177868ae89ed64308189f3738a3a05ecbcba
Be more careful about applying spliced arguments

Previously, this could 'nonc' to a list that shouldn't be modified.

* lisp/eshell/esh-cmd.el (eshell-rewrite-named-command): Use 'append'
instead of 'nconc'.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-var-splice):
(esh-var-test/quoted-interp-var-splice): New tests.

(cherry picked from commit 183c5efc0fe80074a40ebebb684d787baf578ffe)
lisp/eshell/esh-cmd.el
test/lisp/eshell/esh-var-tests.el