emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redisplay resets vscroll when window start changes


From: Eli Zaretskii
Subject: Re: Redisplay resets vscroll when window start changes
Date: Tue, 16 Nov 2021 20:31:24 +0200

> From: Michael Welsh Duggan <mwd@md5i.com>
> Cc: Po Lu <luangruo@yahoo.com>,  emacs-devel@gnu.org
> Date: Tue, 16 Nov 2021 12:12:57 -0500
> 
> As you can see, the vscroll has reset, despite simply doing
> cursor-movement within the visible reason.  This is the behavior that I
> believe Po Lu is complaining about.  Why should cursor movement that
> wouldn't cause a scrolling event under normal circumstances cause one
> when vertical fractional scrolling is present?

Because the default C-n is not designed to support use cases like this
one, where the vscrolled line is not tall enough.  What you want is to
rebind C-n to a different command (or have a different key sequence
for a different command), because the one C-n runs now will bite you
all the way in such situation; the fact that it resets vscroll is just
the tip of a very large iceberg.  There are 3 functions there that
work in tight cooperation, each one with non-trivial logic, and all of
them implicitly assuming that they are dealing with lines
significantly taller than the default face's font.  That it seems to
"almost" work is an illusion.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]