]> git.eshelyaron.com Git - emacs.git/commit
Allow precision-scrolling nonselected windows when the minibuffer is resized
authorPo Lu <luangruo@yahoo.com>
Mon, 9 May 2022 01:37:58 +0000 (09:37 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 9 May 2022 01:37:58 +0000 (09:37 +0800)
commitfd8eaa72a611d050e1fe9c38c466c7812c7795dd
treebe22a6731bfa1ebafd3e52a02a09de9308e6ff4f
parent3d846efb857c0ace95d6fe026522fcdbffe04dc3
Allow precision-scrolling nonselected windows when the minibuffer is resized

* doc/lispref/windows.texi (Vertical Scrolling): Document new
`preserve-vscroll-p' parameter of `set-window-vscroll'.
* etc/NEWS: Announce new parameter.

* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-down-page)
(pixel-scroll-precision-scroll-up-page): Use that parameter when
setting the vscroll.

* src/window.c (window_scroll_pixel_based, Fset_window_vscroll):
Adjust for new parameter.
* src/window.h (struct window): New flag `preserve_vscroll_p'.

* src/xdisp.c (redisplay_window): Preserve the vscroll inside
force_start on frozen windows with that flag set.  (bug#55312)
doc/lispref/windows.texi
etc/NEWS
lisp/pixel-scroll.el
src/window.c
src/window.h
src/xdisp.c