Function: gnuplot--display-and-recenter-comint-buffer

gnuplot--display-and-recenter-comint-buffer is a natively compiled function defined in gnuplot.el.

Signature

(gnuplot--display-and-recenter-comint-buffer)

Documentation

Make sure the gnuplot comint buffer is displayed.

Move point to the end if necessary.

Source Code

;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
(defun gnuplot--display-and-recenter-comint-buffer ()
  "Make sure the gnuplot comint buffer is displayed.
Move point to the end if necessary."
  (save-selected-window
    (select-window (display-buffer (get-buffer gnuplot-buffer)))
    (goto-char (point-max))
    (unless (pos-visible-in-window-p (point) (selected-window)) (recenter 5))))