bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38181: Actual height of mode-line not taken into account


From: martin rudalics
Subject: bug#38181: Actual height of mode-line not taken into account
Date: Sun, 17 Nov 2019 19:15:44 +0100

> I didn't see where fit-window-to-buffer looks at the height of the
> mode line.  What did I miss?

'window-text-pixel-size' does it (triggered by the sixth argument
MODE-AND-HEADER-LINE non-nil).

> Suppose we had a Lisp-callable function which would return the height
> of the mode line of a window as per the current mode-line-format for
> that window -- would that make the solution possible/easier?

Possible, I think.  If we pass it on to 'window-text-pixel-size', it
wouldn't even have to be Lisp-callable.  Still, it will penalize every
‘fit-window-to-buffer’ call (without a redisplay, though).

martin






reply via email to

[Prev in Thread] Current Thread [Next in Thread]