emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xdisp.c


From: Jan Djärv
Subject: [Emacs-diffs] Changes to emacs/src/xdisp.c
Date: Wed, 26 Mar 2003 11:13:45 -0500

Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.821 emacs/src/xdisp.c:1.822
*** emacs/src/xdisp.c:1.821     Mon Mar 24 14:59:08 2003
--- emacs/src/xdisp.c   Wed Mar 26 11:13:44 2003
***************
*** 7905,7915 ****
    window = FRAME_SELECTED_WINDOW (f);
    w = XWINDOW (window);
  
! #if 0 /* The if statement 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
--- 7905,7920 ----
    window = FRAME_SELECTED_WINDOW (f);
    w = XWINDOW (window);
  
! #if 1 /* The if statement 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.  */
+   /* We need to set w->update_mode_line to Qt so that update_tool_bar
+      rebuilds tool bar items.  For example, to notice when a tool bar item
+      goes from enabled to disabled state.
+      A better way would be to notice tool bar, menu bar and mode line
+      changes separately, but for now update_mode_line is all we got.  */
    if (update_mode_lines)
      w->update_mode_line = Qt;
  #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]