Function: eshell-with-copied-handles
eshell-with-copied-handles is a macro defined in esh-cmd.el.gz.
Signature
(eshell-with-copied-handles OBJECT &optional STEAL-P)
Documentation
Duplicate current I/O handles, so OBJECT works with its own copy.
If STEAL-P is non-nil, these new handles will be stolen from the
current ones (see eshell-duplicate-handles).
Aliases
eshell-copy-handles (obsolete since 30.1)
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defmacro eshell-with-copied-handles (object &optional steal-p)
"Duplicate current I/O handles, so OBJECT works with its own copy.
If STEAL-P is non-nil, these new handles will be stolen from the
current ones (see `eshell-duplicate-handles')."
`(let ((eshell-current-handles
(eshell-duplicate-handles eshell-current-handles ,steal-p)))
,object))