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


View this message in rfc822 format

From: Nathaniel Braun <nathaniel.braun <at> gmail.com>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Kip Coul <kipcoul <at> gmail.com>, 18548 <at> debbugs.gnu.org, Jack Morrison <JackMorrison1 <at> gmail.com>
Subject: bug#18548: Emacs whitespace mode
Date: Thu, 3 Oct 2019 12:34:15 +0300
Hello,

Thanks for your e-mail. However, no, it does not fix my problem.
Please see https://www.emacswiki.org/emacs/WhiteSpace#toc9

There you can read the following:

            ;; 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   [?\xBB ?\t] [?\\ ?\t]) ; tab

This is exactly my issue! When a tab is one character, I need it to
occupy one character, not one character plus a tab.

Thanks!

On Mon, Sep 30, 2019 at 5:43 AM Stefan Kangas <stefan <at> marxist.se> wrote:
>
> Jack Morrison <JackMorrison1 <at> gmail.com> writes:
>
> > Hi Kip,
> >
> > I think the feature you're looking for can be accomplished quickly by customizing the `whitespace-display-mappings` customization option in whitespace.el.
> >
> > If your tab size is fixed at 4, you can just go ahead and customize it with `M-x customize-variable whitespace-display-mappings` and change the TAB character mapping vector to be "---->" or your preferred output. If your tab size is variable, then
> > perhaps you could add a hook to modify the "tab-mark" vector list when loading a new file.
> >
> > Hope that helps.
> >
> > Cheers,
> > Jack
>
> Hi Kip,
>
> It seems like the capabilities you were asking for are already there.
> Did the above resolve the issue for you?
>
> Best regards,
> Stefan Kangas




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.