Variable: cider--pinned-repl-buffer

cider--pinned-repl-buffer is a buffer-local variable defined in cider-session.el.

Documentation

The REPL buffer the current buffer is pinned to, or nil.

Pinning ties a buffer to a specific REPL so that CIDER commands invoked there target that session regardless of sesman and default-directory. It is set on ancillary buffers that originate from a session and must never switch away from it (e.g. *cider-inspector*, *cider-error*, popups), and on source buffers visited outside the project directory (e.g. a dependency's source jumped to via cider-find-var), pinning them to the session they were navigated from. Consult it through cider--pinned-repl and cider--pinned-session rather than directly.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-session.el
(defvar-local cider--pinned-repl-buffer nil
  "The REPL buffer the current buffer is pinned to, or nil.
Pinning ties a buffer to a specific REPL so that CIDER commands invoked
there target that session regardless of sesman and `default-directory'.
It is set on ancillary buffers that originate from a session and must never
switch away from it (e.g. *cider-inspector*, *cider-error*, popups), and on
source buffers visited outside the project directory (e.g. a dependency's
source jumped to via `cider-find-var'), pinning them to the session they
were navigated from.  Consult it through `cider--pinned-repl' and
`cider--pinned-session' rather than directly.")