Function: cider-read-and-eval-defun

cider-read-and-eval-defun is an interactive and byte-compiled function defined in cider-eval.el.

Signature

(cider-read-and-eval-defun)

Documentation

Insert the toplevel form at point in the minibuffer and output its result.

The point is placed next to the function name in the minibuffer to allow passing arguments.

Key Bindings

Aliases

cider-read-and-eval-defun-at-point (obsolete since 2.1.0)

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-eval.el
(defun cider-read-and-eval-defun ()
  "Insert the toplevel form at point in the minibuffer and output its result.
The point is placed next to the function name in the minibuffer to allow
passing arguments."
  (interactive)
  (let* ((fn-name (cadr (split-string (cider-defun-at-point))))
         (form (format "(%s)" fn-name)))
    (cider-read-and-eval (cons form (length form)))))