Function: cider-nrepl-op-supported-p

cider-nrepl-op-supported-p is a byte-compiled function defined in cider-client.el.

Signature

(cider-nrepl-op-supported-p OP &optional CONNECTION SKIP-ENSURE)

Documentation

Check whether the CONNECTION supports the nREPL middleware OP.

Also checks for the unprefixed legacy name when OP starts with
"cider/", for backward compatibility with older cider-nrepl.
Skip check if repl is active if SKIP-ENSURE is non nil.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-client.el
(defun cider-nrepl-op-supported-p (op &optional connection skip-ensure)
  "Check whether the CONNECTION supports the nREPL middleware OP.
Also checks for the unprefixed legacy name when OP starts with
\"cider/\", for backward compatibility with older cider-nrepl.
Skip check if repl is active if SKIP-ENSURE is non nil."
  (let ((conn (or connection
                  (cider-current-repl 'infer (if skip-ensure nil 'ensure)))))
    (or (nrepl-op-supported-p op conn)
        (let ((legacy (string-remove-prefix "cider/" op)))
          (and (not (equal op legacy))
               (nrepl-op-supported-p legacy conn))))))