GNU bug report logs - #7910
23.2; inconsistent scrolling

Previous Next

Package: emacs;

Reported by: Oleksandr Manzyuk <manzyuk <at> gmail.com>

Date: Mon, 24 Jan 2011 20:42:02 UTC

Severity: normal

Tags: confirmed

Found in version 23.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: manzyuk <at> gmail.com, 7910 <at> debbugs.gnu.org
Subject: bug#7910: 23.2; inconsistent scrolling
Date: Wed, 09 Dec 2020 17:38:56 +0200
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: manzyuk <at> gmail.com,  7910 <at> debbugs.gnu.org
> Date: Wed, 09 Dec 2020 13:38:05 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > It's according to the doc string, AFAICT.  If the OP wants the cursor
> > to _always_ retain its screen position, he should set
> > scroll-preserve-screen-position to a non-nil. non-t value.
> 
> Setting the variable to `always' works for me, but the doc string is
> misleading here.
> 
> ---
> A value of t means point keeps its screen position if the scroll
> command moved it vertically out of the window, e.g. when scrolling
> by full screens.
> ---
> 
> If you're on the next-to-last line, `C-v' will not move point out of the
> window -- the next-to-last line will end up as the first line.
> 
> And there's further peculiarities with the t setting -- if you're at the
> next-to-last visual line, `C-v' will put point on the first visual
> line.  `C-v' again, and it's on the next-to-last line again.  So it'll
> alternate first/next-to-last after every `C-v'.

The special "status" of the two lines at bottom is because the default
value of next-screen-context-lines is 2.

It sounds like you did understand the doc string, given your
description.  I wouldn't say it's misleading, just that it only hints
on when screen position will not be kept, instead of describing that
in detail, and in particular doesn't mention
next-screen-context-lines.  Would you like to suggest an amendment to
the doc string that would clarify that?




This bug report was last modified 4 years and 166 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.