Function: gnuplot--make-comint-buffer
gnuplot--make-comint-buffer is a natively compiled function defined in
gnuplot.el.
Signature
(gnuplot--make-comint-buffer)
Documentation
Switch to the gnuplot program buffer or create one if none exists.
Source Code
;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
(defun gnuplot--make-comint-buffer ()
"Switch to the gnuplot program buffer or create one if none exists."
(unless (and gnuplot-process (eq (process-status gnuplot-process) 'run)
(buffer-live-p gnuplot-buffer))
(setq gnuplot-buffer (apply #'make-comint gnuplot-process-name gnuplot-program nil
(and gnuplot-program-args (split-string gnuplot-program-args)))
gnuplot-process (get-buffer-process gnuplot-buffer))
(set-process-query-on-exit-flag gnuplot-process nil)
(with-current-buffer gnuplot-buffer
(gnuplot-comint-mode)
(when gnuplot-inline-image-mode
(sleep-for (* 10 gnuplot-delay))
(gnuplot--setup-comint-for-image-mode)))))