all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Avoid recentering when user says so
Date: Sun, 27 Mar 2011 04:58:11 +0200	[thread overview]
Message-ID: <AANLkTinon9QgD45St1PO26GcepY+CPQA08pWUTnRDx0x@mail.gmail.com> (raw)
In-Reply-To: <83oc4xslpt.fsf@gnu.org>

On Sat, Mar 26, 2011 at 20:52, Eli Zaretskii <eliz@gnu.org> wrote:

> Btw, in the discussions related to bug #6671, some people said that
> Emacs should pay attention to the value of another variable,
> scroll-preserve-screen-position, when Emacs decides where to put point
> after moving it to a far away location.

He, not exactly ;-)

Chong asked if the unwanted recentering affected other scrolling
commands, and I said that scroll-(up|down)-command do preserve the
screen position and don't do any recentering.

I think the documentation makes reasonably clear that
`scroll-preserve-screen-position' is not defined for non-scrolling
movements (like goto-line), and as per line-by-line scrolling
(assuming you've got track-eol == t) you can already combine
pgup/pgdown and up/down and get the cursor back to the same screen
position, so it's well defined and well-behaved. It's true that
(next|previous)-line do not really obey
scroll-preserve-screen-position, but as they try to move vertically
and are smart with respect to end of line (with track-eol), the net
effect is the same.

    Juanma



  reply	other threads:[~2011-03-27  2:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-26 18:48 Avoid recentering when user says so Eli Zaretskii
2011-03-26 19:52 ` Eli Zaretskii
2011-03-27  2:58   ` Juanma Barranquero [this message]
2011-03-27  3:57 ` Eli Zaretskii
2011-03-27  7:58 ` David Engster
2011-03-27 10:46   ` Eli Zaretskii
2011-03-27  7:58 ` bug#6671: " David Engster
2011-03-31 19:20 ` Eli Zaretskii

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=AANLkTinon9QgD45St1PO26GcepY+CPQA08pWUTnRDx0x@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.