Function: cider--default-session

cider--default-session is a byte-compiled function defined in cider-session.el.

Signature

(cider--default-session)

Documentation

Return the session named by cider-default-session, or nil.

Nil when no default session is set, or when the named one no longer exists
(e.g. it was quit) - callers then fall back to normal sesman resolution.
This is the single source of truth for the cider-default-session override, shared by cider-repls, cider-ensure-session and cider--sesman-friendly-session-p.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-session.el
(defun cider--default-session ()
  "Return the session named by `cider-default-session', or nil.
Nil when no default session is set, or when the named one no longer exists
\(e.g. it was quit) - callers then fall back to normal sesman resolution.
This is the single source of truth for the `cider-default-session' override,
shared by `cider-repls', `cider-ensure-session' and
`cider--sesman-friendly-session-p'."
  (when cider-default-session
    (sesman-session 'CIDER cider-default-session)))