Function: gnuplot--discard-output
gnuplot--discard-output is a natively compiled function defined in
gnuplot.el.
Signature
(gnuplot--discard-output STRING)
Documentation
Temporary preoutput filter for hiding Gnuplot output & prompt.
Accumulates output STRING in a buffer until it finds the next prompt,
then removes itself from comint-preoutput-filter-functions.
Source Code
;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
(defun gnuplot--discard-output (string)
"Temporary preoutput filter for hiding Gnuplot output & prompt.
Accumulates output STRING in a buffer until it finds the next prompt,
then removes itself from `comint-preoutput-filter-functions'."
(with-current-buffer
(get-buffer-create gnuplot-hidden-output-buffer)
(insert string)
(when (looking-back gnuplot--prompt-regexp (point-min))
(with-current-buffer gnuplot-buffer
(remove-hook 'comint-preoutput-filter-functions
#'gnuplot--discard-output t))))
"")