GNU bug report logs - #18548
Emacs whitespace mode

Previous Next

Package: emacs;

Reported by: Kip Coul <kipcoul <at> gmail.com>

Date: Wed, 24 Sep 2014 18:20:02 UTC

Severity: normal

Tags: confirmed

Merged with 18441, 46590

Found in version 27.1.91

Full log


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

From: Nathaniel Braun <nathaniel.braun <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 18548 <at> debbugs.gnu.org,
 Stefan Kangas <stefan <at> marxist.se>, Jack Morrison <JackMorrison1 <at> gmail.com>
Subject: Re: bug#18548: Emacs whitespace mode
Date: Wed, 23 Feb 2022 18:28:11 +0200
[Message part 1 (text/plain, inline)]
Where is the display engine code?

On Wed, Feb 23, 2022 at 3:58 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > From: Lars Ingebrigtsen <larsi <at> gnus.org>
> > Date: Wed, 23 Feb 2022 14:18:46 +0100
> > Cc: Kip Coul <kipcoul <at> gmail.com>, Stefan Kangas <stefan <at> marxist.se>,
> >  Jack Morrison <JackMorrison1 <at> gmail.com>, 18548 <at> debbugs.gnu.org
> >
> > So I don't know whether anything can or should be done in this case.  I
> > think that (perhaps) a reasonable default would be to remove that
> > mapping -- whitespace-mode (by default) marks TAB characters anyway with
> > a face, so having a ยป in addition is somewhat superfluous.  On the other
> > hand, it's been like this forever, so perhaps we should just document
> > the quirk instead.  Or add a defcustom to allow for easier toggling, and
> > the defcustom would then also act as documentation for this.
> >
> > Any opinions?
>
> I think the only way to fix this (and I agree that it's a marginal use
> case) is to introduce some special syntax into display-table notation,
> and then teach the display engine to ignore the TAB when whatever is
> before it in the display-table entry already ends at a tab stop, and
> the display-table entry has that special syntax.
>
> Not sure if it's worth the hassle.
>
> In any case, most of the implementation should be in the display
> engine, because that's where the TAB display is implemented in Emacs.
>
[Message part 2 (text/html, inline)]

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.