From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#7910: 23.2; inconsistent scrolling Date: Tue, 08 Dec 2020 20:31:35 +0200 Message-ID: <83pn3k5euw.fsf@gnu.org> References: <874kkwgv1v.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32524"; mail-complaints-to="usenet@ciao.gmane.io" Cc: manzyuk@gmail.com, 7910@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 08 19:45:42 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmhzZ-0008LA-NI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 19:45:41 +0100 Original-Received: from localhost ([::1]:59118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmhzY-0002J7-Bx for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Dec 2020 13:45:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmhmM-0000kA-7T for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 13:32:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmhmL-0001I4-Vd for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 13:32:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmhmL-0003KO-T7 for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2020 13:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2020 18:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7910 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 7910-submit@debbugs.gnu.org id=B7910.160745231112774 (code B ref 7910); Tue, 08 Dec 2020 18:32:01 +0000 Original-Received: (at 7910) by debbugs.gnu.org; 8 Dec 2020 18:31:51 +0000 Original-Received: from localhost ([127.0.0.1]:59722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmhmB-0003Jy-3V for submit@debbugs.gnu.org; Tue, 08 Dec 2020 13:31:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmhm8-0003Ji-Qu for 7910@debbugs.gnu.org; Tue, 08 Dec 2020 13:31:49 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56045) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmhm2-0001HE-KK; Tue, 08 Dec 2020 13:31:42 -0500 Original-Received: from [176.228.60.248] (port=1093 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kmhm1-0000bh-E4; Tue, 08 Dec 2020 13:31:42 -0500 In-Reply-To: <874kkwgv1v.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 08 Dec 2020 16:46:20 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195418 Archived-At: > From: Lars Ingebrigtsen > Date: Tue, 08 Dec 2020 16:46:20 +0100 > Cc: 7910@debbugs.gnu.org > > emacs -Q src/alloc.c > M-: (setq scroll-preserve-screen-position t) RET > > Then move point down to the next-to-last line > > Then hit `C-v': > > Point is moved to the first visible line in the window instead of > remaining at the next-to-last line. > > If you do this anywhere else in the buffer (except the last two lines > (and the first two lines)), the visual point is kept the same place. > > I don't use this setting myself, so I'm wondering -- is this intended > behaviour (i.e., sorta not using the setting on the two first/last > lines), or is this a bug? 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.