Function: cider-repl-clear-buffer
cider-repl-clear-buffer is an interactive and byte-compiled function
defined in cider-repl.el.
Signature
(cider-repl-clear-buffer)
Documentation
Clear the currently visited REPL buffer completely.
See also the related commands cider-repl-clear-output and
cider-find-and-clear-repl-output.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl.el
(defun cider-repl-clear-buffer ()
"Clear the currently visited REPL buffer completely.
See also the related commands `cider-repl-clear-output' and
`cider-find-and-clear-repl-output'."
(interactive)
(let ((inhibit-read-only t))
(cider-repl--clear-region (point-min) cider-repl-prompt-start-mark)
(cider-repl--clear-region cider-repl-output-start cider-repl-output-end)
(when (< (point) cider-repl-input-start-mark)
(goto-char cider-repl-input-start-mark))
(recenter t))
(run-hooks 'cider-repl-clear-buffer-hook))