GNU bug report logs - #32060
Horizontal Scrolling (Current Line): Wrong line gets h-scrolled.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Keith David Bershatsky <esq@HIDDEN>; Keywords: confirmed; dated Thu, 5 Jul 2018 15:31:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 32060 <at> debbugs.gnu.org:


Received: (at 32060) by debbugs.gnu.org; 26 Nov 2020 13:24:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 26 08:24:03 2020
Received: from localhost ([127.0.0.1]:40158 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kiHFj-0000MZ-Gf
	for submit <at> debbugs.gnu.org; Thu, 26 Nov 2020 08:24:03 -0500
Received: from quimby.gnus.org ([95.216.78.240]:50384)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1kiHFf-0000Lv-C2
 for 32060 <at> debbugs.gnu.org; Thu, 26 Nov 2020 08:24:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=R4uEG9qzawv/FTSrQXVdpuvHONekSFf8bzOTtFSlAzo=; b=YBqYa4U628TsTZ43LPL/uWy2f+
 vBz/8QZnt4s+nj5KmOV7LxW0/C/yy+ygAdxYAXIX7d/qMb5/rFgVW8mMS6Z7Bv6Kd5yYMDtLU/+YX
 n43b5GRa+X+KmLR3+EXZtSae01imLKC8suK0c+ITH9oraA6mI3M1xxvRQOR9aj4COc0A=;
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1kiHFV-0001uI-2A; Thu, 26 Nov 2020 14:23:52 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Keith David Bershatsky <esq@HIDDEN>
Subject: Re: bug#32060: Horizontal Scrolling (Current Line):  Wrong line
 gets h-scrolled.
References: <m2va9tem4i.wl%esq@HIDDEN>
X-Now-Playing: Liaisons Dangereuses's _Liaisons Dangereuses_: "Mystere dans
 le brouillard"
Date: Thu, 26 Nov 2020 14:23:48 +0100
In-Reply-To: <m2va9tem4i.wl%esq@HIDDEN> (Keith David Bershatsky's message
 of "Thu, 05 Jul 2018 08:30:05 -0700")
Message-ID: <87r1ogqmjf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Keith David Bershatsky <esq@HIDDEN> writes: > Step 4:
 Place the cursor at the very end of the buffer; i.e., at the very end of
 the last long line of text. Make sure that it gets horizontally scrolled.
 > > Step 5: Press the arrow key up one (1) [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 32060
Cc: 32060 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Keith David Bershatsky <esq@HIDDEN> writes:

> Step 4:  Place the cursor at the very end of the buffer; i.e., at the very end of the last long line of text.  Make sure that it gets horizontally scrolled.
>
> Step 5:  Press the arrow key up one (1) time.
>
> Step 6:  Press M-Left one (1) time.  The cursor should now be on the second to the last line in the buffer, at the beginning of the word "lobortis."
>
> Step 7:  Now press the arrow keys up or down and watch as the wrong line gets horizontally scrolled.  The line that was last visited before moving up/down is the line that gets horizontally scrolled instead of the current line.

(This bug report unfortunately got no response at the time.)

I was able to reproduce this in Emacs 26, but in Emacs 28 it behaves
slightly different -- it's still wrong, but not quite in the same way.
That is, it only begins scrolling lines (the wrong lines) after moving a
bit a bit more.

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32060; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Jul 2018 15:30:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 05 11:30:39 2018
Received: from localhost ([127.0.0.1]:47919 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fb6DP-0006rK-9t
	for submit <at> debbugs.gnu.org; Thu, 05 Jul 2018 11:30:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:56028)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <esq@HIDDEN>) id 1fb6DN-0006r5-LP
 for submit <at> debbugs.gnu.org; Thu, 05 Jul 2018 11:30:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <esq@HIDDEN>) id 1fb6DF-0004Mh-4R
 for submit <at> debbugs.gnu.org; Thu, 05 Jul 2018 11:30:32 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:41952)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <esq@HIDDEN>) id 1fb6DE-0004MC-7E
 for submit <at> debbugs.gnu.org; Thu, 05 Jul 2018 11:30:28 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:46960)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <esq@HIDDEN>) id 1fb6D9-0003B3-Mh
 for bug-gnu-emacs@HIDDEN; Thu, 05 Jul 2018 11:30:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <esq@HIDDEN>) id 1fb6D6-0004F4-EV
 for bug-gnu-emacs@HIDDEN; Thu, 05 Jul 2018 11:30:23 -0400
