Function: idlwave-shell-filter-hidden-output
idlwave-shell-filter-hidden-output is a byte-compiled function defined
in idlw-shell.el.gz.
Signature
(idlwave-shell-filter-hidden-output OUTPUT)
Documentation
Filter hidden output, leaving the good stuff.
Remove everything to the first newline, and all lines with % in front of them, with optional follow-on lines starting with two spaces. This works well enough, since any print output typically arrives before error messages, etc.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/idlw-shell.el.gz
(defun idlwave-shell-filter-hidden-output (output)
"Filter hidden output, leaving the good stuff.
Remove everything to the first newline, and all lines with % in front
of them, with optional follow-on lines starting with two spaces. This
works well enough, since any print output typically arrives before
error messages, etc."
(setq output (substring output (string-search "\n" output)))
(while (string-match "\\(\n\\|\\`\\)%.*\\(\n .*\\)*" output)
(setq output (replace-match "" nil t output)))
(unless
(string-match idlwave-shell-only-prompt-pattern output)
output))