Function: cider--eval-last-sexp-to-repl

cider--eval-last-sexp-to-repl is a byte-compiled function defined in cider-eval.el.

Signature

(cider--eval-last-sexp-to-repl SWITCH-TO-REPL REQUEST-MAP)

Documentation

Evaluate the expression preceding point and insert its result in the REPL, honoring SWITCH-TO-REPL, REQUEST-MAP.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eval.el
(defun cider--eval-last-sexp-to-repl (switch-to-repl request-map)
  "Evaluate the expression preceding point and insert its result in the REPL,
honoring SWITCH-TO-REPL, REQUEST-MAP."
  (let ((bounds (cider-last-sexp 'bounds)))
    (cider-interactive-eval nil
                            (cider-insert-eval-handler (cider-current-repl)
                                                       bounds
                                                       (current-buffer)
                                                       (lambda ()
                                                         (when switch-to-repl
                                                           (cider-switch-to-repl-buffer))))
                            bounds
                            request-map)))