]> git.eshelyaron.com Git - emacs.git/commit
Fix disruption of windows' display by shr.el
authorEli Zaretskii <eliz@gnu.org>
Thu, 16 Jun 2022 16:53:45 +0000 (19:53 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 16 Jun 2022 16:53:45 +0000 (19:53 +0300)
commit5eb9383ccc9cc74c4e788e5c390412c98da56296
tree3818a7308f5fa86ae48cc51a7137260495c080c8
parent28218092a699c637ab5164db69ff68f3209c5f84
Fix disruption of windows' display by shr.el

* src/window.c (struct saved_window): New member 'vscroll'.
(Fset_window_configuration, save_window_save): Save and restore
the window's vscroll value.

* lisp/net/shr.el (shr-insert-document): Restore the original
window's hscroll, in case we are rendering in a window other than
where the document will be eventually displayed.  This avoids
resetting hscroll of windows we use temporarily for shr's
rendering job.  (Bug#56008)
lisp/net/shr.el
src/window.c