27
27
28
28
; ;; Code:
29
29
30
- (require 'cl )
30
+ (require 'cl-lib )
31
31
(require 'cider-interaction )
32
32
33
33
; ; ===================================
74
74
(lambda (buffer str )
75
75
(cider-irender buffer str))
76
76
'()
77
- (lambda (buffer str )
77
+ (lambda (buffer _str )
78
78
(cider-emit-into-popup-buffer buffer " Oops" ))
79
79
'()))
80
80
105
105
" Execute BODY and add PROPS to all the text it inserts.
106
106
More precisely, PROPS are added to the region between the point's
107
107
positions before and after executing BODY."
108
- (let ((start (gensym )))
108
+ (let ((start (cl- gensym )))
109
109
`(let ((, start (point )))
110
110
(prog1 (progn ,@body )
111
111
(add-text-properties , start (point ) , props )))))
@@ -133,7 +133,7 @@ positions before and after executing BODY."
133
133
(newline ))
134
134
((and (consp el) (eq (car el) :value ))
135
135
(cider-irender-value (cadr el) (caddr el)))
136
- (t (message " Unrecognized inspector object: " el))))
136
+ (t (message " Unrecognized inspector object: %s " el))))
137
137
138
138
(defun cider-irender-value (value idx )
139
139
(cider-propertize-region
@@ -174,7 +174,7 @@ If ARG is negative, move backwards."
174
174
(previously-wrapped-p nil ))
175
175
; ; Forward.
176
176
(while (> arg 0 )
177
- (destructuring-bind (pos foundp)
177
+ (cl- destructuring-bind (pos foundp)
178
178
(cider-find-inspectable-object 'next maxpos)
179
179
(if foundp
180
180
(progn (goto-char pos) (setq arg (1- arg))
@@ -184,7 +184,7 @@ If ARG is negative, move backwards."
184
184
(error " No inspectable objects " )))))
185
185
; ; Backward.
186
186
(while (< arg 0 )
187
- (destructuring-bind (pos foundp)
187
+ (cl- destructuring-bind (pos foundp)
188
188
(cider-find-inspectable-object 'prev minpos)
189
189
; ; CIDER-OPEN-INSPECTOR inserts the title of an inspector page
190
190
; ; as a presentation at the beginning of the buffer; skip
@@ -208,10 +208,10 @@ If ARG is negative, move forwards."
208
208
cider-action-number))
209
209
(find-property
210
210
(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)))))
215
215
(or (funcall find-property (point ))
216
216
(funcall find-property (1- (point ))))))
217
217
@@ -222,9 +222,9 @@ that value.
222
222
2. If point is on an action then call that action.
223
223
3. If point is on a range-button fetch and insert the range."
224
224
(interactive )
225
- (destructuring-bind (property value)
225
+ (cl- destructuring-bind (property value)
226
226
(cider-inspector-property-at-point)
227
- (case property
227
+ (cl- case property
228
228
(cider-value-idx
229
229
(cider-inspector-push value))
230
230
; ; TODO: range and action handlers
0 commit comments