Function: cider-repl-handle-external-body
cider-repl-handle-external-body is a byte-compiled function defined in
cider-repl.el.
Signature
(cider-repl-handle-external-body TYPE BUFFER _ &optional SHOW-PREFIX BOL)
Documentation
Handler for referencing external content in BUFFER.
Handles an external-body TYPE by rendering the reference URL followed by a
button that fetches and renders the content on demand, via a slurp
request. Nothing is transferred (or connected to) until the button is
pressed, so merely evaluating a File or URI has no side effects.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-repl.el
(defun cider-repl-handle-external-body (type buffer _ &optional show-prefix bol)
"Handler for referencing external content in BUFFER.
Handles an external-body TYPE by rendering the reference URL followed by a
button that fetches and renders the content on demand, via a slurp
request. Nothing is transferred (or connected to) until the button is
pressed, so merely evaluating a `File' or `URI' has no side effects."
(when-let* ((args (cadr type))
(access-type (nrepl-dict-get args "access-type"))
(url (nrepl-dict-get args access-type)))
(cider-repl--display-external-body buffer url show-prefix bol))
t)