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

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Thu, 5 Jul 2018 15:31:01 UTC

Severity: normal

Tags: confirmed

To reply to this bug, email your comments to 32060 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32060; Package emacs. (Thu, 05 Jul 2018 15:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Keith David Bershatsky <esq <at> lawlist.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 05 Jul 2018 15:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Keith David Bershatsky <esq <at> lawlist.com>
To: Emacs Bug Reports <bug-gnu-emacs <at> gnu.org>
Subject: Horizontal Scrolling (Current Line):  Wrong line gets h-scrolled.
Date: Thu, 05 Jul 2018 08:30:05 -0700
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32060; Package emacs. (Thu, 26 Nov 2020 13:25:01 GMT) Full text and rfc822 format available.

Message #8 received at 32060 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: 32060 <at> debbugs.gnu.org
Subject: Re: bug#32060: Horizontal Scrolling (Current Line):  Wrong line
 gets h-scrolled.
Date: Thu, 26 Nov 2020 14:23:48 +0100
Keith David Bershatsky <esq <at> lawlist.com> 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




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 26 Nov 2020 13:25:02 GMT) Full text and rfc822 format available.

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

Previous Next


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