changeset 54178:1ab08664aea0

(window_loop, Fforce_window_update): Force mode line updates by setting prevent_redisplay_optimizations_p and update_mode_lines.
author Kim F. Storm <storm@cua.dk>
date Sat, 28 Feb 2004 01:02:51 +0000
parents 2affc700598b
children faca95e6c032
files src/window.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Sat Feb 28 01:02:35 2004 +0000
+++ b/src/window.c	Sat Feb 28 01:02:51 2004 +0000
@@ -2044,6 +2044,9 @@
 	    if (EQ (w->buffer, obj))
 	      {
 		mark_window_display_accurate (window, 0);
+		w->update_mode_line = Qt;
+		XBUFFER (obj)->prevent_redisplay_optimizations_p = 1;
+		++update_mode_lines;
 		best_window = window;
 	      }
 	    break;
@@ -3462,12 +3465,18 @@
   if (NILP (object))
     {
       windows_or_buffers_changed++;
+      update_mode_lines++;
       return Qt;
     }
 
   if (WINDOWP (object))
     {
+      struct window *w = XWINDOW (object);
       mark_window_display_accurate (object, 0);
+      w->update_mode_line = Qt;
+      if (BUFFERP (w->buffer))
+	XBUFFER (w->buffer)->prevent_redisplay_optimizations_p = 1;
+      ++update_mode_lines;
       return Qt;
     }