1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00
emacs/doc
Jim Porter 9daf1085a9 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.
2024-05-29 12:09:05 -07:00
..
emacs ; Improve documentation of new Imenu features 2024-05-29 21:43:57 +03:00
lispintro ; * doc/lispintro/emacs-lisp-intro.texi (nthcdr): Whitespace (bug#71033). 2024-05-18 14:38:29 +03:00
lispref minibuffer-allow-text-properties can be buffer-local and affects completions 2024-05-27 21:19:53 +03:00
man Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
misc Add ability for Eshell virtual targets to handle closing the target 2024-05-29 12:09:05 -07:00
translations ; Further copyedits of doc/translations/README. 2024-02-19 15:19:54 +02:00