emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/dispextern.h


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/src/dispextern.h
Date: Mon, 11 Feb 2002 09:42:56 -0500

Index: emacs/src/dispextern.h
diff -c emacs/src/dispextern.h:1.125 emacs/src/dispextern.h:1.126
*** emacs/src/dispextern.h:1.125        Sat Feb  9 04:20:35 2002
--- emacs/src/dispextern.h      Mon Feb 11 09:42:56 2002
***************
*** 923,935 ****
        ? MATRIX_HEADER_LINE_ROW (MATRIX)->height       \
        : 0)
  
! /* Return the desired face id for the mode line of window W.
!    This depends on whether the window is selected or not.  */
  
  #define CURRENT_MODE_LINE_FACE_ID(W)          \
!      ((W) == XWINDOW (selected_window)                \
!       ? MODE_LINE_FACE_ID                     \
!       : MODE_LINE_INACTIVE_FACE_ID)
  
  /* Return the current height of the mode line of window W.  If not
     known from current_mode_line_height, look at W's current glyph
--- 923,954 ----
        ? MATRIX_HEADER_LINE_ROW (MATRIX)->height       \
        : 0)
  
! /* Return the desired face id for the mode line of a window, depending
!    on whether the window is selected or not, or if the window is the
!    scrolling window for the currently active minibuffer window.
! 
!    Due to the way display_mode_lines manipulates with the contents of
!    selected_window, this macro needs three arguments: SELW which is
!    compared against the current value of selected_window, MBW which is
!    compared against minibuf_window (if SELW doesn't match), and SCRW
!    which is compared against Vminibuf_scroll_window (if MBW matches).  */
! 
! #define CURRENT_MODE_LINE_FACE_ID_3(SELW, MBW, SCRW)          \
!      ((NILP (Vmode_line_in_non_selected_windows)              \
!        || (SELW) == XWINDOW (selected_window)                 \
!        || (EQ (Vmode_line_in_non_selected_windows, Qt)                \
!          && !NILP (Vminibuf_scroll_window)                    \
!          && minibuf_level                                     \
!          && (MBW) == XWINDOW (minibuf_window)                 \
!          && (SCRW) == XWINDOW (Vminibuf_scroll_window)))      \
!       ? MODE_LINE_FACE_ID                                     \
!       : MODE_LINE_INACTIVE_FACE_ID)
! 
! 
! /* Return the desired face id for the mode line of window W.  */
  
  #define CURRENT_MODE_LINE_FACE_ID(W)          \
!       (CURRENT_MODE_LINE_FACE_ID_3((W), XWINDOW (selected_window), (W)))
  
  /* Return the current height of the mode line of window W.  If not
     known from current_mode_line_height, look at W's current glyph
***************
*** 2227,2232 ****
--- 2246,2252 ----
  int tool_bar_item_info P_ ((struct frame *, struct glyph *, int *));
  extern Lisp_Object Qtool_bar;
  extern Lisp_Object Vshow_trailing_whitespace;
+ extern Lisp_Object Vmode_line_in_non_selected_windows;
  extern int redisplaying_p;
  extern Lisp_Object Vimage_types;
  extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object));



reply via email to

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