Function: cider--render-rich-content-repl

cider--render-rich-content-repl is a byte-compiled function defined in cider-eval.el.

Signature

(cider--render-rich-content-repl BODY CONTENT-TYPE)

Documentation

Render BODY of CONTENT-TYPE in the current REPL buffer.

Reuses the REPL's cider-repl-content-type-handler-alist handlers, so this behaves exactly like a rich result of a form entered at the prompt. Return nil when there's no REPL to render into.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-eval.el
(defun cider--render-rich-content-repl (body content-type)
  "Render BODY of CONTENT-TYPE in the current REPL buffer.
Reuses the REPL's `cider-repl-content-type-handler-alist' handlers, so
this behaves exactly like a rich result of a form entered at the prompt.
Return nil when there's no REPL to render into."
  (when-let* ((repl (cider-current-repl)))
    (if-let* ((handler (cdr (assoc (car content-type)
                                   cider-repl-content-type-handler-alist))))
        (funcall handler content-type repl body t t)
      (cider-repl-emit-result repl body t t))
    t))