From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jaros=C5=82aw_?= =?UTF-8?Q?Rzesz=C3=B3tko?= Newsgroups: gmane.emacs.bugs Subject: bug#34312: scroll-error-top-bottom and scroll-preserve-screen-position do not work correctly together Date: Mon, 4 Feb 2019 15:54:58 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d1fbd4058112ad1b" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="112883"; mail-complaints-to="usenet@blaine.gmane.org" To: 34312@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 04 16:19:41 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqg25-000TBe-3J for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Feb 2019 16:19:37 +0100 Original-Received: from localhost ([127.0.0.1]:44359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqg24-0002uu-0v for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Feb 2019 10:19:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqffJ-0001ul-E4 for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2019 09:56:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqffH-0008ND-MI for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2019 09:56:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60287) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqffH-0008Mt-GN for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2019 09:56:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gqffH-0005zv-94 for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2019 09:56:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jaros=C5=82aw_?= =?UTF-8?Q?Rzesz=C3=B3tko?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Feb 2019 14:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34312 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.154929215623045 (code B ref -1); Mon, 04 Feb 2019 14:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Feb 2019 14:55:56 +0000 Original-Received: from localhost ([127.0.0.1]:59568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqffA-0005zd-H9 for submit@debbugs.gnu.org; Mon, 04 Feb 2019 09:55:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gqff9-0005zX-7D for submit@debbugs.gnu.org; Mon, 04 Feb 2019 09:55:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gqfeu-0007xb-O4 for submit@debbugs.gnu.org; Mon, 04 Feb 2019 09:55:45 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqfet-0001a2-TS for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2019 09:55:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqfej-0007qr-KK for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2019 09:55:33 -0500 Original-Received: from mail-it1-x12d.google.com ([2607:f8b0:4864:20::12d]:53933) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gqfeh-0007YI-J7 for bug-gnu-emacs@gnu.org; Mon, 04 Feb 2019 09:55:27 -0500 Original-Received: by mail-it1-x12d.google.com with SMTP id g85so323069ita.3 for ; Mon, 04 Feb 2019 06:55:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MHyhU9UQPnSZ03g/3d850q38l7lYMFkWWrcXyi7127A=; b=Uf0xN/SRo5g+Ddf4O3gQ8hwSBcWWDgCfOzca9q3EAXZcLNDmHIji4pqDvrojj+rEZv Zv58KS2LxqnEPqzwt/saU2LP2cti/0Q9JrBst2aNtwH/XFoVu5PZmMs/Qez8XdOs08VD bLkmBMtk9xlY/EkOuB+WESkb3ZdJFeoBp5U1AVwoPH8IasHNnTeWXe+XQiJsN3eVdg90 NK/MNjpl4lP6Y3nA1EW9ORwdP8b+0+gWC1Vio57xQC047aC3LhfAQIsQLkrTbSkgsjD2 F8iyKUm6UDMfPg8cTR/+m4Si8n9SOi/GjGVdRm8czIeoTAe3MI07wA0ot2CrFL/UnoA6 Rbmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MHyhU9UQPnSZ03g/3d850q38l7lYMFkWWrcXyi7127A=; b=L9a96z/HGsALQwchHDl0LLys3frEBq5RRybH8TLR0CQFjNyfow9fNat2m88rrmODWn OYZCle+5uUw9r4V8oHmdMUx6w//G4kK0UKl7YfUwoIPBiYfkSg5kXXcnkFKD41hSIcTv 5Y/O7PWRN8cYFNgAxm3prS1Ot7lSbV+dRIVofpTx2wM7pn3P1IuHbY6EAb7DUAZKqYIL PNbjB/Ka9IebG7EQ1Dxw7dhEKzg+E2KRNEWAJrT17HL8ieQp+FvHHkAC8WkqPBnBUNF4 KiTsYeUzbEt0GUmIPyhzk/YtvZrWX0G9K0BulgzPGXcA+zRm+PpaOU0nODWLfUoLqbPM hLSA== X-Gm-Message-State: AJcUukcdjclNEsfxRdQti9dK9NUEOCfrxW0CG0Y+fSyYbU21EWSqo7jm O1YV2axg3/wFK+zpaFT+2N9emLTb/Nu94ATanLGC1Q== X-Google-Smtp-Source: ALg8bN6553PVfTmd7tnql+giPoWiUL40+THluNA1Foegubc7migix1DALP2K3a98PDvSsroaTx77XXVHEjukwTp4v6I= X-Received: by 2002:a02:16c5:: with SMTP id a188mr29717140jaa.99.1549292109166; Mon, 04 Feb 2019 06:55:09 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155077 Archived-At: --000000000000d1fbd4058112ad1b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I run Emacs 26.1 with a config of just: (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. The scrolling itself seems to work OK. Cheers, Jaros=C5=82aw Rzesz=C3=B3tko --000000000000d1fbd4058112ad1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I run Emacs 26.1 with a config of just:

(setq scroll-error-top-bottom t)
(setq scroll-preserve-screen-po= sition 'always)

I open a long file, hit PageDo= wn, 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 i= n 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 po= rtion of the buffer that was just made visible by the scrolling. The scroll= ing itself seems to work OK.

Cheers,
Jar= os=C5=82aw Rzesz=C3=B3tko
--000000000000d1fbd4058112ad1b--