Skip to content

Commit a9d58df

Browse files
Appease linter gods
1 parent 78747d5 commit a9d58df

File tree

8 files changed

+100
-98
lines changed

8 files changed

+100
-98
lines changed

cider-browse-ns.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ list of items."
268268
(let* ((max-length (cider-browse-ns--column-width items)))
269269
(cl-labels
270270
((keys-from-pred
271-
(pred items)
272-
(nrepl-dict-keys (nrepl-dict-filter (lambda (_ var-meta)
273-
(funcall pred var-meta))
274-
items))))
271+
(pred items)
272+
(nrepl-dict-keys (nrepl-dict-filter (lambda (_ var-meta)
273+
(funcall pred var-meta))
274+
items))))
275275
(cond
276276
((eql cider-browse-ns-group-by 'type)
277277
(let* ((func-keys (keys-from-pred #'cider-browse-ns--meta-function-p items))

cider-eval.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ _ARG and _RESET are ignored, as there is only ever one compilation error.
222222
They exist for compatibility with `next-error'."
223223
(interactive)
224224
(cl-labels ((goto-next-note-boundary
225-
()
226-
(let ((p (or (cider-find-property 'cider-note-p)
227-
(cider-find-property 'cider-note-p t))))
228-
(when p
229-
(goto-char p)
230-
(message "%s" (get-char-property p 'cider-note))))))
225+
()
226+
(let ((p (or (cider-find-property 'cider-note-p)
227+
(cider-find-property 'cider-note-p t))))
228+
(when p
229+
(goto-char p)
230+
(message "%s" (get-char-property p 'cider-note))))))
231231
;; if we're already on a compilation error, first jump to the end of
232232
;; it, so that we find the next error.
233233
(when (get-char-property (point) 'cider-note-p)

cider-mode.el

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -789,40 +789,40 @@ with the given LIMIT."
789789
deprecated enlightened
790790
macros functions vars instrumented traced)
791791
(cl-labels ((handle-plist
792-
(plist)
793-
;; Note that (memq 'function cider-font-lock-dynamically) and similar statements are evaluated differently
794-
;; for `core' - they're always truthy for `core' (see related core-handling code some lines below):
795-
(let ((do-function (memq 'function cider-font-lock-dynamically))
796-
(do-var (memq 'var cider-font-lock-dynamically))
797-
(do-macro (memq 'macro cider-font-lock-dynamically))
798-
(do-deprecated (memq 'deprecated cider-font-lock-dynamically)))
799-
(while plist
800-
(let ((sym (pop plist))
801-
(meta (pop plist)))
802-
(pcase (nrepl-dict-get meta "cider/instrumented")
803-
(`nil nil)
804-
(`"\"breakpoint-if-interesting\""
805-
(push sym instrumented))
806-
(`"\"light-form\""
807-
(push sym enlightened)))
808-
;; The ::traced keywords can be inlined by MrAnderson, so
809-
;; we catch that case too.
810-
;; FIXME: This matches values too, not just keys.
811-
(when (seq-find (lambda (k) (and (stringp k)
812-
(string-match (rx "orchard.trace/traced" eos) k)))
813-
meta)
814-
(push sym traced))
815-
(when (and do-deprecated (nrepl-dict-get meta "deprecated"))
816-
(push sym deprecated))
817-
(let ((is-macro (nrepl-dict-get meta "macro"))
818-
(is-function (or (nrepl-dict-get meta "fn")
819-
(nrepl-dict-get meta "arglists"))))
820-
(cond ((and do-macro is-macro)
821-
(push sym macros))
822-
((and do-function is-function)
823-
(push sym functions))
824-
((and do-var (not is-function) (not is-macro))
825-
(push sym vars)))))))))
792+
(plist)
793+
;; Note that (memq 'function cider-font-lock-dynamically) and similar statements are evaluated differently
794+
;; for `core' - they're always truthy for `core' (see related core-handling code some lines below):
795+
(let ((do-function (memq 'function cider-font-lock-dynamically))
796+
(do-var (memq 'var cider-font-lock-dynamically))
797+
(do-macro (memq 'macro cider-font-lock-dynamically))
798+
(do-deprecated (memq 'deprecated cider-font-lock-dynamically)))
799+
(while plist
800+
(let ((sym (pop plist))
801+
(meta (pop plist)))
802+
(pcase (nrepl-dict-get meta "cider/instrumented")
803+
(`nil nil)
804+
(`"\"breakpoint-if-interesting\""
805+
(push sym instrumented))
806+
(`"\"light-form\""
807+
(push sym enlightened)))
808+
;; The ::traced keywords can be inlined by MrAnderson, so
809+
;; we catch that case too.
810+
;; FIXME: This matches values too, not just keys.
811+
(when (seq-find (lambda (k) (and (stringp k)
812+
(string-match (rx "orchard.trace/traced" eos) k)))
813+
meta)
814+
(push sym traced))
815+
(when (and do-deprecated (nrepl-dict-get meta "deprecated"))
816+
(push sym deprecated))
817+
(let ((is-macro (nrepl-dict-get meta "macro"))
818+
(is-function (or (nrepl-dict-get meta "fn")
819+
(nrepl-dict-get meta "arglists"))))
820+
(cond ((and do-macro is-macro)
821+
(push sym macros))
822+
((and do-function is-function)
823+
(push sym functions))
824+
((and do-var (not is-function) (not is-macro))
825+
(push sym vars)))))))))
826826
;; For core members, we override `cider-font-lock-dynamically', since all core members should get the same treatment:
827827
(when (memq 'core cider-font-lock-dynamically)
828828
(let ((cider-font-lock-dynamically '(function var macro core deprecated)))

cider-ns.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,13 @@ presenting the error message as an overlay."
166166
"Refresh LOG-BUFFER with RESPONSE."
167167
(nrepl-dbind-response response (out err reloading progress status error error-ns after before)
168168
(cl-flet* ((log (message &optional face)
169-
(cider-emit-into-popup-buffer log-buffer message face t))
169+
(cider-emit-into-popup-buffer log-buffer message face t))
170170

171171
(log-echo (message &optional face)
172-
(log message face)
173-
(unless cider-ns-refresh-show-log-buffer
174-
(let ((message-truncate-lines t))
175-
(message "cider-ns-refresh: %s" message)))))
172+
(log message face)
173+
(unless cider-ns-refresh-show-log-buffer
174+
(let ((message-truncate-lines t))
175+
(message "cider-ns-refresh: %s" message)))))
176176
(cond
177177
(out
178178
(log out))

cider-repl.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,11 @@ description transform) where transform is called with the param-value if
348348
present."
349349
(cl-labels
350350
((emit-comment
351-
(contents)
352-
(insert-before-markers
353-
(propertize
354-
(if (string-blank-p contents) ";;\n" (concat ";; " contents "\n"))
355-
'font-lock-face 'font-lock-comment-face))))
351+
(contents)
352+
(insert-before-markers
353+
(propertize
354+
(if (string-blank-p contents) ";;\n" (concat ";; " contents "\n"))
355+
'font-lock-face 'font-lock-comment-face))))
356356
(let ((jack-in-command (plist-get cider-launch-params :jack-in-cmd))
357357
(cljs-repl-type (plist-get cider-launch-params :cljs-repl-type))
358358
(cljs-init-form (plist-get cider-launch-params :repl-init-form)))

cider-selector.el

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -120,57 +120,59 @@ is chosen. The returned buffer is selected with
120120
(cl-remove ,key cider-selector-methods :key #'car))
121121
#'< :key #'car))))
122122

123-
(def-cider-selector-method ?? "Selector help buffer."
124-
(ignore-errors (kill-buffer cider-selector-help-buffer))
125-
(with-current-buffer (get-buffer-create cider-selector-help-buffer)
126-
(insert "CIDER Selector Methods:\n\n")
127-
(cl-loop for (key line nil) in cider-selector-methods
128-
do (insert (format "%c:\t%s\n" key line)))
129-
(goto-char (point-min))
130-
(help-mode)
131-
(display-buffer (current-buffer) t))
132-
(cider-selector)
133-
(current-buffer))
123+
(def-cider-selector-method
124+
?? "Selector help buffer."
125+
(ignore-errors (kill-buffer cider-selector-help-buffer))
126+
(with-current-buffer (get-buffer-create cider-selector-help-buffer)
127+
(insert "CIDER Selector Methods:\n\n")
128+
(cl-loop for (key line nil) in cider-selector-methods
129+
do (insert (format "%c:\t%s\n" key line)))
130+
(goto-char (point-min))
131+
(help-mode)
132+
(display-buffer (current-buffer) t))
133+
(cider-selector)
134+
(current-buffer))
134135

135136
(cl-pushnew (list ?4 "Select in other window" (lambda () (cider-selector t)))
136137
cider-selector-methods :key #'car)
137138

138-
(def-cider-selector-method ?c
139-
"Most recently visited clojure-mode buffer."
140-
(cider-selector--recently-visited-buffer '(clojure-mode clojure-ts-mode)))
139+
(def-cider-selector-method
140+
?c "Most recently visited clojure-mode buffer."
141+
(cider-selector--recently-visited-buffer '(clojure-mode clojure-ts-mode)))
141142

142-
(def-cider-selector-method ?e
143-
"Most recently visited emacs-lisp-mode buffer."
144-
(cider-selector--recently-visited-buffer 'emacs-lisp-mode))
143+
(def-cider-selector-method
144+
?e "Most recently visited emacs-lisp-mode buffer."
145+
(cider-selector--recently-visited-buffer 'emacs-lisp-mode))
145146

146-
(def-cider-selector-method ?q "Abort."
147-
(top-level))
147+
(def-cider-selector-method
148+
?q "Abort."
149+
(top-level))
148150

149-
(def-cider-selector-method ?r
150-
"Current REPL buffer or as a fallback, the most recently
151+
(def-cider-selector-method
152+
?r "Current REPL buffer or as a fallback, the most recently
151153
visited cider-repl-mode buffer."
152-
(or (cider-current-repl)
153-
(cider-selector--recently-visited-buffer 'cider-repl-mode)))
154+
(or (cider-current-repl)
155+
(cider-selector--recently-visited-buffer 'cider-repl-mode)))
154156

155-
(def-cider-selector-method ?m
156-
"Current connection's *nrepl-messages* buffer."
157-
(nrepl-messages-buffer (cider-current-repl)))
157+
(def-cider-selector-method
158+
?m "Current connection's *nrepl-messages* buffer."
159+
(nrepl-messages-buffer (cider-current-repl)))
158160

159-
(def-cider-selector-method ?x
160-
"*cider-error* buffer."
161-
cider-error-buffer)
161+
(def-cider-selector-method
162+
?x "*cider-error* buffer."
163+
cider-error-buffer)
162164

163-
(def-cider-selector-method ?p
164-
"*cider-profile* buffer."
165-
cider-profile-buffer)
165+
(def-cider-selector-method
166+
?p "*cider-profile* buffer."
167+
cider-profile-buffer)
166168

167-
(def-cider-selector-method ?d
168-
"*cider-doc* buffer."
169-
cider-doc-buffer)
169+
(def-cider-selector-method
170+
?d "*cider-doc* buffer."
171+
cider-doc-buffer)
170172

171-
(def-cider-selector-method ?s
172-
"*cider-scratch* buffer."
173-
(cider-scratch-find-or-create-buffer))
173+
(def-cider-selector-method
174+
?s "*cider-scratch* buffer."
175+
(cider-scratch-find-or-create-buffer))
174176

175177
(provide 'cider-selector)
176178

cider-stacktrace.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ filters for the resulting machinery."
346346
(save-excursion
347347
(goto-char (point-min))
348348
(cl-flet ((next-detail (end)
349-
(when-let* ((pos (next-single-property-change (point) 'detail)))
350-
(when (< pos end)
351-
(goto-char pos)))))
349+
(when-let* ((pos (next-single-property-change (point) 'detail)))
350+
(when (< pos end)
351+
(goto-char pos)))))
352352
(let ((inhibit-read-only t))
353353
;; For each cause...
354354
(while (cider-stacktrace-next-cause)

nrepl-client.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,9 +1411,9 @@ If ID is nil, return nil."
14111411
"Pretty print nREPL list like OBJECT.
14121412
FOREGROUND and BUTTON are as in `nrepl-log-pp-object'."
14131413
(cl-flet ((color (str)
1414-
(propertize str 'face
1415-
(append '(:weight ultra-bold)
1416-
(when foreground `(:foreground ,foreground))))))
1414+
(propertize str 'face
1415+
(append '(:weight ultra-bold)
1416+
(when foreground `(:foreground ,foreground))))))
14171417
(let ((head (format "(%s" (car object))))
14181418
(insert (color head))
14191419
(if (null (cdr object))

0 commit comments

Comments
 (0)