]> git.eshelyaron.com Git - emacs.git/commitdiff
(redisplay_window): Skip the only-point-has-changed
authorRichard M. Stallman <rms@gnu.org>
Wed, 22 Mar 1995 14:50:50 +0000 (14:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 22 Mar 1995 14:50:50 +0000 (14:50 +0000)
optimization if updating the window's mode line.

src/xdisp.c

index 7ef95dfcd63d9a3626ae1caa2d9ae58c2407e38f..04955ad1fa944f74e8d35cafded818c949d87daf 100644 (file)
@@ -1431,6 +1431,10 @@ redisplay_window (window, just_this_one)
   if (XFASTINT (w->last_modified) >= MODIFF
       && PT >= startp && !clip_changed
       && (just_this_one || XFASTINT (w->width) == FRAME_WIDTH (f))
+      /* If force-mode-line-update was called, really redisplay;
+        that's how redisplay is forced after e.g. changing
+        buffer-invisibility-spec.  */
+      && ! NILP (w->update_mode_line)
       /* Can't use this case if highlighting a region.  */
       && !(!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active))
       && NILP (w->region_showing)