comparison src/dispextern.h @ 43574:b14fc05f010f

(CURRENT_MODE_LINE_FACE_ID_3): Compare with Vminibuf_selected_window instead of Vminibuf_scroll_window.
author Kim F. Storm <storm@cua.dk>
date Tue, 26 Feb 2002 22:53:47 +0000
parents 4e1019bea048
children b7964dae2379 8f5d9817e9d3
comparison
equal deleted inserted replaced
43573:3d6e86e8823b 43574:b14fc05f010f
929 929
930 Due to the way display_mode_lines manipulates with the contents of 930 Due to the way display_mode_lines manipulates with the contents of
931 selected_window, this macro needs three arguments: SELW which is 931 selected_window, this macro needs three arguments: SELW which is
932 compared against the current value of selected_window, MBW 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 933 compared against minibuf_window (if SELW doesn't match), and SCRW
934 which is compared against Vminibuf_scroll_window (if MBW matches). */ 934 which is compared against Vminibuf_selected_window (if MBW matches). */
935 935
936 #define CURRENT_MODE_LINE_FACE_ID_3(SELW, MBW, SCRW) \ 936 #define CURRENT_MODE_LINE_FACE_ID_3(SELW, MBW, SCRW) \
937 ((!mode_line_in_non_selected_windows \ 937 ((!mode_line_in_non_selected_windows \
938 || (SELW) == XWINDOW (selected_window) \ 938 || (SELW) == XWINDOW (selected_window) \
939 || (minibuf_level > 0 \ 939 || (minibuf_level > 0 \
940 && !NILP (Vminibuf_scroll_window) \ 940 && !NILP (Vminibuf_selected_window) \
941 && (MBW) == XWINDOW (minibuf_window) \ 941 && (MBW) == XWINDOW (minibuf_window) \
942 && (SCRW) == XWINDOW (Vminibuf_scroll_window))) \ 942 && (SCRW) == XWINDOW (Vminibuf_selected_window))) \
943 ? MODE_LINE_FACE_ID \ 943 ? MODE_LINE_FACE_ID \
944 : MODE_LINE_INACTIVE_FACE_ID) 944 : MODE_LINE_INACTIVE_FACE_ID)
945 945
946 946
947 /* Return the desired face id for the mode line of window W. */ 947 /* Return the desired face id for the mode line of window W. */