Subject: bug#56008: 29.0.50; image-mode buffer scrolled down automatically

From: Eli Zaretskii <[email-masked]>
Date: Thu, 16 Jun 2022 19:58:08 +0300

> Cc: [email-masked], [email-masked]
> Date: Thu, 16 Jun 2022 18:48:26 +0300
> From: Eli Zaretskii <[email-masked]>
> 
> > From: Lars Ingebrigtsen <[email-masked]>
> > Cc: Visuwesh <[email-masked]>,  [email-masked]
> > Date: Thu, 16 Jun 2022 16:05:20 +0200
> > 
> > Eli Zaretskii <[email-masked]> writes:
> > 
> > > No, this _is_ specific to eww and shr.  Well, in a way: shr.el does
> > > something which directly causes this.  Stay tuned.
> > 
> > I wondered whether it had something to do with shr-string-pixel-width
> > and friends (which does play games with windows), but stubbing those out
> > still led to the same problems, apparently.
> > 
> > (shr-string-pixel-width should be replaced with string-pixel-width (sort
> > of), though.)
> 
> It's shr-pixel-column, which calls set-window-buffer.

And in addition, shr-insert-document was resetting the hscroll of the
window it just happened to use for its rendering job.

This bug should be fixed now on the master branch.