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 #239 received at 38181 <at> debbugs.gnu.org (full text, mbox):
I was just about to email you with some questions that you now have
answered to some extent. Anyway, I'm copying my original questions
with some annotations.
> > I think you mean with every set_window_buffer? And probably with every
> > set_window_configuration too. Did you try it?
>
> I still need to refine my concept of "on window creation".
Well, any relevant window hook in [1] is advertised as "called during
redisplay", so that surely isn't the place to trigger that same
redisplay to begin with...
Let's go back to advising then. Here are some questions I have:
1. Is there a primitive function that is like the mother of all
windows? There is no window-create nor create-window alikes, so maybe
split-window-internal?
> Window creation means 'split-window' which assigns the new window a
> buffer that appears in the window that was split.
So this more or less settles the question, but to be more precise:
do you see any difference of relevance between advicing split-window
and split-window-internal?
2. Or is it better to advise set-window-buffer/configuration for
whatever reasons? Any or both of them?
3. If advising set-window-buffer/configuration is the preferred
method, I'm still assuming that we will keep a window parameter in
order to disable the forced redisplay after its first execution for the
window. Is there any reason not do so (taking into account what
I said before of the target use case: a single modeline height for
every modeline during the entire session).
> Or do the mode lines of _all_ your windows have
> the same height? That indeed would simplify things a lot.
Yes, this is by far the usual case and I believe it's a fact that
favours the "advise window creation" strategy over the
"advise window buffer/config change events" (with or without
the "just once per window" clause) strategy.
Thanks again,
Carlos
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.