From: "Daniel Martín" <mardani29@yahoo.es>
To: "Roland Winkler" <winkler@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: minor mode for highlighting character classes such as non-ascii (bug 47455)
Date: Tue, 01 Jun 2021 18:53:42 +0200 [thread overview]
Message-ID: <m1bl8pbk6h.fsf@yahoo.es> (raw)
In-Reply-To: <23925.69978.953904.24758@gargle.gargle.HOWL> (Roland Winkler's message of "Tue, 1 Jun 2021 11:16:53 -0500")
"Roland Winkler" <winkler@gnu.org> writes:
> In the context of bug 47455 the idea emerged that it can be useful
> to have a minor mode that highlights non-ascii characters. I want
> to ask hear for feedback: does such a mode already exist? Can it be
> useful to have this minor mode more general such that the highlighted
> character classes become configurable? Are there possible use cases
> for this beyond non-ascii characters?
There's already a feature in the display engine that shows certain
non-ASCII characters with a special face. For example, U+00A0 (no-break
space) is shown with the ‘nobreak-space’ face, U+00AD (soft hyphen),
‘U+2010’ (hyphen), and ‘U+2011’ (non-breaking hyphen) are shown with the
‘nobreak-hyphen’ face. Perhaps your suggestion could be a
backwards-compatible extension to this hardcoded display mechanism.
Another option is to simply instruct users to use Hi Lock mode with
"[^[:ascii:]]".
next prev parent reply other threads:[~2021-06-01 16:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-01 16:16 minor mode for highlighting character classes such as non-ascii (bug 47455) Roland Winkler
2021-06-01 16:31 ` Eli Zaretskii
2021-06-01 16:32 ` Óscar Fuentes
2021-06-01 16:48 ` Eli Zaretskii
2021-06-01 16:49 ` [External] : " Drew Adams
2021-06-01 16:53 ` Eli Zaretskii
2021-06-01 18:07 ` Drew Adams
2021-06-01 18:20 ` Eli Zaretskii
2021-06-01 16:53 ` Daniel Martín [this message]
2021-06-01 17:34 ` Roland Winkler
2021-06-01 17:39 ` Eli Zaretskii
2021-06-01 17:56 ` Roland Winkler
2021-06-01 20:51 ` Juri Linkov
2021-06-01 21:45 ` Roland Winkler
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=m1bl8pbk6h.fsf@yahoo.es \
--to=mardani29@yahoo.es \
--cc=emacs-devel@gnu.org \
--cc=winkler@gnu.org \
/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.