Function: cider--fallback-op

cider--fallback-op is a byte-compiled function defined in cider-client.el.

Signature

(cider--fallback-op OP CONNECTION)

Documentation

Return the effective op name for OP on CONNECTION.

Try OP as-is first, then fall back to the unprefixed name for backward compatibility with older cider-nrepl versions that don't use namespaced ops.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-client.el
(defun cider--fallback-op (op connection)
  "Return the effective op name for OP on CONNECTION.
Try OP as-is first, then fall back to the unprefixed name for
backward compatibility with older cider-nrepl versions that don't
use namespaced ops."
  (let ((legacy (string-remove-prefix "cider/" op)))
    (cond
     ((nrepl-op-supported-p op connection) op)
     ((and (not (equal op legacy))
           (nrepl-op-supported-p legacy connection))
      legacy)
     (t op))))