Function: gnuplot-insert

gnuplot-insert is a natively compiled function defined in gnuplot.el.

Signature

(gnuplot-insert STRING)

Documentation

Insert STRING at point and display help for for STRING.

Help is not shown if gnuplot-insertions-show-help-flag is nil. The help shown is for STRING unless STRING begins with the word "set" or
"show", in which case help is shown for the thing being set or
shown.

Source Code

;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
(defun gnuplot-insert (string)
  "Insert STRING at point and display help for for STRING.
Help is not shown if `gnuplot-insertions-show-help-flag' is nil.  The
help shown is for STRING unless STRING begins with the word \"set\" or
\"show\", in which case help is shown for the thing being set or
shown."
  (insert string)
  (let ((topic string) term)
    (when (string-match
           "\\(set\\|show\\)[ \t]+\\([^ \t]+\\)\\(\\s-+\\([^ \t]+\\)\\)?"
           string)
      (setq topic (downcase (match-string 2 string))
            term            (match-string 4 string))
      (if (equal topic "terminal") (setq topic (downcase term))))
    (cond ((bound-and-true-p gnuplot-gui-popup-flag)
           (gnuplot-gui-set-options-and-insert))
          (gnuplot-insertions-show-help-flag
           (when (eq gnuplot--info-keywords 'pending)
             (gnuplot--setup-info-look))
           (gnuplot-info-lookup-symbol topic)))))