]> git.eshelyaron.com Git - emacs.git/commit
Add support for completing special references (e.g. buffers) in Eshell
authorJim Porter <jporterbugs@gmail.com>
Wed, 25 Jan 2023 05:22:06 +0000 (21:22 -0800)
committerJim Porter <jporterbugs@gmail.com>
Sun, 12 Mar 2023 02:49:28 +0000 (18:49 -0800)
commit9199fa00caa69dd834cceac998e20fcc55cac9d3
treeeeb5186e5fdab1fe650121c15e43feddace21bb5
parentb8e7061232f9a5b06af70031dcc4b48c6575a364
Add support for completing special references (e.g. buffers) in Eshell

* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): Handle
special references.

* lisp/eshell/em-arg.el (eshell-parse-special-reference): Ensure point
is just after the "#<" when incomplete, and handle backslash escapes
more thoroughly.
(eshell-complete-special-reference): New function.

* test/lisp/eshell/esh-arg-tests.el
(esh-arg-test/special-reference/default)
(esh-arg-test/special-reference/buffer)
(esh-arg-test/special-reference/special):
* test/lisp/eshell/em-cmpl-tests.el
(em-cmpl-test/special-ref-completion/type)
(em-cmpl-test/special-ref-completion/implicit-buffer)
(em-cmpl-test/special-ref-completion/buffer): New tests.
lisp/eshell/em-cmpl.el
lisp/eshell/esh-arg.el
test/lisp/eshell/em-cmpl-tests.el
test/lisp/eshell/esh-arg-tests.el