summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/lisp-tests.el
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2022-03-01 18:36:08 -0800
committerLars Ingebrigtsen <larsi@gnus.org>2022-03-03 14:59:33 +0100
commit990f36fa108092c8b93692bb80c6fbd0b6b8f391 (patch)
tree726029d61639874422e89f5f1cd1be30c5aa7752 /test/lisp/emacs-lisp/lisp-tests.el
parentcccee7e840102488e01f9bb7c2220392d358f4f0 (diff)
downloademacs-990f36fa108092c8b93692bb80c6fbd0b6b8f391.tar.gz
emacs-990f36fa108092c8b93692bb80c6fbd0b6b8f391.tar.bz2
emacs-990f36fa108092c8b93692bb80c6fbd0b6b8f391.zip
Fix parsing of indices in Eshell expansions
Previously, more-complex index expansions, like '$var[":" 0]' or '$var[$(expr) 0]' failed to parse correctly. * lisp/eshell/esh-var.el (Commentary): Clarify indexing and length expansions. (eshell-parse-indices): Expand docstring and support parsing inside double-quotes. (eshell-eval-indices): New function. (eshell-parse-variable): Use it. * test/lisp/eshell/esh-var-tests.el (eshell-test-value): New defvar. (esh-var-test/interp-var-indices, (esh-var-test/interp-var-split-indices) (esh-var-test/interp-var-string-split-indices) (esh-var-test/interp-var-regexp-split-indices) (esh-var-test/interp-var-assoc, esh-var-test/interp-var-length-list) (esh-var-test/interp-var-length-string) (esh-var-test/interp-var-length-alist) (esh-var-test/quoted-interp-var-indices) (esh-var-test/quoted-interp-var-split-indices) (esh-var-test/quoted-interp-var-string-split-indices) (esh-var-test/quoted-interp-var-regexp-split-indices) (esh-var-test/quoted-interp-var-assoc) (esh-var-test/quoted-interp-var-length-list) (esh-var-test/quoted-interp-var-length-string) (esh-var-test/quoted-interp-var-length-alist): New tests. * doc/misc/eshell.texi (Dollars Expansion): Expand and reword documentation for indexing and length expansions.
Diffstat (limited to 'test/lisp/emacs-lisp/lisp-tests.el')
0 files changed, 0 insertions, 0 deletions