Function: gnuplot-kill-comint-buffer

gnuplot-kill-comint-buffer is an interactive and natively compiled function defined in gnuplot.el.

Signature

(gnuplot-kill-comint-buffer)

Documentation

Kill the gnuplot process and its display buffers.

Key Bindings

gnuplot-mode-map C-c C-k

Source Code

;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
(defun gnuplot-kill-comint-buffer ()
  "Kill the gnuplot process and its display buffers."
  (interactive)
  (if (and gnuplot-process
           (eq (process-status gnuplot-process) 'run))
      (kill-process gnuplot-process))
  (when (and gnuplot-buffer (get-buffer gnuplot-buffer))
    (if (one-window-p) ()
      (delete-window (get-buffer-window gnuplot-buffer)))
    (kill-buffer gnuplot-buffer))
  (setq gnuplot-process nil
        gnuplot-buffer nil))