[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [External] : Re: Strange whitespaces.
From: |
Drew Adams |
Subject: |
RE: [External] : Re: Strange whitespaces. |
Date: |
Thu, 30 Sep 2021 15:20:30 +0000 |
> Why are both displayed as red underscores in Emacs?
I don't think the EN SPACE is displayed that way.
Not with `emacs -Q' (no init file), at least. But
I don't have an Emacs 28 prerelease build - maybe
they changed Emacs 28 to highlight that as well.
As for a NO-BREAK SPACE, it's highlighted (with face
`nobreak-space', which inherits from `escape-glyph')
if variable `nobreak-char-display' is non-nil, which
it is by default.
___
Note that `nobreak-char-display' highlights all
no-break (aka "hard") characters, not just the
no-break space. IOW, it highlights hard hyphens
(code point 8209) as well as hard spaces.
Vanilla Emacs doesn't let you highlight these
chars differently (e.g. highlight only hard spaces
or only hard hyphens. (This highlighting
is low-level - it doesn't use Font Lock mode.)
But you can highlight such chars differently, or
highlight only one of them, using library
`highlight-chars.el'.
https://www.emacswiki.org/emacs/ShowWhiteSpace#HighlightChars
Re: Strange whitespaces., Emanuel Berg, 2021/09/30
- Re: Strange whitespaces., Hongyi Zhao, 2021/09/30
- Re: [External] : Re: Strange whitespaces., tomas, 2021/09/30
- Re: [External] : Re: Strange whitespaces., Eli Zaretskii, 2021/09/30
- RE: [External] : Re: Strange whitespaces., Drew Adams, 2021/09/30
- Re: [External] : Re: Strange whitespaces., Eli Zaretskii, 2021/09/30
- RE: [External] : Re: Strange whitespaces., Drew Adams, 2021/09/30
Re: [External] : Re: Strange whitespaces., Hongyi Zhao, 2021/09/30
Re: [External] : Re: Strange whitespaces., Emanuel Berg, 2021/09/30
Re: Strange whitespaces., Emanuel Berg, 2021/09/30