]> git.eshelyaron.com Git - emacs.git/commit
Ensure Eshell variable aliases properly handle indexing
authorJim Porter <jporterbugs@gmail.com>
Thu, 7 Jul 2022 04:59:11 +0000 (21:59 -0700)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 12 Jul 2022 13:11:00 +0000 (15:11 +0200)
commit18d83b94528c503f2cd6d0a89f2c5db2d5d48165
tree6af1fbbb66e6958a053dab32c5c63f740ed1a2d2
parentba1923f1f1bba69bc13620042a00e315946ba82a
Ensure Eshell variable aliases properly handle indexing

* lisp/eshell/em-dirs.el (eshell-dirs-initialize): Properly handle
indexing for variable aliases.

* lisp/eshell/esh-var (eshell-variable-aliases-list): Properly handle
indexing for variable aliases, and add SIMPLE-FUNCTION entry for
aliases.
(eshell-get-variable): Update how variable alias functions are called.

* test/lisp/eshell/em-alias-tests.el
(em-alias-test/alias-arg-vars-indices)
(em-alias-test/alias-arg-vars-split-indices)
(em-alias-test/alias-all-args-var-split-indices):
* test/lisp/eshell/em-dirs-tests.el (em-dirs-test/pwd-var-indices)
(em-dirs-test/oldpwd-var-indices)
(em-dirs-test/directory-ring-var-indices):
* test/lisp/eshell/esh-var-tests.el
(esh-var-test/inside-emacs-var-split-indices)
(esh-var-test/last-result-var-split-indices): New tests.
(esh-var-test/last-arg-var-split-indices): Expand test to check
conversion behavior inside double quotes (bug#56509).
lisp/eshell/em-dirs.el
lisp/eshell/esh-var.el
test/lisp/eshell/em-alias-tests.el
test/lisp/eshell/em-dirs-tests.el
test/lisp/eshell/esh-var-tests.el