@@ -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.
10201020If TYPE is nil or multi, return all REPLs. If TYPE is a list of types,
10211021return 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,
10231023filters 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
0 commit comments