Function: eshell-with-buffered-print
eshell-with-buffered-print is a macro defined in esh-io.el.gz.
Signature
(eshell-with-buffered-print &rest BODY)
Documentation
Initialize buffered printing for Eshell, and then evaluate BODY.
Within BODY, call eshell-buffered-print to perform output.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-io.el.gz
(defmacro eshell-with-buffered-print (&rest body)
"Initialize buffered printing for Eshell, and then evaluate BODY.
Within BODY, call `eshell-buffered-print' to perform output."
(declare (indent 0))
`(let ((eshell--buffered-print-queue nil)
(eshell--buffered-print-current-size 0)
(eshell--buffered-print-next-redisplay
(when (and eshell-buffered-print-redisplay-throttle
(eshell-interactive-output-p))
(time-add (current-time)
eshell-buffered-print-redisplay-throttle))))
(unwind-protect
,@body
(eshell-flush))))