/[emacs]/emacs/src/dispextern.h
ViewVC logotype

Diff of /emacs/src/dispextern.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.125 by eliz, Sat Feb 9 09:20:35 2002 UTC revision 1.126 by kfstorm, Mon Feb 11 14:42:56 2002 UTC
# Line 923  extern struct glyph_row scratch_glyph_ro Line 923  extern struct glyph_row scratch_glyph_ro
923        ? MATRIX_HEADER_LINE_ROW (MATRIX)->height \        ? MATRIX_HEADER_LINE_ROW (MATRIX)->height \
924        : 0)        : 0)
925    
926  /* Return the desired face id for the mode line of window W.  /* Return the desired face id for the mode line of a window, depending
927     This depends on whether the window is selected or not.  */     on whether the window is selected or not, or if the window is the
928       scrolling window for the currently active minibuffer window.
929    
930       Due to the way display_mode_lines manipulates with the contents of
931       selected_window, this macro needs three arguments: SELW which is
932       compared against the current value of selected_window, MBW which is
933       compared against minibuf_window (if SELW doesn't match), and SCRW
934       which is compared against Vminibuf_scroll_window (if MBW matches).  */
935    
936    #define CURRENT_MODE_LINE_FACE_ID_3(SELW, MBW, SCRW)            \
937         ((NILP (Vmode_line_in_non_selected_windows)                \
938           || (SELW) == XWINDOW (selected_window)                   \
939           || (EQ (Vmode_line_in_non_selected_windows, Qt)          \
940               && !NILP (Vminibuf_scroll_window)                    \
941               && minibuf_level                                     \
942               && (MBW) == XWINDOW (minibuf_window)                 \
943               && (SCRW) == XWINDOW (Vminibuf_scroll_window)))      \
944          ? MODE_LINE_FACE_ID                                       \
945          : MODE_LINE_INACTIVE_FACE_ID)
946    
947    
948    /* Return the desired face id for the mode line of window W.  */
949    
950  #define CURRENT_MODE_LINE_FACE_ID(W)            \  #define CURRENT_MODE_LINE_FACE_ID(W)            \
951       ((W) == XWINDOW (selected_window)          \          (CURRENT_MODE_LINE_FACE_ID_3((W), XWINDOW (selected_window), (W)))
       ? MODE_LINE_FACE_ID                       \  
       : MODE_LINE_INACTIVE_FACE_ID)  
952    
953  /* Return the current height of the mode line of window W.  If not  /* Return the current height of the mode line of window W.  If not
954     known from current_mode_line_height, look at W's current glyph     known from current_mode_line_height, look at W's current glyph
# Line 2227  void highlight_trailing_whitespace P_ (( Line 2246  void highlight_trailing_whitespace P_ ((
2246  int tool_bar_item_info P_ ((struct frame *, struct glyph *, int *));  int tool_bar_item_info P_ ((struct frame *, struct glyph *, int *));
2247  extern Lisp_Object Qtool_bar;  extern Lisp_Object Qtool_bar;
2248  extern Lisp_Object Vshow_trailing_whitespace;  extern Lisp_Object Vshow_trailing_whitespace;
2249    extern Lisp_Object Vmode_line_in_non_selected_windows;
2250  extern int redisplaying_p;  extern int redisplaying_p;
2251  extern Lisp_Object Vimage_types;  extern Lisp_Object Vimage_types;
2252  extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object));  extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object));

Legend:
Removed from v.1.125  
changed lines
  Added in v.1.126

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26