Function: cider-repl--emit-verbatim

cider-repl--emit-verbatim is a byte-compiled function defined in cider-repl.el.

Signature

(cider-repl--emit-verbatim BUFFER STRING &optional SHOW-PREFIX BOL)

Documentation

Insert STRING into BUFFER's output area, preserving its text properties.

Unlike cider-repl-emit-result, the inserted text is not registered as a result span, so it's never re-font-locked as Clojure and any faces or buttons it carries survive. SHOW-PREFIX and BOL are as in cider-repl-emit-result.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-repl.el
(defun cider-repl--emit-verbatim (buffer string &optional show-prefix bol)
  "Insert STRING into BUFFER's output area, preserving its text properties.
Unlike `cider-repl-emit-result', the inserted text is not registered as a
result span, so it's never re-font-locked as Clojure and any faces or
buttons it carries survive.  SHOW-PREFIX and BOL are as in
`cider-repl-emit-result'."
  (with-current-buffer buffer
    (save-excursion
      (cider-save-marker cider-repl-output-start
        (goto-char cider-repl-output-end)
        (when (and bol (not (bolp)))
          (insert-before-markers "\n"))
        (when show-prefix
          (insert-before-markers
           (propertize cider-repl-result-prefix 'font-lock-face 'font-lock-comment-face)))
        (insert-before-markers string)
        (unless (bolp)
          (insert-before-markers "\n"))))))