Skip to content

Commit 3d67c24

Browse files
committed
Remove usages of first' and second' from cl
1 parent 3b1c837 commit 3d67c24

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

cider-client.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ loaded. If CALLBACK is nil, use `cider-load-file-handler'."
258258
(when err
259259
;; err will be a stacktrace with a first line that looks like:
260260
;; "clojure.lang.ExceptionInfo: Unmatched delimiter ]"
261-
(error (first (split-string err "\n"))))
261+
(error (car (split-string err "\n"))))
262262
(nrepl-dict-get response "formatted-edn")))
263263

264264
(provide 'cider-client)

cider-interaction.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ form, with symbol at point replaced by __prefix__."
10181018

10191019
(defun cider-completion--get-candidate-type (symbol)
10201020
(let ((type (get-text-property 0 'type symbol)))
1021-
(or (cl-second (assoc type cider-completion-annotations-alist))
1021+
(or (cadr (assoc type cider-completion-annotations-alist))
10221022
type)))
10231023

10241024
(defun cider-completion--get-candidate-ns (symbol)

cider-stacktrace.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,12 +459,12 @@ it wraps to 0."
459459
(with-current-buffer buffer
460460
(insert " Show: ")
461461
(dolist (filter filters)
462-
(insert-text-button (first filter)
463-
'filter (second filter)
462+
(insert-text-button (car filter)
463+
'filter (cadr filter)
464464
'follow-link t
465465
'action 'cider-stacktrace-filter
466466
'help-echo (format "Toggle %s stack frames"
467-
(first filter)))
467+
(car filter)))
468468
(insert " "))
469469
(let ((hidden "(0 frames hidden)"))
470470
(put-text-property 0 (length hidden) 'hidden-count t hidden)
@@ -534,7 +534,7 @@ This associates text properties to enable filtering and source navigation."
534534
"Set and apply CAUSES initial visibility, filters, and cursor position."
535535
;; Partially display outermost cause if it's a compiler exception (the
536536
;; description reports reader location of the error).
537-
(nrepl-dbind-response (first causes) (class)
537+
(nrepl-dbind-response (car causes) (class)
538538
(when (equal class "clojure.lang.Compiler$CompilerException")
539539
(cider-stacktrace-cycle-cause (length causes) 1)))
540540
;; Fully display innermost cause. This also applies visibility/filters.

cider-test.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ is searched."
469469
(cider-test-execute ns nil (list var))
470470
(let ((ns (clojure-find-ns))
471471
(def (clojure-find-def)))
472-
(if (and ns (member (first def) '("deftest" "defspec")))
472+
(if (and ns (member (car def) '("deftest" "defspec")))
473473
(cider-test-execute ns nil (rest def))
474474
(message "No test at point"))))))
475475

cider.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ Return a list of the form (HOST PORT), where PORT can be nil."
264264
(sel-port (completing-read (format "Port for %s: " host) ports
265265
nil nil nil nil (caar ports)))
266266
(port (or (cdr (assoc sel-port ports)) sel-port))
267-
(port (if (listp port) (second port) port)))
267+
(port (if (listp port) (cadr port) port)))
268268
(if (stringp port) (string-to-number port) port)))
269269

270270
(defun cider-locate-running-nrepl-ports (&optional dir)

test/cider-tests.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
(buffer-string)))
214214
(goto-char 80) ; somewhere in the second connection listed
215215
(nrepl-connections-make-default)
216-
(should (equal (buffer-name b2) (first nrepl-connection-list)))
216+
(should (equal (buffer-name b2) (car nrepl-connection-list)))
217217
(should (equal " Host Port Project
218218
219219
localhost 4005 proj

0 commit comments

Comments
 (0)