GNU bug report logs - #18441
whitespace-mode sometimes adds column to tab character

Previous Next

Package: emacs;

Reported by: Mario Valencia <mariovalspi <at> gmail.com>

Date: Wed, 10 Sep 2014 06:56:02 UTC

Severity: normal

Tags: confirmed

Merged with 18548, 46590

Found in version 27.1.91

Full log


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

From: Marcin Borkowski <mbork <at> mbork.pl>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18441 <at> debbugs.gnu.org
Subject: Re: bug#18441: tab bug
Date: Thu, 18 Feb 2016 09:53:13 +0100
On 2014-09-10, at 03:42, Mario Valencia <mariovalspi <at> gmail.com> wrote:

> well it appears to be a known problem, as commented in the source of whitespace-mode. 

To be more precise, the comment Mario meant is probably this part of
definition of `whitespace-display-mappings':

--8<---------------cut here---------------start------------->8---
    ;; WARNING: the mapping below has a problem.
    ;; When a TAB occupies exactly one column, it will display the
    ;; character ?\xBB at that column followed by a TAB which goes to
    ;; the next TAB column.
    ;; If this is a problem for you, please, comment the line below.
    (tab-mark     ?\t    [?ยป ?\t] [?\\ ?\t])	; tab - right guillemet
--8<---------------cut here---------------end--------------->8---

Does anyone know why the workaround given there is not turned on by
default?  Or maybe it should be made a user option?

Best,

--
mbork


> 2014-09-10 2:12 GMT-05:00 Mario Valencia <mariovalspi <at> gmail.com>:
>
>
>  sorry, this happens in a text-mode buffer with whitespace-mode on. without whitespace mode it only occupies one column.
>
>  2014-09-10 1:55 GMT-05:00 Mario Valencia <mariovalspi <at> gmail.com>:
>
>
>  In a buffer, set tab-width to 6. then insert 5 characters, then a literal tab character (C-q TAB). Now you have a 7 column tab.




This bug report was last modified 2 years and 361 days ago.

Previous Next


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