Function: cider-scratch--ask-for-repl

cider-scratch--ask-for-repl is a byte-compiled function defined in cider-scratch.el.

Signature

(cider-scratch--ask-for-repl)

Documentation

Prompt for a session and return one of its REPLs, or nil if there are none.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-scratch.el
(defun cider-scratch--ask-for-repl ()
  "Prompt for a session and return one of its REPLs, or nil if there are none."
  (when-let* ((sessions (cider-sessions)))
    (let* ((name (completing-read "Attach scratch to CIDER session: "
                                  (mapcar #'car sessions) nil t))
           (session (assoc name sessions)))
      (cadr session))))