Fix bug #16129 with slow and incorrect redisplay in follow-mode.
authorEli Zaretskii <eliz@gnu.org>
Mon, 6 Jan 2014 16:28:26 +0000 (18:28 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 6 Jan 2014 16:28:26 +0000 (18:28 +0200)
 src/xdisp.c (redisplay_window): Don't skip window redisplay if the
 last value of point is not equal to buffer's point.

src/ChangeLog
src/xdisp.c

index a6c3087..a9575a1 100644 (file)
@@ -1,3 +1,8 @@
+2014-01-06  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (redisplay_window): Don't skip window redisplay if the
+       last value of point is not equal to buffer's point.  (Bug#16129)
+
 2014-01-05  Paul Eggert  <eggert@cs.ucla.edu>
 
        Spelling fixes.
index 035edc0..404c8a6 100644 (file)
@@ -15621,7 +15621,8 @@ redisplay_window (Lisp_Object window, bool just_this_one_p)
       && REDISPLAY_SOME_P ()
       && !w->redisplay
       && !f->redisplay
-      && !buffer->text->redisplay)
+      && !buffer->text->redisplay
+      && BUF_PT (buffer) == w->last_point)
     return;
 
   /* Make sure that both W's markers are valid.  */