Skip to content

Commit 0e2899a

Browse files
committed
Use _ where appropriate
1 parent ad5c7fd commit 0e2899a

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

cider-doc.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ Tables are marked to be ignored by line wrap."
356356
(newline)
357357
(insert-text-button "[source]"
358358
'follow-link t
359-
'action (lambda (x)
359+
'action (lambda (_x)
360360
(cider-docview-source)))
361361
(let ((beg (point-min))
362362
(end (point-max)))

cider-inspector.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@
7070
(cider-inspect-expr expression (cider-current-ns)))
7171

7272
;; Operations
73-
(defun cider-inspector--value-handler (buffer value)
73+
(defun cider-inspector--value-handler (_buffer value)
7474
(cider-make-popup-buffer cider-inspector-buffer 'cider-inspector-mode)
7575
(cider-irender cider-inspector-buffer value))
7676

77-
(defun cider-inspector--out-handler (buffer value)
77+
(defun cider-inspector--out-handler (_buffer value)
7878
(cider-emit-interactive-eval-output value))
7979

80-
(defun cider-inspector--err-handler (buffer err)
80+
(defun cider-inspector--err-handler (_buffer err)
8181
(cider-emit-interactive-eval-err-output err))
8282

8383
(defun cider-inspector--done-handler (buffer)

cider-interaction.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ value is thing at point."
842842
(pcase narg
843843
(-1 t) ; -
844844
(16 t) ; empty empty
845-
(narg nil))))
845+
(_ nil))))
846846

847847
(defun cider--invert-prefix-arg (arg)
848848
"Invert the effect of prefix value ARG on `cider-prompt-for-symbol'.
@@ -853,15 +853,15 @@ This function preserves the `other-window' meaning of ARG."
853853
(16 -1) ; empty empty -> -
854854
(-1 16) ; - -> empty empty
855855
(4 nil) ; empty -> no-prefix
856-
(nil 4)))) ; no-prefix -> empty
856+
(_ 4)))) ; no-prefix -> empty
857857

858858
(defun cider--prefix-invert-prompt-p (arg)
859859
"Test prefix value ARG for its effect on `cider-prompt-for-symbol`."
860860
(let ((narg (prefix-numeric-value arg)))
861861
(pcase narg
862862
(16 t) ; empty empty
863863
(4 t) ; empty
864-
(narg nil))))
864+
(_ nil))))
865865

866866
(defun cider--prompt-for-symbol-p (&optional prefix)
867867
"Check if cider should prompt for symbol.
@@ -1092,7 +1092,7 @@ The handler simply inserts the result value in BUFFER."
10921092
(insert value)))
10931093
(lambda (_buffer out)
10941094
(cider-repl-emit-interactive-output out))
1095-
(lambda (buffer err)
1095+
(lambda (_buffer err)
10961096
(cider-handle-compilation-errors err eval-buffer))
10971097
'())))
10981098

@@ -1138,7 +1138,7 @@ This is controlled via `cider-interactive-eval-output-destination'."
11381138
(cider--display-interactive-eval-result value))
11391139
(lambda (_buffer out)
11401140
(cider-emit-interactive-eval-output out))
1141-
(lambda (buffer err)
1141+
(lambda (_buffer err)
11421142
(cider-emit-interactive-eval-err-output err)
11431143
(cider-handle-compilation-errors err eval-buffer))
11441144
'())))
@@ -1153,7 +1153,7 @@ This is controlled via `cider-interactive-eval-output-destination'."
11531153
(run-hooks 'cider-file-loaded-hook)))
11541154
(lambda (_buffer value)
11551155
(cider-emit-interactive-eval-output value))
1156-
(lambda (buffer err)
1156+
(lambda (_buffer err)
11571157
(cider-emit-interactive-eval-err-output err)
11581158
(cider-handle-compilation-errors err eval-buffer))
11591159
'()

cider-repl.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ ENDPOINT is a plist as returned by `nrepl-connect'."
194194
(nrepl-request:eval
195195
"(when (clojure.core/resolve 'clojure.main/repl-requires)
196196
(clojure.core/map clojure.core/require clojure.main/repl-requires))"
197-
(lambda (response) nil)))
197+
(lambda (_response) nil)))
198198

199199
(defun cider-repl-set-initial-ns (buffer)
200200
"Set the REPL BUFFER's initial namespace (by altering `cider-buffer-ns').
@@ -691,7 +691,7 @@ text property `cider-old-input'."
691691
(defun cider-repl-switch-ns-handler (buffer)
692692
"Make a nREPL evaluation handler for the REPL BUFFER's ns switching."
693693
(nrepl-make-response-handler buffer
694-
(lambda (buffer value))
694+
(lambda (_buffer _value))
695695
(lambda (buffer out)
696696
(cider-repl-emit-output buffer out))
697697
(lambda (buffer err)

cider-test.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ With the actual value, the outermost '(not ...)' s-expression is removed."
307307
(unless (zerop (+ fail error))
308308
(cider-insert "Results" 'bold t "\n")
309309
(nrepl-dict-map
310-
(lambda (var tests)
310+
(lambda (_var tests)
311311
(dolist (test tests)
312312
(nrepl-dbind-response test (type)
313313
(unless (equal "pass" type)

0 commit comments

Comments
 (0)