@@ -835,9 +835,9 @@ Note that \"cntrparam\" is not currently supported."
835
835
(set nil ) (term nil ))
836
836
(save-excursion
837
837
; ; there can be more then one command per line
838
- (if (re-search-forward termin end " to_limit" )
839
- ( progn (backward-char (length (match-string 1 )))
840
- (setq end (point-marker ) )))
838
+ (when (re-search-forward termin end " to_limit" )
839
+ (backward-char (length (match-string 1 )))
840
+ (setq end (point-marker )))
841
841
(goto-char begin)
842
842
(skip-syntax-forward " -" end)
843
843
; ; various constructions are recognized here. at the end of this
@@ -882,15 +882,15 @@ Note that \"cntrparam\" is not currently supported."
882
882
(when (or
883
883
(and (equal gnuplot-gui-plot-splot-fit-style 'complete )
884
884
(cl-member word '(" plot" " splot" " fit" )
885
- :test 'string = ))
885
+ :test 'equal ))
886
886
(equal word " test" ))
887
887
(gnuplot-gui-set-frame-param 'height 32 )
888
888
(gnuplot-gui-set-frame-param 'top 50 ))
889
889
(gnuplot-gui-prompt-for-frame word)
890
890
(when (or
891
891
(and (equal gnuplot-gui-plot-splot-fit-style 'complete )
892
892
(cl-member word '(" plot" " splot" " fit" )
893
- :test 'string = ))
893
+ :test 'equal ))
894
894
(equal word " test" ))
895
895
(gnuplot-gui-set-frame-param 'height old-height)
896
896
(gnuplot-gui-set-frame-param 'top old-top)) ))
@@ -956,21 +956,21 @@ bounding single quotes with double quotes, since double quotes are
956
956
used in `gnuplot-gui-all-types' ."
957
957
(let (fixed-list quote quoted) ; remove blanks
958
958
(setq list (cl-remove " \\ s-+" list :test 'string-match )
959
- list (cl-remove " " list :test 'string = ))
959
+ list (cl-remove " " list :test 'equal ))
960
960
(while list ; concatinate parts of quoted string
961
961
(if (not (string-match " ^\\ ([\]\[ ()'\" ]\\ )" (car list )))
962
962
(setq fixed-list (append fixed-list (list (car list ))))
963
963
(setq quote (match-string 1 (car list ))
964
964
quoted (car list ))
965
- (if (string= quote " [" ) (setq quote " ]" ))
966
- (if (string= quote " (" ) (setq quote " )" ))
965
+ (if (equal quote " [" ) (setq quote " ]" ))
966
+ (if (equal quote " (" ) (setq quote " )" ))
967
967
(while (and list
968
968
(or (equal (length quoted) 1 )
969
969
(not (string-match (concat (regexp-quote quote ) " $" )
970
970
quoted))))
971
971
(setq quoted (concat quoted " " (cadr list ))
972
972
list (cdr list )))
973
- (if (string= quote " '" )
973
+ (if (equal quote " '" )
974
974
(setq quoted (concat " \" " (substring quoted 1 ))
975
975
quoted (concat (substring quoted 0 -1 ) " \" " )))
976
976
(setq fixed-list (append fixed-list (list quoted))))
@@ -1012,10 +1012,10 @@ arguments."
1012
1012
(match-cons (cl-member (concat " ^" (car temp-list))
1013
1013
values :test 'string-match )))
1014
1014
(if (and (car match-cons) ; " " may be first elem. of list
1015
- (not (string= " " (car match-cons))))
1015
+ (not (equal " " (car match-cons))))
1016
1016
(setq this-cons (cons tag (car match-cons))
1017
1017
arg-list (cl-remove (car temp-list) arg-list
1018
- :test 'string = :count 1 )
1018
+ :test 'equal :count 1 )
1019
1019
temp-list nil )
1020
1020
(setq temp-list (cdr temp-list)))))
1021
1021
; ; ---------------------------- tag (first number in list)
@@ -1032,26 +1032,26 @@ arguments."
1032
1032
(setq temp-list (cdr temp-list))) )
1033
1033
; ; ---------------------------- number with prefix
1034
1034
((equal symbol 'number )
1035
- (cond ((and (string= prefix (car temp-list))
1035
+ (cond ((and (equal prefix (car temp-list))
1036
1036
(string-match " ^[-0-9.]+$" (cadr temp-list)))
1037
1037
(setq this-cons (cons tag (cadr temp-list))
1038
1038
arg-list (cl-remove (car temp-list) arg-list
1039
- :test 'string = :count 1 )
1039
+ :test 'equal :count 1 )
1040
1040
arg-list (cl-remove (cadr temp-list) arg-list
1041
- :test 'string = :count 1 )
1041
+ :test 'equal :count 1 )
1042
1042
temp-list nil ))
1043
1043
; ; --------------------- number without prefix
1044
1044
((and (not prefix)
1045
1045
(string-match " ^[-0-9.]+$" (car temp-list)))
1046
1046
(setq this-cons (cons tag (car temp-list))
1047
1047
arg-list (cl-remove (car temp-list) arg-list
1048
- :test 'string = :count 1 )
1048
+ :test 'equal :count 1 )
1049
1049
temp-list nil ))
1050
1050
(t
1051
1051
(setq temp-list (cdr temp-list)))))
1052
1052
; ; ---------------------------- pair with prefix
1053
1053
((equal symbol 'pair )
1054
- (if (and (string= prefix (car temp-list))
1054
+ (if (and (equal prefix (car temp-list))
1055
1055
(string-match " ^[-0-9.]+$" (cadr temp-list)))
1056
1056
(let ((this-car (cadr temp-list))
1057
1057
(this-cdr (if (string-match " ^[-0-9.]+$" (cl-caddr temp-list))
@@ -1071,7 +1071,7 @@ arguments."
1071
1071
(cons tag (cons (match-string 1 (car temp-list))
1072
1072
(match-string 2 (car temp-list))))
1073
1073
arg-list (cl-remove (car temp-list) arg-list
1074
- :test 'string = :count 1 )
1074
+ :test 'equal :count 1 )
1075
1075
temp-list nil )
1076
1076
(setq temp-list (cdr temp-list)) ))
1077
1077
; ; ---------------------------- labels
@@ -1081,7 +1081,7 @@ arguments."
1081
1081
" )" ) ; closing paren
1082
1082
(car temp-list))
1083
1083
(let* ((list (split-string (car temp-list) " [ \t (),]+" ))
1084
- (list (cl-remove " " list :test 'string = ))
1084
+ (list (cl-remove " " list :test 'equal ))
1085
1085
(return ()))
1086
1086
(while list
1087
1087
(if (string-match " ['\" ]\\ ([^'\" ]*\\ )['\" ]" (car list ))
@@ -1093,7 +1093,7 @@ arguments."
1093
1093
(setq list (cdr list )) )
1094
1094
(setq this-cons (cons tag return)
1095
1095
arg-list (cl-remove (car temp-list) arg-list
1096
- :test 'string = :count 1 )
1096
+ :test 'equal :count 1 )
1097
1097
temp-list nil ))
1098
1098
(setq temp-list (cdr temp-list))) )
1099
1099
; ; ---------------------------- string, file, format
@@ -1104,17 +1104,17 @@ arguments."
1104
1104
(car temp-list))
1105
1105
(setq this-cons (cons tag (match-string 0 (car temp-list)))
1106
1106
arg-list (cl-remove (car temp-list) arg-list
1107
- :test 'string = :count 1 )
1107
+ :test 'equal :count 1 )
1108
1108
temp-list nil )
1109
1109
(setq temp-list (cdr temp-list)) ))
1110
1110
; ; ---------------------------- string*
1111
1111
((equal symbol 'string* )
1112
- (if (string= prefix (car temp-list))
1112
+ (if (equal prefix (car temp-list))
1113
1113
(setq this-cons (cons tag (cadr temp-list))
1114
1114
arg-list (cl-remove (car temp-list) arg-list
1115
- :test 'string = :count 1 )
1115
+ :test 'equal :count 1 )
1116
1116
arg-list (cl-remove (cadr temp-list) arg-list
1117
- :test 'string = :count 1 )
1117
+ :test 'equal :count 1 )
1118
1118
temp-list nil )
1119
1119
(setq temp-list (cdr temp-list)) ) )
1120
1120
; ; ---------------------------- other or unknown
@@ -1325,7 +1325,7 @@ SAVE-FRAME is non-nil when the widgets are being reset."
1325
1325
(just-one-space ))
1326
1326
(forward-sexp )))
1327
1327
(delete-horizontal-space )
1328
- (if (string= " terminal" (widget-get widget :doc ))
1328
+ (if (equal " terminal" (widget-get widget :doc ))
1329
1329
(gnuplot-gui-set-options-and-insert)) ))
1330
1330
(widget-insert " " )
1331
1331
(widget-create 'push-button :value " Reset"
@@ -1411,7 +1411,7 @@ menu. STARRED is true if this a \\='list* widget."
1411
1411
(concat (downcase (widget-get widget :tag )) " " )
1412
1412
" " )))
1413
1413
(setcdr (assoc (widget-get widget :tag ) gnuplot-gui-alist)
1414
- (if (string= (widget-value widget) " " ) " "
1414
+ (if (equal (widget-value widget) " " ) " "
1415
1415
(format " %s%s " lab (widget-value widget))) )))
1416
1416
(mapcar (lambda (x ) (list 'item :value x))
1417
1417
list ))))
0 commit comments