GNU bug report logs -
#38181
Actual height of mode-line not taken into account
Previous Next
Reported by: Jonas Bernoulli <jonas <at> bernoul.li>
Date: Tue, 12 Nov 2019 16:54:01 UTC
Severity: normal
Fixed in version 29.1
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
Message #95 received at 38181 <at> debbugs.gnu.org (full text, mbox):
> Cc: jonas <at> bernoul.li, 38181 <at> debbugs.gnu.org
> From: martin rudalics <rudalics <at> gmx.at>
> 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).
Thanks. So the only thing that's missing is that it should call
display_mode_lines, and then look at DESIRED_MODE_LINE_HEIGHT instead
of WINDOW_MODE_LINE_HEIGHT?
> > 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).
Why "penalize"?
This bug report was last modified 3 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.