]> git.eshelyaron.com Git - emacs.git/commit
Don't add a space after the trailing slash when completing ~USER in Eshell
authorJim Porter <jporterbugs@gmail.com>
Thu, 2 Feb 2023 01:48:47 +0000 (17:48 -0800)
committerJim Porter <jporterbugs@gmail.com>
Thu, 23 Feb 2023 22:09:36 +0000 (14:09 -0800)
commit9d48c9844bf6b27fede6fe8f864e6dfb6909586b
tree2ac879c460333cda9da624bbf8595ed0621cb5ca
parent4b364a990a06cd73b553fdc9e9a65bc7398dbea6
Don't add a space after the trailing slash when completing ~USER in Eshell

This provides a programmed completion function that works similarly to
~USER completion in 'completion-file-name-table'.

* lisp/eshell/em-dirs.el (eshell-complete-user-reference): Throw a
programmed completion function.

* test/lisp/eshell/em-cmpl-tests.el
(em-cmpl-test/user-ref-completion): Update test.
lisp/eshell/em-dirs.el
test/lisp/eshell/em-cmpl-tests.el