Function: inferior-octave-output-digest
inferior-octave-output-digest is a byte-compiled function defined in
octave.el.gz.
Signature
(inferior-octave-output-digest PROC STRING)
Documentation
Special output filter for the inferior Octave process.
Save all output between newlines into inferior-octave-output-list, and
the rest to inferior-octave-output-string.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/octave.el.gz
(defun inferior-octave-output-digest (_proc string)
"Special output filter for the inferior Octave process.
Save all output between newlines into `inferior-octave-output-list', and
the rest to `inferior-octave-output-string'."
(setq string (concat inferior-octave-output-string string))
(while (string-match "\n" string)
(setq inferior-octave-output-list
(append inferior-octave-output-list
(list (substring string 0 (match-beginning 0))))
string (substring string (match-end 0))))
(if (string-match inferior-octave-prompt string)
(setq inferior-octave-receive-in-progress nil))
(setq inferior-octave-output-string string))