GNU bug report logs - #30582
Line number shifts left when horizontal scrolling with a tab.

Previous Next

Package: emacs;

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

Date: Thu, 22 Feb 2018 20:52:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30582 in the body.
You can then email your comments to 30582 AT debbugs.gnu.org in the normal way.

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#30582; Package emacs. (Thu, 22 Feb 2018 20:52:01 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, 22 Feb 2018 20:52: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: Line number shifts left when horizontal scrolling with a tab.
Date: Thu, 22 Feb 2018 12:51:29 -0800
Step 1:  Launch Emacs 26

Step 2:  Switch to the *scratch* buffer.  We should be on line 4, with the default scratch message on the first 2 lines above.

Step 3:  M-x display-line-numbers-mode

Step 4:  Type:  C-q TAB Hello-world.

Step 5:  Evaluate:  (scroll-left 5)

Observe that the line number of the current line shifts to the left such that it is no longer aligned with the other line numbers.  The same will hold true under a variety of similar circumstances; e.g., line numbers exist below the current line; more than 10 lines exist, etc.

Related issue:  I am still working on debugging a few semi-related issues involving move_it_in_display_line_to in conjunction with bug #30226, and I see the need to either fix the problem described above; or, create a programmatic workaround when calculating X and HPOS along on the current line whenever line numbers shift to the left.  If the problem described above is fixed, then no programmatic workaround would be needed.

Thanks,

Keith




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Wed, 07 Mar 2018 18:45:01 GMT) Full text and rfc822 format available.

Notification sent to Keith David Bershatsky <esq <at> lawlist.com>:
bug acknowledged by developer. (Wed, 07 Mar 2018 18:45:02 GMT) Full text and rfc822 format available.

Message #10 received at 30582-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: 30582-done <at> debbugs.gnu.org
Subject: Re: bug#30582: Line number shifts left when horizontal scrolling with
 a tab.
Date: Wed, 07 Mar 2018 20:44:29 +0200
> Date: Thu, 22 Feb 2018 12:51:29 -0800
> From: Keith David Bershatsky <esq <at> lawlist.com>
> 
> Step 1:  Launch Emacs 26
> 
> Step 2:  Switch to the *scratch* buffer.  We should be on line 4, with the default scratch message on the first 2 lines above.
> 
> Step 3:  M-x display-line-numbers-mode
> 
> Step 4:  Type:  C-q TAB Hello-world.
> 
> Step 5:  Evaluate:  (scroll-left 5)
> 
> Observe that the line number of the current line shifts to the left such that it is no longer aligned with the other line numbers.  The same will hold true under a variety of similar circumstances; e.g., line numbers exist below the current line; more than 10 lines exist, etc.

Thanks, should be fixed on the master branch now.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 05 Apr 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 77 days ago.

Previous Next


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