Function: gnuplot-comint-mode

gnuplot-comint-mode is a natively compiled function defined in gnuplot.el.

Signature

(gnuplot-comint-mode)

Documentation

Major mode for interacting with a gnuplot process in a buffer.

This sets font-lock and keyword completion in the comint/gnuplot buffer.

In addition to any hooks its parent mode comint-mode might have run, this mode runs the hook gnuplot-comint-mode-hook, as the final or penultimate step during initialization.

<delete> delete-forward-char
<kp-delete> delete-forward-char
<mouse-2> comint-insert-input
C-<down> comint-next-input
C-<up> comint-previous-input
C-M-f gnuplot-save-and-plot-from-comint
C-M-i completion-at-point
C-M-l comint-show-output
C-M-p gnuplot-plot-from-comint
C-c . comint-insert-previous-argument
C-c C-\ comint-quit-subjob
C-c C-a comint-bol-or-process-mark
C-c C-c comint-interrupt-subjob
C-c C-d comint-send-eof
C-c C-d gnuplot-info-lookup-symbol
C-c C-e comint-show-maximum-output
C-c C-e gnuplot-pop-to-recent-buffer
C-c C-l comint-dynamic-list-input-ring
C-c C-n comint-next-prompt
C-c C-n gnuplot-negate-option
C-c C-o comint-delete-output
C-c C-p comint-previous-prompt
C-c C-r comint-show-output
C-c C-s comint-write-output
C-c C-u comint-kill-input
C-c C-w backward-kill-word
C-c C-x comint-get-next-from-history
C-c C-z comint-stop-subjob
C-c C-z gnuplot-customize
C-c M-o comint-clear-buffer
C-c M-r comint-previous-matching-input-from-input
C-c M-s comint-next-matching-input-from-input
C-c RET comint-copy-old-input
C-c SPC comint-accumulate
C-c TAB gnuplot-insert-filename
C-d comint-delchar-or-maybe-eof
C-d gnuplot-delchar-or-maybe-eof
C-x <up> comint-complete-input-ring
M-n comint-next-input
M-p comint-previous-input
M-r comint-history-isearch-backward-regexp
RET comint-send-input

Source Code

;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
;; Major mode `gnuplot-comint-mode' for the interaction buffer
(define-derived-mode gnuplot-comint-mode comint-mode "Gnuplot interaction"
  "Major mode for interacting with a gnuplot process in a buffer.

This sets font-lock and keyword completion in the comint/gnuplot
buffer."
  :interactive nil
  :syntax-table gnuplot-mode-syntax-table
  :abbrev-table gnuplot-mode-abbrev-table

  (setq-local font-lock-defaults gnuplot-font-lock-defaults
              parse-sexp-lookup-properties t
              syntax-propertize-function #'gnuplot--syntax-propertize)

  (add-hook 'kill-buffer-hook #'gnuplot--close-down nil t)
  (add-hook 'comint-output-filter-functions
            #'comint-postoutput-scroll-to-bottom
            nil t)
  (add-hook 'comint-output-filter-functions
            #'gnuplot--protect-prompt-fn
            nil t)
  (add-hook 'completion-at-point-functions #'gnuplot-completion-at-point-info-look nil t))