GNU bug report logs - #30584
Tab stretches vanish when horizontal scrolling.

Previous Next

Package: emacs;

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

Date: Thu, 22 Feb 2018 22:44:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Keith David Bershatsky <esq <at> lawlist.com>
Cc: 30584-done <at> debbugs.gnu.org
Subject: Re: bug#30584: Tab stretches vanish when horizontal scrolling.
Date: Wed, 07 Mar 2018 20:45:08 +0200
> Date: Thu, 22 Feb 2018 14:42:56 -0800
> From: Keith David Bershatsky <esq <at> lawlist.com>
> 
> Step 1.  Launch Emacs 26 from the terminal so that we can observe STDERR messages when dumping the glyph row.
> 
> Step 2.  Switch to the *scratch* buffer.
> 
> Step 3.  Evaluate the following Lisp code:
> 
>     (setq display-line-numbers t)
>     (setq buffer-display-table (make-display-table))
>     (aset buffer-display-table
>           ?\t
>           (vector (make-glyph-code ?\u00BB 'font-lock-warning-face)
>                   (make-glyph-code ?\t 'highlight)))
> 
> Step 4.  On a new line, type:  C-q TAB C-q TAB Hello-world.
> 
> Step 5.  Evaluate:  (scroll-left 2)
> 
> Step 6.  M-x dump-glyph-row
> 
> We observe that the _second_ tab STRETCH, which was visible immediately _before_ Step 5, is now missing.  We see that the tab STRETCH that is missing has a dump glyph row width of -1.  If we were to look at the value of it.pixel_width, it would be equal to negative the value of a regular width character; i.e., -7.

Thanks, should be fixed now on the master branch.




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

Previous Next


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