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: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: manzyuk <at> gmail.com, 7910 <at> debbugs.gnu.org
Subject: bug#7910: 23.2; inconsistent scrolling
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'.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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.