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
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
> Why the need to use advising? Your recipe shows that calling
> redisplay before fit-window-to-buffer also solves the problem. Can't
> you do something like that only when you add such tall images to the
> mode line?
This is about packages like powerline, spaceline, doom-modeline and my
moody. These packages add images to the global mode-line-format to make
them prettier. These packages do not create any buffers of their own
and they never call fit-window-to-buffer themselves, but whenever that
function is called for a new buffer redisplay has to be run first, so
the advice is needed.
> An alternative would be to scale the image so that it doesn't enlarge
> the mode line, btw. Is that possible in your use cases?
No because enlarging the mode-line is one of the things I did in order
to make it prettier (imo). It's a goal not a means or side-effect.
You can see a screenshot on https://github.com/tarsius/moody.
Many other "mode-line prettifiers" also increase its height.
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.