Function: cider-redraw-macroexpansion-buffer

cider-redraw-macroexpansion-buffer is a byte-compiled function defined in cider-macroexpansion.el.

Signature

(cider-redraw-macroexpansion-buffer EXPANSION BUFFER START END)

Documentation

Redraw the macroexpansion with new EXPANSION.

Text in BUFFER from START to END is replaced with new expansion, and point is placed after the expanded form.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-macroexpansion.el
(defun cider-redraw-macroexpansion-buffer (expansion buffer start end)
  "Redraw the macroexpansion with new EXPANSION.
Text in BUFFER from START to END is replaced with new expansion,
and point is placed after the expanded form."
  (with-current-buffer buffer
    (let ((buffer-read-only nil))
      (goto-char start)
      (delete-region start end)
      (insert (format "%s" expansion))
      (goto-char start)
      (indent-sexp)
      (forward-sexp))))