Subject: Re: bug#32672: 27.0.50; image resize on window resizing

From: martin rudalics <[email-masked]>
Date: Wed, 12 Sep 2018 08:33:33 +0200

> There is still a problem how to catch a moment when an image-mode buffer
 > is displayed after switching to it.

"Switching to a buffer" means to display it ...

 > For example, when the selected window
 > is resized while it displayed a non-image-mode buffer, then after that
 > the current buffer switched to the image-mode buffer.

... so please reformulate this in terms of a sequence of some sort of
pseudo actions.  In Emacs terminology, switching to a buffer implies
making it current but making a buffer current doesn't imply switching
to it.

 > I can't find a hook
 > that could be activated to resize the image to fit the new sizes of the window.

Tell us which action should trigger such a hook.

Thanks, martin