Received: from gateway34.websitewelcome.com ([192.185.149.222]:39609)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <esq@HIDDEN>) id 1fb6D6-00048l-5k
 for bug-gnu-emacs@HIDDEN; Thu, 05 Jul 2018 11:30:20 -0400
Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20])
 by gateway34.websitewelcome.com (Postfix) with ESMTP id 822D816072E
 for <bug-gnu-emacs@HIDDEN>; Thu,  5 Jul 2018 10:30:07 -0500 (CDT)
Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP
 id b6CsfdTygPvAdb6Ctfl1Bg; Thu, 05 Jul 2018 10:30:07 -0500
X-Authority-Reason: nr=8
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com
 ; s=default;
 h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date:
 Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description:
 Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
 In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=IasLxPiptBgLAPUt7bTFQTmvQmGnb8lyJRBMNnqqPok=; b=gUwSrzGjqYJhuGzmF2U38udhtS
 RkcV2UHtgyEaiA8TlIdKmvNfWis9yEiftzQ3F/UnVXTGGmwq8iV42RqMY3xiRrpEqKJiJtLhpKqDt
 uyI8ZAbahFUiigtbzaMPox2cVn5538W5FZSa9seD4XeEb+NKbi/me02NkXk4shIwLX7wklvxZT28R
 WFio16GOqx3YOVE9Ab2xwyaSkjAfC6WMyYWna3LcjAsaD/QpgUX0PDmURkUTPMx/eapMVjlGkpxUV
 J9+F6hfY+MrwZ+0MCiLUDZaqcI5MNqNG7NroWHLg4DvvJFj4e2Z5jg1Z+wz/GTzpP8xjyJ2FzDyCq
 Q3JkUX3w==;
Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49652
 helo=server.local)
 by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256)
 (Exim 4.91) (envelope-from <esq@HIDDEN>) id 1fb6Cs-001XI3-JI
 for bug-gnu-emacs@HIDDEN; Thu, 05 Jul 2018 10:30:06 -0500
Date: Thu, 05 Jul 2018 08:30:05 -0700
Message-ID: <m2va9tem4i.wl%esq@HIDDEN>
From: Keith David Bershatsky <esq@HIDDEN>
To: Emacs Bug Reports <bug-gnu-emacs@HIDDEN>
Subject: Horizontal Scrolling (Current Line):  Wrong line gets h-scrolled.
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-AntiAbuse: This header was added to track abuse,
 please include it with any abuse report
X-AntiAbuse: Primary Hostname - gator3053.hostgator.com
X-AntiAbuse: Original Domain - gnu.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - lawlist.com
X-BWhitelist: no
X-Source-IP: 45.48.239.195
X-Source-L: No
X-Exim-ID: 1fb6Cs-001XI3-JI
X-Source: 
X-Source-Args: 
X-Source-Dir: 
X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local)
 [45.48.239.195]:49652
X-Source-Auth: lawlist
X-Email-Count: 1
X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t
X-Local-Domain: yes
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

With a few long lines (of different lengths) in a scratch buffer in Emacs master branch (freshly built), it is possible to visually observe that the wrong line gets horizontally scrolled instead of the current line.

Step 1:  Build a new Emacs from the master branch.

Step 2:  In a scratch buffer, paste the following long lines:

Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis.
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis.
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis.
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.

Step 3:  Evaluate the following:

(progn
  (fundamental-mode)
  (setq-local auto-hscroll-mode 'current-line)
  (scroll-left 10 t))

Step 4:  Place the cursor at the very end of the buffer; i.e., at the very end of the last long line of text.  Make sure that it gets horizontally scrolled.

Step 5:  Press the arrow key up one (1) time.

Step 6:  Press M-Left one (1) time.  The cursor should now be on the second to the last line in the buffer, at the beginning of the word "lobortis."

Step 7:  Now press the arrow keys up or down and watch as the wrong line gets horizontally scrolled.  The line that was last visited before moving up/down is the line that gets horizontally scrolled instead of the current line.




Acknowledgement sent to Keith David Bershatsky <esq@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#32060; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 26 Nov 2020 13:30:02 UTC

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