Function: cider--connection-for-session
cider--connection-for-session is a byte-compiled function defined in
cider-client.el.
Signature
(cider--connection-for-session SESSION)
Documentation
Return the connection buffer whose nREPL SESSION matches, or nil.
Matches the main or the tooling session, so stdin and interrupts can be
routed to the exact connection that requested input rather than whichever
one cider-current-repl happens to resolve to.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-client.el
(defun cider--connection-for-session (session)
"Return the connection buffer whose nREPL SESSION matches, or nil.
Matches the main or the tooling session, so stdin and interrupts can be
routed to the exact connection that requested input rather than whichever
one `cider-current-repl' happens to resolve to."
(when session
(seq-find (lambda (buf)
(and (buffer-live-p buf)
(or (equal session (buffer-local-value 'nrepl-session buf))
(equal session (buffer-local-value 'nrepl-tooling-session buf)))))
(buffer-list))))