aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2017-07-04 22:26:20 -0400
committerStefan Monnier2017-07-04 22:26:20 -0400
commit71e14f3b61758d37c84488d8512287b4e3c3ded5 (patch)
treeec6faa95944822ea56d5faa51ad24de4251e7c04
parentd36fcad30bd951391c8016b47f33738199946f38 (diff)
downloademacs-71e14f3b61758d37c84488d8512287b4e3c3ded5.tar.gz
emacs-71e14f3b61758d37c84488d8512287b4e3c3ded5.zip
* lisp/progmodes/cc-vars.el: Mark unused args
-rw-r--r--lisp/progmodes/cc-vars.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index ccd4fd29940..2ae90ce4236 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -87,7 +87,7 @@ use c-constant-symbol instead."
87 :value nil 87 :value nil
88 :tag "Symbol" 88 :tag "Symbol"
89 :format "%t: %v\n%d" 89 :format "%t: %v\n%d"
90 :match (lambda (widget value) (symbolp value)) 90 :match (lambda (_widget value) (symbolp value))
91 :value-to-internal 91 :value-to-internal
92 (lambda (widget value) 92 (lambda (widget value)
93 (let ((s (if (symbolp value) 93 (let ((s (if (symbolp value)
@@ -98,7 +98,7 @@ use c-constant-symbol instead."
98 (setq s (concat s (make-string (- l (length s)) ?\ )))) 98 (setq s (concat s (make-string (- l (length s)) ?\ ))))
99 s)) 99 s))
100 :value-to-external 100 :value-to-external
101 (lambda (widget value) 101 (lambda (_widget value)
102 (if (stringp value) 102 (if (stringp value)
103 (intern (progn 103 (intern (progn
104 (string-match "\\`[^ ]*" value) 104 (string-match "\\`[^ ]*" value)
@@ -109,14 +109,14 @@ use c-constant-symbol instead."
109 "An integer or the value nil." 109 "An integer or the value nil."
110 :value nil 110 :value nil
111 :tag "Optional integer" 111 :tag "Optional integer"
112 :match (lambda (widget value) (or (integerp value) (null value)))) 112 :match (lambda (_widget value) (or (integerp value) (null value))))
113 113
114(define-widget 'c-symbol-list 'sexp 114(define-widget 'c-symbol-list 'sexp
115 "A single symbol or a list of symbols." 115 "A single symbol or a list of symbols."
116 :tag "Symbols separated by spaces" 116 :tag "Symbols separated by spaces"
117 :validate 'widget-field-validate 117 :validate 'widget-field-validate
118 :match 118 :match
119 (lambda (widget value) 119 (lambda (_widget value)
120 (or (symbolp value) 120 (or (symbolp value)
121 (catch 'ok 121 (catch 'ok
122 (while (listp value) 122 (while (listp value)
@@ -125,7 +125,7 @@ use c-constant-symbol instead."
125 (setq value (cdr value))) 125 (setq value (cdr value)))
126 (null value)))) 126 (null value))))
127 :value-to-internal 127 :value-to-internal
128 (lambda (widget value) 128 (lambda (_widget value)
129 (cond ((null value) 129 (cond ((null value)
130 "") 130 "")
131 ((symbolp value) 131 ((symbolp value)
@@ -138,7 +138,7 @@ use c-constant-symbol instead."
138 (t 138 (t
139 value))) 139 value)))
140 :value-to-external 140 :value-to-external
141 (lambda (widget value) 141 (lambda (_widget value)
142 (if (stringp value) 142 (if (stringp value)
143 (let (list end) 143 (let (list end)
144 (while (string-match "\\S +" value end) 144 (while (string-match "\\S +" value end)