Skip to content

Commit a3d7565

Browse files
author
Bozhidar Batsov
committed
Fix compiler warnings in the inspector
1 parent d18c3f7 commit a3d7565

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

cider-inspector.el

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
;;; Code:
2929

30-
(require 'cl)
30+
(require 'cl-lib)
3131
(require 'cider-interaction)
3232

3333
;; ===================================
@@ -74,7 +74,7 @@
7474
(lambda (buffer str)
7575
(cider-irender buffer str))
7676
'()
77-
(lambda (buffer str)
77+
(lambda (buffer _str)
7878
(cider-emit-into-popup-buffer buffer "Oops"))
7979
'()))
8080

@@ -105,7 +105,7 @@
105105
"Execute BODY and add PROPS to all the text it inserts.
106106
More precisely, PROPS are added to the region between the point's
107107
positions before and after executing BODY."
108-
(let ((start (gensym)))
108+
(let ((start (cl-gensym)))
109109
`(let ((,start (point)))
110110
(prog1 (progn ,@body)
111111
(add-text-properties ,start (point) ,props)))))
@@ -133,7 +133,7 @@ positions before and after executing BODY."
133133
(newline))
134134
((and (consp el) (eq (car el) :value))
135135
(cider-irender-value (cadr el) (caddr el)))
136-
(t (message "Unrecognized inspector object: " el))))
136+
(t (message "Unrecognized inspector object: %s" el))))
137137

138138
(defun cider-irender-value (value idx)
139139
(cider-propertize-region
@@ -174,7 +174,7 @@ If ARG is negative, move backwards."
174174
(previously-wrapped-p nil))
175175
;; Forward.
176176
(while (> arg 0)
177-
(destructuring-bind (pos foundp)
177+
(cl-destructuring-bind (pos foundp)
178178
(cider-find-inspectable-object 'next maxpos)
179179
(if foundp
180180
(progn (goto-char pos) (setq arg (1- arg))
@@ -184,7 +184,7 @@ If ARG is negative, move backwards."
184184
(error "No inspectable objects")))))
185185
;; Backward.
186186
(while (< arg 0)
187-
(destructuring-bind (pos foundp)
187+
(cl-destructuring-bind (pos foundp)
188188
(cider-find-inspectable-object 'prev minpos)
189189
;; CIDER-OPEN-INSPECTOR inserts the title of an inspector page
190190
;; as a presentation at the beginning of the buffer; skip
@@ -208,10 +208,10 @@ If ARG is negative, move forwards."
208208
cider-action-number))
209209
(find-property
210210
(lambda (point)
211-
(loop for property in properties
212-
for value = (get-text-property point property)
213-
when value
214-
return (list property value)))))
211+
(cl-loop for property in properties
212+
for value = (get-text-property point property)
213+
when value
214+
return (list property value)))))
215215
(or (funcall find-property (point))
216216
(funcall find-property (1- (point))))))
217217

@@ -222,9 +222,9 @@ that value.
222222
2. If point is on an action then call that action.
223223
3. If point is on a range-button fetch and insert the range."
224224
(interactive)
225-
(destructuring-bind (property value)
225+
(cl-destructuring-bind (property value)
226226
(cider-inspector-property-at-point)
227-
(case property
227+
(cl-case property
228228
(cider-value-idx
229229
(cider-inspector-push value))
230230
;; TODO: range and action handlers

0 commit comments

Comments
 (0)