Function: cider--eval-in-context
cider--eval-in-context is a byte-compiled function defined in
cider-eval.el.
Signature
(cider--eval-in-context BOUNDS &optional GUESS)
Documentation
Evaluate code at BOUNDS in user-provided evaluation context.
When GUESS is non-nil, attempt to extract the context from parent let-bindings.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eval.el
(defun cider--eval-in-context (bounds &optional guess)
"Evaluate code at BOUNDS in user-provided evaluation context.
When GUESS is non-nil, attempt to extract the context from parent let-bindings."
(let* ((code (string-trim-right
(buffer-substring-no-properties (car bounds) (cadr bounds))))
(eval-context
(minibuffer-with-setup-hook (if guess #'beginning-of-buffer #'ignore)
(read-string "Evaluation context (let-style): "
(if guess (cider--guess-eval-context)
cider-previous-eval-context))))
(code (concat "(let [" eval-context "]\n " code ")")))
(setq-local cider-previous-eval-context eval-context)
(cider-interactive-eval code
nil
bounds
(cider--nrepl-pr-request-plist))))