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
@@ -935,7 +935,6 @@ Note that \"cntrparam\" is not currently supported."
935935 " Argument popup will no longer appear after insertions." )))
936936
937937
938- (defun gnuplot-gui-y-n (foo ))
939938(defalias 'gnuplot-gui-y-n 'y-or-n-p )
940939
941940(defun gnuplot-gui-correct-command (word set term begin )
@@ -1316,7 +1315,7 @@ SAVE-FRAME is non-nil when the widgets are being reset."
13161315 :button-face 'gnuplot-gui-button-face
13171316 :help-echo " Push this button to set options"
13181317 :notify
1319- (lambda (widget &rest ignore )
1318+ (lambda (widget &rest _ignore )
13201319 (kill-buffer (get-buffer-create " *Gnuplot GUI*" ))
13211320 (delete-frame )
13221321 (select-frame gnuplot-current-frame)
@@ -1356,7 +1355,7 @@ SAVE-FRAME is non-nil when the widgets are being reset."
13561355 :button-face 'gnuplot-gui-button-face
13571356 :doc item
13581357 :notify
1359- (lambda (widget &rest ignore )
1358+ (lambda (widget &rest _ignore )
13601359 (let ((word (widget-get widget :doc )))
13611360 (gnuplot-gui-set-alist word gnuplot-gui-current-string)
13621361 (gnuplot-gui-prompt-for-frame word t ))))
@@ -1366,7 +1365,7 @@ SAVE-FRAME is non-nil when the widgets are being reset."
13661365 :button-face 'gnuplot-gui-button-face
13671366 :doc item
13681367 :notify
1369- (lambda (widget &rest ignore )
1368+ (lambda (widget &rest _ignore )
13701369 (let* ((word (widget-get widget :doc ))
13711370 (alist (cdr (assoc word gnuplot-gui-all-types))))
13721371 (while alist
@@ -1379,7 +1378,7 @@ SAVE-FRAME is non-nil when the widgets are being reset."
13791378 (widget-create 'push-button :value " Cancel"
13801379 :help-echo " Quit setting options and dismiss frame"
13811380 :button-face 'gnuplot-gui-button-face
1382- :notify (lambda (widget &rest ignore )
1381+ :notify (lambda (_widget &rest _ignore )
13831382 (kill-buffer (get-buffer-create " *Gnuplot GUI*" ))
13841383 (setq gnuplot-gui-alist nil
13851384 gnuplot-gui-current-string nil )
@@ -1429,7 +1428,7 @@ menu. STARRED is true if this a 'list* widget."
14291428 :button-prefix " [" :button-suffix " ]"
14301429 :help-echo (format " Mouse-2 to view the %S menu " (downcase item))
14311430 :notify
1432- (lambda (widget &rest ignore )
1431+ (lambda (widget &rest _ignore )
14331432 (let ((lab (if (widget-get widget :doc )
14341433 (concat (downcase (widget-get widget :tag )) " " )
14351434 " " )))
@@ -1454,7 +1453,7 @@ the numerical argument."
14541453 (widget-create 'editable-field
14551454 :size 2 :tag item :value default :doc prefix
14561455 :help-echo (format " Insert new value of %S here " help-label)
1457- :notify (lambda (widget &rest ignore )
1456+ :notify (lambda (widget &rest _ignore )
14581457 (let ((val (widget-value widget))
14591458 (pre (concat (widget-get widget :doc ) " " )))
14601459 (setcdr (assoc (widget-get widget :tag )
@@ -1490,7 +1489,7 @@ prefix for the string. STARRED is t if quotes are not to be used."
14901489 'editable-field
14911490 :size width :tag item :doc prefix :value default
14921491 :help-echo (format " Insert new value of %S here " help-label)
1493- :notify (lambda (widget &rest ignore )
1492+ :notify (lambda (widget &rest _ignore )
14941493 (let ((val (widget-value widget))
14951494 (q gnuplot-quote-character)
14961495 (p (widget-get widget :doc )) )
@@ -1524,7 +1523,7 @@ prefix for the string."
15241523 (widget-create 'editable-field
15251524 :size (/ (frame-width ) 3 ) :tag item :value default
15261525 :help-echo (format " Insert new format string here " )
1527- :notify (lambda (widget &rest ignore )
1526+ :notify (lambda (widget &rest _ignore )
15281527 (let ((val (widget-value widget)))
15291528 (setcdr (assoc (widget-get widget :tag )
15301529 gnuplot-gui-alist)
@@ -1578,7 +1577,7 @@ the default value for the argument. TAG is non-nil if ITEM rather than
15781577 :doc item :help-echo " Insert a filename here"
15791578 :complete 'gnuplot-gui-file-completion
15801579 :notify
1581- (lambda (widget &rest ignore )
1580+ (lambda (widget &rest _ignore )
15821581 (setcdr (assoc (widget-get widget :doc ) gnuplot-gui-alist)
15831582 (format " %s%s%s " gnuplot-quote-character
15841583 (widget-value widget)
@@ -1588,7 +1587,7 @@ the default value for the argument. TAG is non-nil if ITEM rather than
15881587 'push-button :value " Browse"
15891588 :doc item :help-echo " Browse directories for a filename."
15901589 :parent widg
1591- :notify (lambda (widget &rest ignore )
1590+ :notify (lambda (widget &rest _ignore )
15921591 (let ((fname (file-relative-name (read-file-name " File: " )
15931592 default-directory))
15941593 (q gnuplot-quote-character))
@@ -1614,7 +1613,7 @@ the default value for the argument."
16141613 :format " %{%t%}:\n %v\t %i\n "
16151614 :entry-format " \t %i %d %v\n "
16161615 :button-face 'gnuplot-gui-labels-face
1617- :notify (lambda (widget &rest ignore )
1616+ :notify (lambda (widget &rest _ignore )
16181617 (setcdr (assoc (upcase (widget-get widget :tag ))
16191618 gnuplot-gui-alist)
16201619 (widget-value widget)))))
@@ -1631,7 +1630,7 @@ is non-nil if this is a 'range widget."
16311630 :size 4 :tag item :value (car default )
16321631 :help-echo (format " Insert the first value of the %S here "
16331632 (downcase item))
1634- :notify (lambda (widget &rest ignore )
1633+ :notify (lambda (widget &rest _ignore )
16351634 (setcar (cdr (assoc (widget-get widget :tag )
16361635 gnuplot-gui-alist))
16371636 (format " %s " (widget-value widget)))))
@@ -1640,7 +1639,7 @@ is non-nil if this is a 'range widget."
16401639 :size 4 :tag item :value (cdr default )
16411640 :help-echo (format " Insert the second value of the %S here "
16421641 (downcase item))
1643- :notify (lambda (widget &rest ignore )
1642+ :notify (lambda (widget &rest _ignore )
16441643 (setcdr (cdr (assoc (widget-get widget :tag )
16451644 gnuplot-gui-alist))
16461645 (format " %s " (widget-value widget)))))
0 commit comments