Function: cider-repl-wrap-fontify-function

cider-repl-wrap-fontify-function is a byte-compiled function defined in cider-repl.el.

Signature

(cider-repl-wrap-fontify-function FUNC)

Documentation

Return a function that will call FUNC narrowed to input region.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-repl.el
(defun cider-repl-wrap-fontify-function (func)
  "Return a function that will call FUNC narrowed to input region."
  (lambda (beg end &rest rest)
    (when (and cider-repl-input-start-mark
               (> end cider-repl-input-start-mark))
      (save-restriction
        (narrow-to-region cider-repl-input-start-mark (point-max))
        (let ((font-lock-dont-widen t))
          (apply func (max beg cider-repl-input-start-mark) end rest))))))