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

From: martin rudalics <[email-masked]>
Date: Sun, 17 Oct 2021 10:34:20 +0200

> 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)
 >
 > but there is some flickering because the window is displayed before
 > the fit and then immediately replaced by the fitted version. Although
 > I see no way around that glitch, so it might be the price to pay.

Nothing new here.  The sequence remains the same as before:
'split-window', 'redisplay', 'fit-window-to-buffer'.

And remember: People usually tolerate when Emacs occasionally crashes.
They never tolerate flickering.

martin