Function: gnuplot--setup-info-look
gnuplot--setup-info-look is a natively compiled function defined in
gnuplot.el.
Signature
(gnuplot--setup-info-look)
Documentation
Setup info-look in the gnuplot buffer.
Also set the variable gnuplot--info-keywords.
Source Code
;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
;;; --- help from the info file, keyword list + completion, insert function
(defun gnuplot--setup-info-look ()
"Setup info-look in the gnuplot buffer.
Also set the variable `gnuplot--info-keywords'."
;; TODO Update info layout
(let ((doc-spec
'(("(gnuplot)Command_Index" nil "[_a-zA-Z0-9]+")
("(gnuplot)Options_Index" nil "[_a-zA-Z0-9]+")
("(gnuplot)Function_Index" nil "[_a-zA-Z0-9]+")
("(gnuplot)Terminal_Index" nil "[_a-zA-Z0-9]+"))))
(info-lookup-add-help
:mode 'gnuplot-mode :topic 'symbol
:regexp "[a-zA-Z][_a-zA-Z0-9]*"
:doc-spec doc-spec)
(info-lookup-add-help
:mode 'gnuplot-comint-mode :topic 'symbol
:regexp "[a-zA-Z][_a-zA-Z0-9]*"
:doc-spec doc-spec))
(let ((there (bufferp (get-buffer "*info*"))))
(info-lookup-setup-mode 'symbol 'gnuplot-mode)
(or there (and (get-buffer "*info*") (kill-buffer "*info*")))
;; why are these buffers here? I think that the general
;; user will not want them lying around
(and (get-buffer "info dir") (kill-buffer "info dir"))
(and (get-buffer "info dir<2>") (kill-buffer "info dir<2>")))
(setq gnuplot--info-keywords (gnuplot--set-keywords-list)))