@@ -131,7 +131,6 @@ the first entry in the list be a blank string."
131
131
(if (> (point ) end) (goto-char end))
132
132
(buffer-substring-no-properties begin (point )))))
133
133
134
-
135
134
136
135
; ;; data structures containing regarding options in Gnuplot 3.7
137
136
@@ -594,7 +593,6 @@ See the doc-string for `gnuplot-gui-all-types'.")
594
593
'((" INITIAL FILE" 'file " " t )
595
594
(" UPDATED FILE" 'file " " t ))) ))
596
595
597
-
598
596
(defcustom gnuplot-gui-plot-splot-fit-style 'simple
599
597
" Control the complexity of the GUI display for plot, splot, and fit.
600
598
The values are \\= 'simple, which causes a limited set of plot, splot, or
@@ -605,7 +603,6 @@ parsing values already in the script buffer."
605
603
:type '(radio (const :tag " Simple listing" simple)
606
604
(const :tag " Complete listing" complete)))
607
605
608
-
609
606
(defconst gnuplot-gui-plot-simple-list
610
607
'((" X RANGE" 'range (" " . " " ) " :" )
611
608
(" Y RANGE" 'range (" " . " " ) " :" )
@@ -708,7 +705,6 @@ See the doc-string for `gnuplot-gui-all-types'.")
708
705
gnuplot-gui-fit-full-list
709
706
gnuplot-gui-fit-simple-list))) )
710
707
711
-
712
708
(defvar gnuplot-gui-test-type nil )
713
709
(setq gnuplot-gui-test-type
714
710
(list (cons " test"
@@ -820,8 +816,6 @@ This alist is formed at load time by appending together
820
816
(message " Using %s lists for plot, splot, and fit. "
821
817
gnuplot-gui-plot-splot-fit-style) )
822
818
823
-
824
-
825
819
826
820
; ;; user interface to the widget-y stuff
827
821
@@ -921,7 +915,6 @@ Note that \"cntrparam\" is not currently supported."
921
915
" Argument popup will appear after insertions."
922
916
" Argument popup will no longer appear after insertions." )))
923
917
924
-
925
918
(defalias 'gnuplot-gui-y-n 'y-or-n-p )
926
919
927
920
(defun gnuplot-gui-correct-command (word set term begin )
@@ -955,7 +948,6 @@ BEGIN is the beginning of the command."
955
948
(insert " set " ))))))
956
949
(message nil ))
957
950
958
-
959
951
960
952
; ;; handle the actual arguments
961
953
@@ -1022,12 +1014,12 @@ arguments."
1022
1014
((cl-member symbol '(list list*) :test 'equal )
1023
1015
(let* ((case-fold-search nil )
1024
1016
(match-cons (cl-member (concat " ^" (car temp-list))
1025
- values :test 'string-match )))
1017
+ values :test 'string-match )))
1026
1018
(if (and (car match-cons) ; " " may be first elem. of list
1027
1019
(not (string= " " (car match-cons))))
1028
1020
(setq this-cons (cons tag (car match-cons))
1029
1021
arg-list (cl-remove (car temp-list) arg-list
1030
- :test 'string= :count 1 )
1022
+ :test 'string= :count 1 )
1031
1023
temp-list nil )
1032
1024
(setq temp-list (cdr temp-list)))))
1033
1025
; ; ---------------------------- tag (first number in list)
@@ -1048,16 +1040,16 @@ arguments."
1048
1040
(string-match " ^[-0-9.]+$" (cadr temp-list)))
1049
1041
(setq this-cons (cons tag (cadr temp-list))
1050
1042
arg-list (cl-remove (car temp-list) arg-list
1051
- :test 'string= :count 1 )
1043
+ :test 'string= :count 1 )
1052
1044
arg-list (cl-remove (cadr temp-list) arg-list
1053
- :test 'string= :count 1 )
1045
+ :test 'string= :count 1 )
1054
1046
temp-list nil ))
1055
1047
; ; --------------------- number without prefix
1056
1048
((and (not prefix)
1057
1049
(string-match " ^[-0-9.]+$" (car temp-list)))
1058
1050
(setq this-cons (cons tag (car temp-list))
1059
1051
arg-list (cl-remove (car temp-list) arg-list
1060
- :test 'string= :count 1 )
1052
+ :test 'string= :count 1 )
1061
1053
temp-list nil ))
1062
1054
(t
1063
1055
(setq temp-list (cdr temp-list)))))
@@ -1083,7 +1075,7 @@ arguments."
1083
1075
(cons tag (cons (match-string 1 (car temp-list))
1084
1076
(match-string 2 (car temp-list))))
1085
1077
arg-list (cl-remove (car temp-list) arg-list
1086
- :test 'string= :count 1 )
1078
+ :test 'string= :count 1 )
1087
1079
temp-list nil )
1088
1080
(setq temp-list (cdr temp-list)) ))
1089
1081
; ; ---------------------------- labels
@@ -1105,7 +1097,7 @@ arguments."
1105
1097
(setq list (cdr list )) )
1106
1098
(setq this-cons (cons tag return)
1107
1099
arg-list (cl-remove (car temp-list) arg-list
1108
- :test 'string= :count 1 )
1100
+ :test 'string= :count 1 )
1109
1101
temp-list nil ))
1110
1102
(setq temp-list (cdr temp-list))) )
1111
1103
; ; ---------------------------- string, file, format
@@ -1116,17 +1108,17 @@ arguments."
1116
1108
(car temp-list))
1117
1109
(setq this-cons (cons tag (match-string 0 (car temp-list)))
1118
1110
arg-list (cl-remove (car temp-list) arg-list
1119
- :test 'string= :count 1 )
1111
+ :test 'string= :count 1 )
1120
1112
temp-list nil )
1121
1113
(setq temp-list (cdr temp-list)) ))
1122
1114
; ; ---------------------------- string*
1123
1115
((equal symbol 'string* )
1124
1116
(if (string= prefix (car temp-list))
1125
1117
(setq this-cons (cons tag (cadr temp-list))
1126
1118
arg-list (cl-remove (car temp-list) arg-list
1127
- :test 'string= :count 1 )
1119
+ :test 'string= :count 1 )
1128
1120
arg-list (cl-remove (cadr temp-list) arg-list
1129
- :test 'string= :count 1 )
1121
+ :test 'string= :count 1 )
1130
1122
temp-list nil )
1131
1123
(setq temp-list (cdr temp-list)) ) )
1132
1124
; ; ---------------------------- other or unknown
@@ -1136,7 +1128,6 @@ arguments."
1136
1128
(append gnuplot-gui-alist (list this-cons))))
1137
1129
(setq alist (cdr alist))) ))
1138
1130
1139
-
1140
1131
(defun gnuplot-gui-post-process-alist (type )
1141
1132
" A few types need some additional processing.
1142
1133
\\= 'range, \\= 'pair, and \\= 'labels are cons or list valued and need to b made
@@ -1192,7 +1183,6 @@ into the buffer. TYPE is the object whose arguments are being set."
1192
1183
(gnuplot-gui-make-frame
1193
1184
option (cdr (assoc option gnuplot-gui-all-types)) save-frame) )
1194
1185
1195
-
1196
1186
(defface gnuplot-gui-error-face '((((class color ) (background light ))
1197
1187
(:foreground " grey30" ))
1198
1188
(((class color ) (background dark ))
@@ -1525,7 +1515,6 @@ prefix for the string."
1525
1515
:value " format" )
1526
1516
(widget-insert " \n " ))
1527
1517
1528
-
1529
1518
; ; swiped from widget-color-complete
1530
1519
(defun gnuplot-gui-file-completion (widget )
1531
1520
" Complete the filename in WIDGET."
@@ -1634,7 +1623,6 @@ is non-nil if this is a \\='range widget."
1634
1623
(widget-insert " " (make-string (- 39 (current-column )) ?. )
1635
1624
" (numeric values)\n " ))
1636
1625
1637
-
1638
1626
; ; suppress compiler warning
1639
1627
; ;(eval-when-compile (defun gnuplot-info-lookup-symbol (sym mode)))
1640
1628
(define-widget 'gnuplot-gui-info-link 'info-link
0 commit comments