Function: comint-redirect-filter
comint-redirect-filter is a byte-compiled function defined in
comint.el.gz.
Signature
(comint-redirect-filter ORIG-FILTER PROCESS INPUT-STRING)
Documentation
Filter function which redirects output from PROCESS to a buffer or buffers.
The variable comint-redirect-output-buffer says which buffer(s) to
place output in.
INPUT-STRING is the input from the Comint process.
This function runs as a process filter, and does not need to be invoked by the end user.
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint-redirect-filter (orig-filter process input-string)
"Filter function which redirects output from PROCESS to a buffer or buffers.
The variable `comint-redirect-output-buffer' says which buffer(s) to
place output in.
INPUT-STRING is the input from the Comint process.
This function runs as a process filter, and does not need to be invoked by the
end user."
(and process
(with-current-buffer (process-buffer process)
(comint-redirect-preoutput-filter input-string)
;; If we have to echo output, give it to the original filter function
(and comint-redirect-echo-input
orig-filter
(funcall orig-filter process input-string)))))