Function: cider-eval-defun-at-point
cider-eval-defun-at-point is an interactive and byte-compiled function
defined in cider-eval.el.
Signature
(cider-eval-defun-at-point &optional DEBUG-IT)
Documentation
Evaluate the current toplevel form, and print result in the minibuffer.
With DEBUG-IT prefix argument, also debug the entire form as with the
command cider-debug-defun-at-point.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-eval.el
(defun cider-eval-defun-at-point (&optional debug-it)
"Evaluate the current toplevel form, and print result in the minibuffer.
With DEBUG-IT prefix argument, also debug the entire form as with the
command `cider-debug-defun-at-point'."
(interactive "P")
(let ((inline-debug (eq 16 (car-safe debug-it))))
(when debug-it
(when (cider-clojurescript-major-mode-p)
(when (y-or-n-p "The debugger doesn't support ClojureScript yet, and we need help with that. \nWould you like to read the Feature Request?")
(browse-url "https://github.com/clojure-emacs/cider/issues/1416"))
(user-error "The debugger does not support ClojureScript"))
(when inline-debug
(cider--prompt-and-insert-inline-dbg)))
(cider-interactive-eval (when (and debug-it (not inline-debug))
(concat "#dbg\n" (cider-defun-at-point)))
nil
(cider-defun-at-point 'bounds)
(cider--nrepl-pr-request-plist))))