[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.
- Re: Redisplay resets vscroll when window start changes, (continued)
- Re: Redisplay resets vscroll when window start changes, Po Lu, 2021/11/15
- Re: Redisplay resets vscroll when window start changes, Eli Zaretskii, 2021/11/15
- Re: Redisplay resets vscroll when window start changes, Po Lu, 2021/11/15
- Re: Redisplay resets vscroll when window start changes, Eli Zaretskii, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Po Lu, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Po Lu, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Eli Zaretskii, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Po Lu, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Eli Zaretskii, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Michael Welsh Duggan, 2021/11/16
- Re: Redisplay resets vscroll when window start changes,
Eli Zaretskii <=
- Re: Redisplay resets vscroll when window start changes, Stefan Monnier, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Eli Zaretskii, 2021/11/17
- Re: Redisplay resets vscroll when window start changes, Po Lu, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Eli Zaretskii, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Stefan Monnier, 2021/11/16
- Re: Redisplay resets vscroll when window start changes, Eli Zaretskii, 2021/11/17
- Re: Redisplay resets vscroll when window start changes, Stefan Monnier, 2021/11/17
- Re: Redisplay resets vscroll when window start changes, Eli Zaretskii, 2021/11/18
- Re: Redisplay resets vscroll when window start changes, Stefan Monnier, 2021/11/18
- Re: Redisplay resets vscroll when window start changes, Eli Zaretskii, 2021/11/19