Subject: bug#70213: Info-mode side window fit-window-to-buffer issue

From: Juri Linkov <[email-masked]>
Date: Tue, 09 Apr 2024 09:24:30 +0300

>> What do you mean by 'body-function'?
>
> The doc-string of 'display-buffer' says
>
>  `body-function' -- A function called with one argument - the
>     displayed window.  It is called after the buffer is
>     displayed, and before `window-height', `window-width'
>     and `preserve-size' are applied.  The function is supposed
>     to fill the window body with some contents that might depend
>     on dimensions of the displayed window.
>
> Using it in 'info-pop-to-buffer' would probably mean overkill though -
> 'Info-directory' doesn't care about the size of the window used for it.

Then maybe possible to swap the order of displaying and generating
the buffer in 'info-pop-to-buffer', and generate the contents of
the Info buffer before displaying it, like Joseph proposed?