Function: jit-lock-force-redisplay

jit-lock-force-redisplay is a byte-compiled function defined in jit-lock.el.gz.

Signature

(jit-lock-force-redisplay START END)

Documentation

Force the display engine to re-render START's buffer from START to END.

This applies to the buffer associated with marker START.

Source Code

;; Defined in /usr/src/emacs/lisp/jit-lock.el.gz
(defun jit-lock-force-redisplay (start end)
  "Force the display engine to re-render START's buffer from START to END.
This applies to the buffer associated with marker START."
  (when (marker-buffer start)
    (with-current-buffer (marker-buffer start)
      (with-silent-modifications
       (when (> end (point-max))
         (setq end (point-max) start (min start end)))
       (when (< start (point-min))
         (setq start (point-min) end (max start end)))
       ;; Don't cause refontification (it's already been done), but just do
       ;; some random buffer change, so as to force redisplay.
       (put-text-property start end 'fontified nil)
       (put-text-property start end 'fontified t)))))