all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Jarosław Rzeszótko" <jrzeszotko@gmail.com>
Cc: 34312@debbugs.gnu.org
Subject: bug#34312: scroll-error-top-bottom and scroll-preserve-screen-position do not work correctly together
Date: Mon, 04 Feb 2019 18:21:39 +0200	[thread overview]
Message-ID: <83ef8nv818.fsf@gnu.org> (raw)
In-Reply-To: <CAO_X8WD48L+tuW0tizk=-+iq1+Wh2A7C3+9hnXTswdivtGAkTA@mail.gmail.com> (jrzeszotko@gmail.com)

> From: Jarosław Rzeszótko
> 	<jrzeszotko@gmail.com>
> Date: Mon, 4 Feb 2019 15:54:58 +0100
> 
> (setq scroll-error-top-bottom t)
> (setq scroll-preserve-screen-position 'always)
> 
> I open a long file, hit PageDown, then the Down key a few times. Point is at some position X now. I come back
> to the beginning of buffer by hitting PageUp twice. The point is now in the top left corner of the window. Here
> comes the bug: I hit PageDown and point is moved to position X, rather than to the top left corner of the
> portion of the buffer that was just made visible by the scrolling.

Maybe I'm missing something, but this is the behavior I'd expect, I
wouldn't consider it a bug.  Emacs moved point to the top of the
buffer only because there was an error.  Once the error is gone, it
goes back to the remembered screen position.

Does anyone else think this is a bug?

Thanks.





  reply	other threads:[~2019-02-04 16:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-04 14:54 bug#34312: scroll-error-top-bottom and scroll-preserve-screen-position do not work correctly together Jarosław Rzeszótko
2019-02-04 16:21 ` Eli Zaretskii [this message]
2019-02-04 18:59   ` Jarosław Rzeszótko
2021-06-23 13:51   ` Lars Ingebrigtsen

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=83ef8nv818.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=34312@debbugs.gnu.org \
    --cc=jrzeszotko@gmail.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.