]> git.eshelyaron.com Git - emacs.git/commit
Allow using a symbol as an index into an alist in Eshell
authorJim Porter <jporterbugs@gmail.com>
Tue, 13 Sep 2022 23:14:00 +0000 (16:14 -0700)
committerJim Porter <jporterbugs@gmail.com>
Thu, 15 Sep 2022 00:27:21 +0000 (17:27 -0700)
commitb8e9239b47391c6628d94a4e2e91320c5366d27b
tree9c36827e8763f35d18984ee41c00dd02715729c0
parent30ca49c8f64b73f991d94b10afcfc0e2d592fe6a
Allow using a symbol as an index into an alist in Eshell

* lisp/eshell/esh-var.el (eshell-index-value): If INDEX is a symbol,
use 'assoc' for indexing.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-var-assoc)
(esh-var-test/quoted-interp-var-assoc): Add checks for indexing via
symbol (bug#57787).
lisp/eshell/esh-var.el
test/lisp/eshell/esh-var-tests.el