]> git.eshelyaron.com Git - emacs.git/commit
Properly parse Eshell variable splices for interactive completion
authorJim Porter <jporterbugs@gmail.com>
Mon, 16 Jan 2023 00:44:23 +0000 (16:44 -0800)
committerJim Porter <jporterbugs@gmail.com>
Tue, 31 Jan 2023 01:49:11 +0000 (17:49 -0800)
commitcc5a2ed457eb34543bb7aaf6b39663af2599805d
tree21f3755be4249b38a49b68429cd7538821ea1411
parent79154f625cc4f1db3cd2b9df1a3d88def27e0d56
Properly parse Eshell variable splices for interactive completion

Previously, the code simply ignored the splice operator, which usually
worked, but isn't actually correct.

* lisp/eshell/em-cmpl.el (eshell-complete-eval-argument-form): New
function.
(eshell-complete-parse-arguments): Properly parse variable splices.

* test/lisp/eshell/em-cmpl-tests.el
(em-cmpl-test/parse-arguments/variable/splice): New test.
lisp/eshell/em-cmpl.el
test/lisp/eshell/em-cmpl-tests.el