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: Fri, 08 Feb 2002 18:48:51 -0500

Index: emacs/src/dispextern.h
diff -c emacs/src/dispextern.h:1.123 emacs/src/dispextern.h:1.124
*** emacs/src/dispextern.h:1.123        Fri Jan 25 08:22:37 2002
--- emacs/src/dispextern.h      Fri Feb  8 18:48:50 2002
***************
*** 923,928 ****
--- 923,936 ----
        ? 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) == 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
     matrix, or return a default based on the height of the font of the
***************
*** 934,940 ****
        : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix)                \
         ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix)        \
         : estimate_mode_line_height (XFRAME ((W)->frame),      \
!                                     MODE_LINE_FACE_ID)))
  
  /* Return the current height of the header line of window W.  If not
     known from current_header_line_height, look at W's current glyph
--- 942,948 ----
        : (MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix)                \
         ? MATRIX_MODE_LINE_HEIGHT ((W)->current_matrix)        \
         : estimate_mode_line_height (XFRAME ((W)->frame),      \
!                                     CURRENT_MODE_LINE_FACE_ID (W))))
  
  /* Return the current height of the header line of window W.  If not
     known from current_header_line_height, look at W's current glyph
***************
*** 1353,1358 ****
--- 1361,1367 ----
  {
    DEFAULT_FACE_ID,
    MODE_LINE_FACE_ID,
+   MODE_LINE_INACTIVE_FACE_ID,
    TOOL_BAR_FACE_ID,
    FRINGE_FACE_ID,
    HEADER_LINE_FACE_ID,



reply via email to

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