Mercurial > emacs
comparison src/dispextern.h @ 42828:48dd83c34137
(WINDOW_WANTS_MODELINE_P): Check window height > 1.
(WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 18 Jan 2002 18:25:52 +0000 |
parents | 895aff55e46c |
children | 2089c8883c1e |
comparison
equal
deleted
inserted
replaced
42827:3616610fabd8 | 42828:48dd83c34137 |
---|---|
1110 : WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH ((W)))) | 1110 : WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH ((W)))) |
1111 | 1111 |
1112 /* Value is non-zero if window W wants a mode line. */ | 1112 /* Value is non-zero if window W wants a mode line. */ |
1113 | 1113 |
1114 #define WINDOW_WANTS_MODELINE_P(W) \ | 1114 #define WINDOW_WANTS_MODELINE_P(W) \ |
1115 (!MINI_WINDOW_P (W) \ | 1115 (!MINI_WINDOW_P ((W)) \ |
1116 && !(W)->pseudo_window_p \ | 1116 && !(W)->pseudo_window_p \ |
1117 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME (W))) \ | 1117 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ |
1118 && BUFFERP ((W)->buffer) \ | 1118 && BUFFERP ((W)->buffer) \ |
1119 && !NILP (XBUFFER ((W)->buffer)->mode_line_format)) | 1119 && !NILP (XBUFFER ((W)->buffer)->mode_line_format) \ |
1120 && (W)->height > 1) | |
1120 | 1121 |
1121 /* Value is non-zero if window W wants a header line. */ | 1122 /* Value is non-zero if window W wants a header line. */ |
1122 | 1123 |
1123 #define WINDOW_WANTS_HEADER_LINE_P(W) \ | 1124 #define WINDOW_WANTS_HEADER_LINE_P(W) \ |
1124 (!MINI_WINDOW_P (W) \ | 1125 (!MINI_WINDOW_P ((W)) \ |
1125 && !(W)->pseudo_window_p \ | 1126 && !(W)->pseudo_window_p \ |
1126 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME (W))) \ | 1127 && FRAME_WANTS_MODELINE_P (XFRAME (WINDOW_FRAME ((W)))) \ |
1127 && BUFFERP ((W)->buffer) \ | 1128 && BUFFERP ((W)->buffer) \ |
1128 && !NILP (XBUFFER ((W)->buffer)->header_line_format)) | 1129 && !NILP (XBUFFER ((W)->buffer)->header_line_format) \ |
1130 && (W)->height > 1 + !NILP (XBUFFER ((W)->buffer)->mode_line_format)) | |
1129 | 1131 |
1130 | 1132 |
1131 /*********************************************************************** | 1133 /*********************************************************************** |
1132 Faces | 1134 Faces |
1133 ***********************************************************************/ | 1135 ***********************************************************************/ |