diff options
| author | Eli Zaretskii | 2023-06-23 13:47:53 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-06-23 13:47:53 +0300 |
| commit | accff13e646c06f3ce526b62c5ca81a76361da6e (patch) | |
| tree | 0084eafceb2dfdb3e776051487d0a03eb67f121c /src | |
| parent | ddf508e8acbe7ad29879dd0a5e341a6acea5c772 (diff) | |
| download | emacs-accff13e646c06f3ce526b62c5ca81a76361da6e.tar.gz emacs-accff13e646c06f3ce526b62c5ca81a76361da6e.zip | |
Revert "; Fix last change"
This reverts commit 05c2be28a3e97bd920d0bf8c8b59ec682a420cce.
This is part of removing the recently-added feature whereby
certain non-nil values of 'header-line-format' could signal
that the header line shall not be displayed. The feature is
being reverted because its advantages are very minor, whereas
the complications it causes are serious.
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c index 58f98e78354..164af6f67f0 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -5474,14 +5474,14 @@ window_wants_mode_line (struct window *w) | |||
| 5474 | * null_header_line_format: | 5474 | * null_header_line_format: |
| 5475 | * | 5475 | * |
| 5476 | * Return non-zero when header line format FMT indicates that the | 5476 | * Return non-zero when header line format FMT indicates that the |
| 5477 | * header line should not be displayed at all, for windows on frame F. | 5477 | * header line should not be displayed at all. |
| 5478 | * | 5478 | * |
| 5479 | * This is when FMT is nil, or if FMT is a cons cell and either its | 5479 | * This is when FMT is nil, or if FMT is a cons cell and either its |
| 5480 | * car is a symbol whose value as a variable is nil or void, or its | 5480 | * car is a symbol whose value as a variable is nil or void, or its |
| 5481 | * car is the symbol ':eval' and its cadr evaluates to nil. | 5481 | * car is the symbol ':eval' and its cadr evaluates to nil. |
| 5482 | */ | 5482 | */ |
| 5483 | static bool | 5483 | static bool |
| 5484 | null_header_line_format (Lisp_Object fmt, struct frame *f) | 5484 | null_header_line_format (Lisp_Object fmt, struct frame * f) |
| 5485 | { | 5485 | { |
| 5486 | Lisp_Object car; | 5486 | Lisp_Object car; |
| 5487 | Lisp_Object val; | 5487 | Lisp_Object val; |
| @@ -5532,7 +5532,7 @@ window_wants_header_line (struct window *w) | |||
| 5532 | Lisp_Object window_header_line_format = | 5532 | Lisp_Object window_header_line_format = |
| 5533 | window_parameter (w, Qheader_line_format); | 5533 | window_parameter (w, Qheader_line_format); |
| 5534 | 5534 | ||
| 5535 | struct frame *f = WINDOW_XFRAME(w); | 5535 | struct frame * f = WINDOW_XFRAME(w); |
| 5536 | 5536 | ||
| 5537 | return (WINDOW_LEAF_P (w) | 5537 | return (WINDOW_LEAF_P (w) |
| 5538 | && !MINI_WINDOW_P (w) | 5538 | && !MINI_WINDOW_P (w) |
| @@ -5540,7 +5540,8 @@ window_wants_header_line (struct window *w) | |||
| 5540 | && !EQ (window_header_line_format, Qnone) | 5540 | && !EQ (window_header_line_format, Qnone) |
| 5541 | && (!null_header_line_format (window_header_line_format, f) | 5541 | && (!null_header_line_format (window_header_line_format, f) |
| 5542 | || !null_header_line_format (BVAR (XBUFFER (WINDOW_BUFFER (w)), | 5542 | || !null_header_line_format (BVAR (XBUFFER (WINDOW_BUFFER (w)), |
| 5543 | header_line_format), f)) | 5543 | header_line_format), |
| 5544 | f)) | ||
| 5544 | && (WINDOW_PIXEL_HEIGHT (w) | 5545 | && (WINDOW_PIXEL_HEIGHT (w) |
| 5545 | > (window_wants_mode_line (w) | 5546 | > (window_wants_mode_line (w) |
| 5546 | ? 2 * WINDOW_FRAME_LINE_HEIGHT (w) | 5547 | ? 2 * WINDOW_FRAME_LINE_HEIGHT (w) |