diff options
author | Jim Porter <jporterbugs@gmail.com> | 2024-05-23 14:52:07 -0700 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2024-05-29 12:09:05 -0700 |
commit | 9daf1085a9b11e056079edce8dccca92d69bf891 (patch) | |
tree | 955af8fdd760efca90732a9742e04d4d2f5a6712 /lisp/emacs-lisp/timer-list.el | |
parent | 4c924a53334035dc4089b24174012b54c020631b (diff) | |
download | emacs-9daf1085a9b11e056079edce8dccca92d69bf891.tar.gz emacs-9daf1085a9b11e056079edce8dccca92d69bf891.tar.bz2 emacs-9daf1085a9b11e056079edce8dccca92d69bf891.zip |
Add ability for Eshell virtual targets to handle closing the target
This was documented to work by calling the output function with 'nil',
but that was never actually implemented. Instead, for compatibility,
we now support a new (optional) close function.
* lisp/eshell/esh-io.el (eshell-virtual-targets): Update docstring.
(eshell-generic-target): New struct...
(eshell-function-target): ... inherit from it, and rename from
'eshell-virtual-target'.
(eshell-get-target): Handle already-created 'eshell-generic-target'.
(eshell-close-target): Call the target's close function if present.
* test/lisp/eshell/esh-io-tests.el (esh-io-test/virtual/device-close):
New test.
* doc/misc/eshell.texi (Redirection): Document the new behavior.
Diffstat (limited to 'lisp/emacs-lisp/timer-list.el')
0 files changed, 0 insertions, 0 deletions