]> git.eshelyaron.com Git - emacs.git/commit
Add 'eshell-special-ref-alist' to allow extending Eshell special refs
authorJim Porter <jporterbugs@gmail.com>
Wed, 23 Aug 2023 01:43:51 +0000 (18:43 -0700)
committerJim Porter <jporterbugs@gmail.com>
Tue, 24 Oct 2023 18:36:27 +0000 (11:36 -0700)
commit69e8333210ae678407d6a5ba647657cc301932b7
tree31febf5393d92b8463debfda10fbfa30001a11a9
parent1c2cb9cd6192e97a29fbe338fd1a639f6dfae2d2
Add 'eshell-special-ref-alist' to allow extending Eshell special refs

* lisp/eshell/esh-cmd.el (eshell--region-p, eshell-with-temp-command):
Move to...
* lisp/eshell/esh-util.el (eshell--region-p)
(eshell-with-temp-command): ... here.

* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): Fix edge
case when 'end' is at beginning of (possibly-narrowed) buffer.

* lisp/eshell/esh-arg.el (eshell-special-ref-alist) New variable...
(eshell-special-ref-default): ... New option...
(eshell--special-ref-function): ... New function...
(eshell-parse-special-reference): ... use them.
(eshell-insert-special-reference): New function.
(eshell-complete-special-reference): Reimplement to use a nested call
to Pcomplete.
(eshell-complete-buffer-ref): New function.

* lisp/eshell/esh-proc.el (eshell-proc-initialize): Add "process"
special ref type here.
(eshell-complete-process-ref): New function.

* doc/misc/eshell.texi (Bugs and ideas): Remove now-implemented idea.
doc/misc/eshell.texi
lisp/eshell/em-cmpl.el
lisp/eshell/esh-arg.el
lisp/eshell/esh-cmd.el
lisp/eshell/esh-proc.el
lisp/eshell/esh-util.el