Function: cider-eval-print-last-sexp

cider-eval-print-last-sexp is an interactive and byte-compiled function defined in cider-eval.el.

Signature

(cider-eval-print-last-sexp &optional PRETTY-PRINT)

Documentation

Evaluate the expression preceding point.

Print its value into the current buffer. With an optional PRETTY-PRINT prefix it pretty-prints the result.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eval.el
(defun cider-eval-print-last-sexp (&optional pretty-print)
  "Evaluate the expression preceding point.
Print its value into the current buffer.
With an optional PRETTY-PRINT prefix it pretty-prints the result."
  (interactive "P")
  (cider-interactive-eval nil
                          (cider-eval-print-handler)
                          (cider-last-sexp 'bounds)
                          (if pretty-print
                              (cider--nrepl-print-request-plist fill-column)
                            (cider--nrepl-pr-request-plist))))