1- ; ;;; gnuplot-gui.el -- GUI interface to setting options in gnuplot-mode
1+ ; ;;; gnuplot-gui.el -- GUI interface to setting options in gnuplot-mode -*- lexical-binding : t -*-
22
33; ; Copyright (C) 1998-2000 Bruce Ravel
44
@@ -805,6 +805,7 @@ This alist is formed at load time by appending together
805805 gnuplot-gui-test-type))
806806
807807
808+ ;;;### autoload
808809(defun gnuplot-gui-swap-simple-complete ()
809810 (interactive )
810811 (setq gnuplot-gui-plot-splot-fit-style
@@ -826,6 +827,7 @@ This alist is formed at load time by appending together
826827
827828; ;; user interface to the widget-y stuff
828829
830+ ;;;### autoload
829831(defun gnuplot-gui-mouse-set (event )
830832 " Use the mouse to begin setting options using a GUI interface.
831833EVENT is a mouse event. Bound to \\ [gnuplot-gui-mouse-set]
@@ -842,6 +844,7 @@ currently supported."
842844(defun gnuplot-gui-set-frame-param (param value )
843845 (setcdr (assoc param gnuplot-gui-frame-parameters) value))
844846
847+ ;;;### autoload
845848(defun gnuplot-gui-set-options-and-insert ()
846849 " Insert arguments using a GUI interface.
847850Determine contents of current line and set up the appropriate GUI
@@ -923,6 +926,7 @@ Note that \"cntrparam\" is not currently supported."
923926 (message
924927 " %S is not a gnuplot command which takes options" w)))) )))
925928
929+ ;;;### autoload
926930(defun gnuplot-gui-toggle-popup ()
927931 (interactive )
928932 (setq gnuplot-gui-popup-flag (not gnuplot-gui-popup-flag))
@@ -931,7 +935,6 @@ Note that \"cntrparam\" is not currently supported."
931935 " Argument popup will no longer appear after insertions." )))
932936
933937
934- (defun gnuplot-gui-y-n (foo ))
935938(defalias 'gnuplot-gui-y-n 'y-or-n-p )
936939
937940(defun gnuplot-gui-correct-command (word set term begin )
@@ -1312,7 +1315,7 @@ SAVE-FRAME is non-nil when the widgets are being reset."
13121315 :button-face 'gnuplot-gui-button-face
13131316 :help-echo " Push this button to set options"
13141317 :notify
1315- (lambda (widget &rest ignore )
1318+ (lambda (widget &rest _ignore )
13161319 (kill-buffer (get-buffer-create " *Gnuplot GUI*" ))
13171320 (delete-frame )
13181321 (select-frame gnuplot-current-frame)
@@ -1352,7 +1355,7 @@ SAVE-FRAME is non-nil when the widgets are being reset."
13521355 :button-face 'gnuplot-gui-button-face
13531356 :doc item
13541357 :notify
1355- (lambda (widget &rest ignore )
1358+ (lambda (widget &rest _ignore )
13561359 (let ((word (widget-get widget :doc )))
13571360 (gnuplot-gui-set-alist word gnuplot-gui-current-string)
13581361 (gnuplot-gui-prompt-for-frame word t ))))
@@ -1362,7 +1365,7 @@ SAVE-FRAME is non-nil when the widgets are being reset."
13621365 :button-face 'gnuplot-gui-button-face
13631366 :doc item
13641367 :notify
1365- (lambda (widget &rest ignore )
1368+ (lambda (widget &rest _ignore )
13661369 (let* ((word (widget-get widget :doc ))
13671370 (alist (cdr (assoc word gnuplot-gui-all-types))))
13681371 (while alist
@@ -1375,7 +1378,7 @@ SAVE-FRAME is non-nil when the widgets are being reset."
13751378 (widget-create 'push-button :value " Cancel"
13761379 :help-echo " Quit setting options and dismiss frame"
13771380 :button-face 'gnuplot-gui-button-face
1378- :notify (lambda (widget &rest ignore )
1381+ :notify (lambda (_widget &rest _ignore )
13791382 (kill-buffer (get-buffer-create " *Gnuplot GUI*" ))
13801383 (setq gnuplot-gui-alist nil
13811384 gnuplot-gui-current-string nil )
@@ -1425,7 +1428,7 @@ menu. STARRED is true if this a 'list* widget."
14251428 :button-prefix " [" :button-suffix " ]"
14261429 :help-echo (format " Mouse-2 to view the %S menu " (downcase item))
14271430 :notify
1428- (lambda (widget &rest ignore )
1431+ (lambda (widget &rest _ignore )
14291432 (let ((lab (if (widget-get widget :doc )
14301433 (concat (downcase (widget-get widget :tag )) " " )
14311434 " " )))
@@ -1450,7 +1453,7 @@ the numerical argument."
14501453 (widget-create 'editable-field
14511454 :size 2 :tag item :value default :doc prefix
14521455 :help-echo (format " Insert new value of %S here " help-label)
1453- :notify (lambda (widget &rest ignore )
1456+ :notify (lambda (widget &rest _ignore )
14541457 (let ((val (widget-value widget))
14551458 (pre (concat (widget-get widget :doc ) " " )))
14561459 (setcdr (assoc (widget-get widget :tag )
@@ -1486,7 +1489,7 @@ prefix for the string. STARRED is t if quotes are not to be used."
14861489 'editable-field
14871490 :size width :tag item :doc prefix :value default
14881491 :help-echo (format " Insert new value of %S here " help-label)
1489- :notify (lambda (widget &rest ignore )
1492+ :notify (lambda (widget &rest _ignore )
14901493 (let ((val (widget-value widget))
14911494 (q gnuplot-quote-character)
14921495 (p (widget-get widget :doc )) )
@@ -1520,7 +1523,7 @@ prefix for the string."
15201523 (widget-create 'editable-field
15211524 :size (/ (frame-width ) 3 ) :tag item :value default
15221525 :help-echo (format " Insert new format string here " )
1523- :notify (lambda (widget &rest ignore )
1526+ :notify (lambda (widget &rest _ignore )
15241527 (let ((val (widget-value widget)))
15251528 (setcdr (assoc (widget-get widget :tag )
15261529 gnuplot-gui-alist)
@@ -1574,7 +1577,7 @@ the default value for the argument. TAG is non-nil if ITEM rather than
15741577 :doc item :help-echo " Insert a filename here"
15751578 :complete 'gnuplot-gui-file-completion
15761579 :notify
1577- (lambda (widget &rest ignore )
1580+ (lambda (widget &rest _ignore )
15781581 (setcdr (assoc (widget-get widget :doc ) gnuplot-gui-alist)
15791582 (format " %s%s%s " gnuplot-quote-character
15801583 (widget-value widget)
@@ -1584,7 +1587,7 @@ the default value for the argument. TAG is non-nil if ITEM rather than
15841587 'push-button :value " Browse"
15851588 :doc item :help-echo " Browse directories for a filename."
15861589 :parent widg
1587- :notify (lambda (widget &rest ignore )
1590+ :notify (lambda (widget &rest _ignore )
15881591 (let ((fname (file-relative-name (read-file-name " File: " )
15891592 default-directory))
15901593 (q gnuplot-quote-character))
@@ -1610,7 +1613,7 @@ the default value for the argument."
16101613 :format " %{%t%}:\n %v\t %i\n "
16111614 :entry-format " \t %i %d %v\n "
16121615 :button-face 'gnuplot-gui-labels-face
1613- :notify (lambda (widget &rest ignore )
1616+ :notify (lambda (widget &rest _ignore )
16141617 (setcdr (assoc (upcase (widget-get widget :tag ))
16151618 gnuplot-gui-alist)
16161619 (widget-value widget)))))
@@ -1627,7 +1630,7 @@ is non-nil if this is a 'range widget."
16271630 :size 4 :tag item :value (car default )
16281631 :help-echo (format " Insert the first value of the %S here "
16291632 (downcase item))
1630- :notify (lambda (widget &rest ignore )
1633+ :notify (lambda (widget &rest _ignore )
16311634 (setcar (cdr (assoc (widget-get widget :tag )
16321635 gnuplot-gui-alist))
16331636 (format " %s " (widget-value widget)))))
@@ -1636,7 +1639,7 @@ is non-nil if this is a 'range widget."
16361639 :size 4 :tag item :value (cdr default )
16371640 :help-echo (format " Insert the second value of the %S here "
16381641 (downcase item))
1639- :notify (lambda (widget &rest ignore )
1642+ :notify (lambda (widget &rest _ignore )
16401643 (setcdr (cdr (assoc (widget-get widget :tag )
16411644 gnuplot-gui-alist))
16421645 (format " %s " (widget-value widget)))))
0 commit comments