unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
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:59:54 +0200	[thread overview]
Message-ID: <83zgnxyu91.fsf@gnu.org> (raw)
In-Reply-To: <87a6fxcu5p.fsf@yahoo.com> (message from Po Lu on Sat, 15 Jan 2022 15:52:50 +0800)

> From: Po Lu <luangruo@yahoo.com>
> Cc: 53275@debbugs.gnu.org
> Date: Sat, 15 Jan 2022 15:52:50 +0800
> 
> 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.

Should be fixed now on the master branch.





  reply	other threads:[~2022-01-15 13:59 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
2022-01-15 13:59       ` Eli Zaretskii [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=83zgnxyu91.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=53275@debbugs.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).