Function: gnuplot-negate-option
gnuplot-negate-option is an interactive and natively compiled function
defined in gnuplot.el.
Signature
(gnuplot-negate-option)
Documentation
Append "no" to or remove "no" from the set option on the current line.
This checks if the set option is one which has a negated form.
Negatable options are defined in gnuplot--keywords-negatable-options.
Key Bindings
gnuplot-comint-mode-map C-c C-n gnuplot-mode-map C-c C-n
Source Code
;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
(defun gnuplot-negate-option ()
"Append \"no\" to or remove \"no\" from the set option on the current line.
This checks if the set option is one which has a negated form.
Negatable options are defined in `gnuplot--keywords-negatable-options'."
(interactive nil gnuplot-mode gnuplot-comint-mode)
(let ((begin (gnuplot--point-at-beginning-of-command))
(end (gnuplot--point-at-end-of-command))
(regex gnuplot--negatable-options-regexp))
(save-excursion
(goto-char begin)
(skip-syntax-forward "-" end)
(if (looking-at "\\(un\\)?set\\s-+")
(cond ((looking-at "unset")
(delete-char 2))
((looking-at (concat "set\\s-+\\(" regex "\\)"))
(insert "un"))
(t
(message "There is not a negatable set option on this line")))
(message "There is not a set option on this line")))))