aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2002-01-18 18:25:52 +0000
committerRichard M. Stallman2002-01-18 18:25:52 +0000
commit2e8834eda67099373c9ca2ed115dd902924b1649 (patch)
tree6ae37c8182b970aa47d3c36a620445afb9748832 /src
parentf444668c92ccb27581eca08d3ae9907a46bd4068 (diff)
downloademacs-2e8834eda67099373c9ca2ed115dd902924b1649.tar.gz
emacs-2e8834eda67099373c9ca2ed115dd902924b1649.zip
(WINDOW_WANTS_MODELINE_P): Check window height > 1.
(WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
Diffstat (limited to 'src')
-rw-r--r--src/dispextern.h14
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/***********************************************************************