Function: lazy-lock-fontify-conservatively

lazy-lock-fontify-conservatively is a byte-compiled function defined in lazy-lock.el.gz.

Signature

(lazy-lock-fontify-conservatively WINDOW)

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/lazy-lock.el.gz
(defun lazy-lock-fontify-conservatively (window)
  ;; Fontify in WINDOW conservatively around point.
  ;; Where we cannot use `window-start' and `window-end' we do `window-height'
  ;; lines around point.  That way we guarantee to have done enough.
  (with-current-buffer (window-buffer window)
    (let ((inhibit-point-motion-hooks t))
      (lazy-lock-fontify-region
       (save-excursion
	 (goto-char (window-point window))
	 (vertical-motion (- (window-height window)) window) (point))
       (save-excursion
	 (goto-char (window-point window))
	 (vertical-motion (window-height window) window) (point))))))