diff options
author | Jim Porter <jporterbugs@gmail.com> | 2022-12-19 22:21:10 -0800 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2022-12-22 11:35:12 -0800 |
commit | 54087e84df872c9aa30866b880e8ac0b917cbd94 (patch) | |
tree | ff128514af3020cae7dcbe98260a153ad78fb0e8 /lisp/emacs-lisp/lisp.el | |
parent | d3f1682ae9f95ee912d9bc5a2ab5c58659abf065 (diff) | |
download | emacs-54087e84df872c9aa30866b880e8ac0b917cbd94.tar.gz emacs-54087e84df872c9aa30866b880e8ac0b917cbd94.tar.bz2 emacs-54087e84df872c9aa30866b880e8ac0b917cbd94.zip |
Add 'eshell-duplicate-handles' to return a copy of file handles
* lisp/eshell/esh-io.el (eshell-create-handles): Support creating with
multiple targets for stdout and/or stderr. Make the targets for a
handle always be a list, and store whether the targets are the default
in a separate 'default' field.
(eshell-protect-handles, eshell-close-handles)
(eshell-copy-output-handle, eshell-interactive-output-p)
(eshell-output-object): Update for changes in 'eshell-create-handles'.
(eshell-duplicate-handles, eshell-get-targets): New functions.
* lisp/eshell/esh-cmd.el (eshell-copy-handles): Rename and alias to...
(eshell-with-copied-handles): ... this function, and use
'eshell-duplicate-handles'.
(eshell-execute-pipeline): Use 'eshell-duplicate-handles'.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions