]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_menu_bar): Test only update_mode_lines;
authorRichard M. Stallman <rms@gnu.org>
Tue, 26 Mar 2002 09:12:23 +0000 (09:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 26 Mar 2002 09:12:23 +0000 (09:12 +0000)
don't test or alter w->update_mode_line.

src/ChangeLog
src/xdisp.c

index 30270115fa0412565505e46e1c84ef450eb7b87b..4f475d21960d212242e373998b80f41e54e6c748 100644 (file)
@@ -1,3 +1,14 @@
+2002-03-26  Richard M. Stallman  <rms@gnu.org>
+
+       * xdisp.c (update_menu_bar): Test only update_mode_lines;
+       don't test or alter w->update_mode_line.
+
+       * window.c (Fdisplay_buffer): Doc fix.
+
+2002-03-24  Richard M. Stallman  <rms@gnu.org>
+
+       * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
+
 2002-03-24  Gerd Moellmann  <gerd@gnu.org>
 
        * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
index cc9c177c29c9f815486f3c16e229840bff00cbb9..8a760caa5e34466df43d852d1705f864943c802f 100644 (file)
@@ -7435,8 +7435,14 @@ update_menu_bar (f, save_match_data)
   window = FRAME_SELECTED_WINDOW (f);
   w = XWINDOW (window);
   
+#if 0 /* The if statment below this if statement used to include the
+         condition !NILP (w->update_mode_line), rather than using
+         update_mode_lines directly, and this if statement may have
+         been added to make that condition work.  Now the if
+         statement below matches its comment, this isn't needed.  */  
   if (update_mode_lines)
     w->update_mode_line = Qt;
+#endif
 
   if (FRAME_WINDOW_P (f)
       ?
@@ -7455,7 +7461,9 @@ update_menu_bar (f, save_match_data)
         the rest of the redisplay algorithm is about the same as
         windows_or_buffers_changed anyway.  */
       if (windows_or_buffers_changed
-         || !NILP (w->update_mode_line)
+         /* This used to test w->update_mode_line, but we believe
+            there is no need to recompute the menu in that case.  */
+         || update_mode_lines
          || ((BUF_SAVE_MODIFF (XBUFFER (w->buffer))
               < BUF_MODIFF (XBUFFER (w->buffer)))
              != !NILP (w->last_had_star))