]> git.eshelyaron.com Git - emacs.git/commitdiff
(jit-lock-force-redisplay): Rename from jit-lock-fontify-again.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Sep 2006 15:42:29 +0000 (15:42 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 26 Sep 2006 15:42:29 +0000 (15:42 +0000)
Undo the mistaken change I've just done.

lisp/ChangeLog
lisp/jit-lock.el

index d7c78cae799c9cf353f50dc5713305b21674a949..ca56347c6cb0e86e174b0b503fcce25f94749ba8 100644 (file)
@@ -1,5 +1,8 @@
 2006-09-26  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * jit-lock.el (jit-lock-force-redisplay): Rename from
+       jit-lock-fontify-again, and undo the mistaken change I've just done.
+
        * jit-lock.el (jit-lock-fontify-now): Don't fontify the empty text.
        (jit-lock-fontify-again): Don't refontify text that's not displayed.
 
index 612641d095485962f2ba271fe197e8cdd684a0a7..020b651bfeac76f83c602a7dfecc0a8434d16097 100644 (file)
@@ -397,19 +397,19 @@ Defaults to the whole buffer.  END can be out of bounds."
            ;; eagerly extend the refontified region with
            ;; jit-lock-after-change-extend-region-functions.
            (when (< start orig-start)
-            (run-with-timer 0 nil 'jit-lock-fontify-again
+            (run-with-timer 0 nil 'jit-lock-force-redisplay
                             (current-buffer) start orig-start))
 
           ;; Find the start of the next chunk, if any.
           (setq start (text-property-any next end 'fontified nil))))))))
 
-(defun jit-lock-fontify-again (buf start end)
-  "Fontify in buffer BUF from START to END."
-  ;; Don't bother refontifying text that's not even displayed.
-  (when (setq start (text-property-not-all start end 'fontified nil buf))
-    (with-current-buffer buf
-      (with-buffer-prepared-for-jit-lock
-       (put-text-property start end 'fontified nil)))))
+(defun jit-lock-force-redisplay (buf start end)
+  "Force the display engine to re-render buffer BUF from START to END."
+  (with-current-buffer buf
+    (with-buffer-prepared-for-jit-lock
+     ;; 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 t)))))
 
 
 \f