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
>> In practice this seems to nicely cover the relevant cases:
>>
>> (defun my-redisplay-hack (&rest _)
>> (when mode-line-format
>> (redisplay t)))
>> (advice-add #'split-window :after #'my-redisplay-hack)
>
> I wonder how this fixes anything, since split-window already triggers
> redisplay. Martin, do you understand the difference?
There is no difference in the use cases posted here. The results will
change only when a window is reused and then fit to its buffer.
>> but there is some flickering because the window is displayed before
>> the fit and then immediately replaced by the fitted version.
>
> Which means there are two redisplay cycles, and the first one (which
> produces incorrect display) is the one from your hack. So once again,
> I wonder why that call to 'redisplay' is needed.
Where "incorrect redisplay" stands for "window that has not been yet fit
to its buffer".
martin
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.