diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispextern.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 99ee1368182..74726f02559 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1112,20 +1112,22 @@ extern struct glyph_row scratch_glyph_row; | |||
| 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 | /*********************************************************************** |