]> git.eshelyaron.com Git - emacs.git/commit
Fix evaluation of asynchronous expansions in Eshell indices
authorJim Porter <jporterbugs@gmail.com>
Thu, 19 Jan 2023 03:15:38 +0000 (19:15 -0800)
committerJim Porter <jporterbugs@gmail.com>
Fri, 20 Jan 2023 01:51:54 +0000 (17:51 -0800)
commit54d5ea66c99f03240379d6d2e411145cced585a5
tree77ec57de79d5e41d27205c72a9d63f97c8095522
parent207901457c018d94b1ce9e13a897d8241b1f3af2
Fix evaluation of asynchronous expansions in Eshell indices

Previously, this code passed the indices to a separate function, which
called 'eval' on them, but it should instead make an S-expr that
'eshell-do-eval' can evaluate (bug#60942).

* lisp/eshell/esh-var.el (eshell-eval-indices): Mark obsolete.
(eshell-prepare-indices): New function...
(eshell-parse-variable): ... use it.  Also, remove irrelevant comment.
(eshell-parse-variable-ref): Fix quoting in docstring.
(eshell-parse-indices): Fix typo in docstring.

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