GNU bug report logs -
#18441
whitespace-mode sometimes adds column to tab character
Previous Next
Full log
Message #23 received at 18441 <at> debbugs.gnu.org (full text, mbox):
Marcin Borkowski <mbork <at> mbork.pl> writes:
>> well it appears to be a known problem, as commented in the source of
>> whitespace-mode.
I can confirm that this bug is still present in Emacs 28.
> To be more precise, the comment Mario meant is probably this part of
> definition of `whitespace-display-mappings':
>
> ;; 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
>
> Does anyone know why the workaround given there is not turned on by
> default? Or maybe it should be made a user option?
If that mark is removed, then tabs won't be marked specially at all --
only with a background colour, which is presumably not what people want
here...
Looking at the whitespace code, I don't really see any easy way to fix
this -- the buffer display table and tab actions don't match?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
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.