From: Lars Ingebrigtsen <larsi@gnus.org>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Mario Valencia <mariovalspi@gmail.com>, 18441@debbugs.gnu.org
Subject: bug#18441: whitespace-mode sometimes adds column to tab character
Date: Sat, 04 Sep 2021 09:57:33 +0200 [thread overview]
Message-ID: <87y28crcwi.fsf_-_@gnus.org> (raw)
In-Reply-To: <87a8myz9fq.fsf@mbork.pl> (Marcin Borkowski's message of "Thu, 18 Feb 2016 09:53:13 +0100")
Marcin Borkowski <mbork@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
next prev parent reply other threads:[~2021-09-04 7:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-10 6:55 bug#18441: tab bug Mario Valencia
2014-09-10 7:12 ` Mario Valencia
2014-09-10 7:42 ` Mario Valencia
2016-02-18 8:53 ` Marcin Borkowski
2021-09-04 7:57 ` Lars Ingebrigtsen [this message]
2022-05-02 9:48 ` bug#18441: whitespace-mode sometimes adds column to tab character Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y28crcwi.fsf_-_@gnus.org \
--to=larsi@gnus.org \
--cc=18441@debbugs.gnu.org \
--cc=mariovalspi@gmail.com \
--cc=mbork@mbork.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.