Skip to content

Commit 96decbe

Browse files
committed
3834 Rename ops-to-support to rquired-ops
1 parent f98ec22 commit 96decbe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cider-connection.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,11 +1015,11 @@ Returns a list of the form ((session1 host1) (session2 host2) ...)."
10151015
sessions
10161016
:initial-value '()))
10171017

1018-
(defun cider-repls (&optional type ensure ops-to-support)
1018+
(defun cider-repls (&optional type ensure required-ops)
10191019
"Return cider REPLs of TYPE from the current session.
10201020
If TYPE is nil or multi, return all REPLs. If TYPE is a list of types,
10211021
return only REPLs of type contained in the list. If ENSURE is non-nil,
1022-
throw an error if no linked session exists. If OPS-TO-SUPPORT is non-nil,
1022+
throw an error if no linked session exists. If REQUIRED-OPS is non-nil,
10231023
filters out all the REPLs that do not support the designated ops."
10241024
(let ((type (cond
10251025
((listp type)
@@ -1049,7 +1049,7 @@ filters out all the REPLs that do not support the designated ops."
10491049
(and (cider--match-repl-type type b)
10501050
(seq-every-p (lambda (op)
10511051
(nrepl-op-supported-p op b))
1052-
ops-to-support))))
1052+
required-ops))))
10531053
repls)
10541054
(when ensure
10551055
(cider--no-repls-user-error type)))))
@@ -1071,7 +1071,7 @@ session."
10711071
(declare (indent 1))
10721072
(let ((cur-type (cider-repl-type-for-buffer))
10731073
(which-key (or (car-safe which) which))
1074-
(ops-to-support (cdr-safe which)))
1074+
(required-ops (cdr-safe which)))
10751075
(cl-case which-key
10761076
(:clj-strict (when (eq cur-type 'cljs)
10771077
(user-error "Clojure-only operation requested in a ClojureScript buffer")))
@@ -1086,7 +1086,7 @@ session."
10861086
(ensure (cl-case which-key
10871087
(:auto nil)
10881088
(t 'ensure)))
1089-
(repls (cider-repls type ensure ops-to-support)))
1089+
(repls (cider-repls type ensure required-ops)))
10901090
(mapcar function repls))))
10911091

10921092
;; REPLs double as connections in CIDER, so it's useful to be able to refer to

test/cider-connection-tests.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@
401401
(expect (cider-repls) :to-equal (list a b))
402402
(sesman-unregister 'CIDER session))))))
403403

404-
(describe "when ops-to-support is not nil"
404+
(describe "when required-ops is not nil"
405405
:var (nrepl-ops)
406406
(it "only returns the repls that support the given ops"
407407
(let ((proj-dir (expand-file-name "/tmp/proj-dir")))

0 commit comments

Comments
 (0)