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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#30582: closed (Line number shifts left when horizontal
 scrolling with a tab.)
Date: Wed, 07 Mar 2018 18:45:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 07 Mar 2018 20:44:29 +0200
with message-id <83vae7pvxu.fsf <at> gnu.org>
and subject line Re: bug#30582: Line number shifts left when horizontal scrolling with a tab.
has caused the debbugs.gnu.org bug report #30582,
regarding Line number shifts left when horizontal scrolling with a tab.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
30582: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30582
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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


[Message part 3 (message/rfc822, inline)]
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.


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

Previous Next


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