Function: eshell/accumulate
eshell/accumulate is a byte-compiled function defined in
esh-worker.el.gz.
Signature
(eshell/accumulate FUNCTION)
Documentation
Call FUNCTION once with all the accumulated Eshell output.
When outputting data to this worker, it will accumulate all the text, calling FUNCTION once at the end.
When outputting non-string data types to this worker (e.g. lists), it will first convert the data to a string before concatenating it. If this structure only receives a single non-string value as input, it will pass the value unaltered to FUNCTION.
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-worker.el.gz
(defun eshell/accumulate (function)
"Call FUNCTION once with all the accumulated Eshell output.
When outputting data to this worker, it will accumulate all the text,
calling FUNCTION once at the end.
When outputting non-string data types to this worker (e.g. lists), it
will first convert the data to a string before concatenating it. If
this structure only receives a single non-string value as input, it will
pass the value unaltered to FUNCTION."
(eshell-accumulate-worker-create :function function))