Variable: cider-repl-content-type-handler-alist

cider-repl-content-type-handler-alist is a variable defined in cider-repl.el.

Value

(("message/external-body" . cider-repl-handle-external-body)
 ("image/jpeg" . cider-repl-handle-jpeg)
 ("image/png" . cider-repl-handle-png)
 ("image/svg+xml" . cider-repl-handle-svg))

Documentation

Association list from content-types to handlers.

Handlers must be functions of two required and two optional arguments - the REPL buffer to insert into, the value of the given content type as a raw string, the REPL's show prefix as any and an end-of-line flag.

The return value of the handler should be a flag, indicating whether or not the REPL is ready for a prompt to be displayed. Most handlers should return t, as the content-type response is (currently) an alternative to the value response. However for handlers which themselves issue subsequent nREPL ops, it may be convenient to prevent inserting a prompt.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl.el
(defvar cider-repl-content-type-handler-alist
  `(("message/external-body" . ,#'cider-repl-handle-external-body)
    ("image/jpeg" . ,#'cider-repl-handle-jpeg)
    ("image/png" . ,#'cider-repl-handle-png)
    ("image/svg+xml" . ,#'cider-repl-handle-svg))
  "Association list from content-types to handlers.
Handlers must be functions of two required and two optional arguments - the
REPL buffer to insert into, the value of the given content type as a raw
string, the REPL's show prefix as any and an `end-of-line' flag.

The return value of the handler should be a flag, indicating whether or not
the REPL is ready for a prompt to be displayed.  Most handlers should return
t, as the content-type response is (currently) an alternative to the
value response.  However for handlers which themselves issue subsequent
nREPL ops, it may be convenient to prevent inserting a prompt.")