Function: lazy-lock-fontify-after-scroll
lazy-lock-fontify-after-scroll is a byte-compiled function defined in
lazy-lock.el.gz.
Signature
(lazy-lock-fontify-after-scroll WINDOW WINDOW-START)
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/lazy-lock.el.gz
;; Hook functions.
;; Lazy Lock mode intervenes when (1) a previously invisible buffer region
;; becomes visible, i.e., for demand- or defer-driven on-the-scroll
;; fontification, (2) a buffer modification occurs, i.e., for defer-driven
;; on-the-fly fontification, (3) Emacs becomes idle, i.e., for fontification of
;; deferred fontification and stealth fontification, and (4) other special
;; occasions.
;; 1. There are three ways whereby this can happen.
;;
;; (a) Scrolling the window, either explicitly (e.g., `scroll-up') or
;; implicitly (e.g., `search-forward'). Here, `window-start' changes.
;; Fontification occurs by adding `lazy-lock-fontify-after-scroll' (for
;; demand-driven fontification) or `lazy-lock-defer-after-scroll' (for
;; defer-driven fontification) to the hook `window-scroll-functions'.
(defun lazy-lock-fontify-after-scroll (window window-start)
;; Called from `window-scroll-functions'.
;; Fontify WINDOW from WINDOW-START following the scroll.
(let ((inhibit-point-motion-hooks t))
(lazy-lock-fontify-region window-start (window-end window t)))
;; A prior deletion that did not cause scrolling, followed by a scroll, would
;; result in an unnecessary trigger after this if we did not cancel it now.
(set-window-redisplay-end-trigger window nil))