all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 53275@debbugs.gnu.org
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	[thread overview]
Message-ID: <87a6fxcu5p.fsf@yahoo.com> (raw)
In-Reply-To: <83a6fx1lvr.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Jan 2022 09:47:04 +0200")

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.





  reply	other threads:[~2022-01-15  7:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87fsppejo8.fsf.ref@yahoo.com>
2022-01-15  3:56 ` bug#53275: 29.0.50; Cursor shows up at the middle of the screen after window start is forced when vscroll is set Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-15  7:43   ` Eli Zaretskii
2022-01-15  7:47   ` Eli Zaretskii
2022-01-15  7:52     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-01-15 13:59       ` Eli Zaretskii
2022-01-16  0:30         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6fxcu5p.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=53275@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.