From: Stefan Monnier Date: Mon, 7 Aug 2006 18:24:25 +0000 (+0000) Subject: (font-lock-extend-jit-lock-region-after-change): Better comment. X-Git-Tag: emacs-pretest-22.0.90~1076 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=10412e6312cabf9265acbe32fd3743927038015f;p=emacs.git (font-lock-extend-jit-lock-region-after-change): Better comment. --- diff --git a/lisp/font-lock.el b/lisp/font-lock.el index ab80316ae6a..b662a6735b0 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -1196,6 +1196,10 @@ This function does 2 things: ;; it anyway. Here OTOH we have no guarantee that ;; font-lock-default-fontify-region will be executed on this region ;; any time soon. + ;; Note: contrary to font-lock-default-fontify-region, we do not do + ;; any loop here because we are not looking for a safe spot: we just + ;; mark the text whose appearance may need to change as a result of + ;; the buffer modification. (when (and (> beg (point-min)) (get-text-property (1- beg) 'font-lock-multiline)) (setq beg (or (previous-single-property-change