aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorEshel Yaron2023-06-04 19:41:20 +0300
committerEli Zaretskii2023-06-06 15:08:31 +0300
commit4f66cbbfe520ee31ef26676e09a926217d9736fe (patch)
tree2aad8a7af90b4bdcfe8bb988eb688d2ffc7b6be1 /java
parentd751915ef4c10f2dc10555c404fac3c981320b4f (diff)
downloademacs-4f66cbbfe520ee31ef26676e09a926217d9736fe.tar.gz
emacs-4f66cbbfe520ee31ef26676e09a926217d9736fe.zip
Avoid header line with some empty non-nil formats
Allow the value of 'header-line-format' to indicate that no header line should be displayed when it trivially yields 'nil', even if it is not plain 'nil'. Previously, any non-nil 'header-line-format' resulted in a (possibly empty) header line. This change adds some flexibility by also taking a non-nil value of 'header-line-format' to mean that no header line should be displayed if it's a list whose 'car' is a symbol and either that symbol is ':eval' and the second list element evaluates to 'nil', or the symbol's value as a variable is 'nil' or void. (Bug#63825) * src/xdisp.c (safe_eval_inhibit_quit): New function. * src/lisp.h (safe_eval_inhibit_quit): Declare it. * src/window.c (null_header_line_format): New function. (window_wants_header_line): Use it. * doc/lispref/modes.texi (Header Line): Update to reflect new conditions for displaying a window's header line. * etc/NEWS: Announce updated treatment of 'header-line-format'.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions