Eli Zaretskii writes: >> The way I read Eli's above message, it boils down to extending the C >> function `window_wants_mode_line` with a couple of special cases. >> Something like the following (mildly tested): > Thanks, this is an elegant solution. A few minor comments: Thanks for reviewing, I'm attaching an updated patch below. Regarding this comment: >> +/** >> + * null_header_line_format: >> + * >> + * Return 1 when header line format F indicates that the header line >> + * should not be displayed at all. > We usually say "Return non-zero", not 1. I've changed the wording accordingly, note that some other functions that return `bool` in src/window.c currently say "Return 1", e.g. `window_wants_header_line`. > And finally, please accompany the change with a suitable commit log > message, an entry in NEWS, and a change for the ELisp manual. Sure, here's the new patch: