[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53275: 29.0.50; Cursor shows up at the middle of the screen after wi
From: |
Po Lu |
Subject: |
bug#53275: 29.0.50; Cursor shows up at the middle of the screen after window start is forced when vscroll is set |
Date: |
Sat, 15 Jan 2022 15:52:50 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> (progn
>> (set-window-vscroll nil 30 t)
>> (redisplay)
>> (set-window-start nil (point-max)))
> Sorry, I missed the "M-<" part. With it, the behavior is
> reproducible, but I'm not sure I understand what is "the correct
> position" of the cursor in this case
It should show up where point is, which in this case is at the window
start.
> or why does it matter what Emacs does in that case (except that it
> should not crash).
Precision scrolling relies on this: when the buffer cannot be scrolled
downwards sufficiently, it sets the window start to point-max and
redisplays, which right now results in the cursor being displayed in the
middle of the screen until the next redisplay.
Thanks.