help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange whitespaces.


From: Hongyi Zhao
Subject: Re: Strange whitespaces.
Date: Fri, 1 Oct 2021 09:45:41 +0800

On Fri, Oct 1, 2021 at 12:04 AM Emanuel Berg via Users list for the
GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Hongyi Zhao wrote:
>
> >>> name: NO-BREAK SPACE
> >>> old-name: NON-BREAKING SPACE
> >>
> >> This is to prevent an auto line break.
> >> <https://en.wikipedia.org/wiki/Non-breaking_space>
> >>
> >>> name: EN SPACE
> >>
> >> "A space which has a nominal width of 1 en".
> >> <https://en.wiktionary.org/wiki/en_space>
> >
> > Why are both displayed as red underscores in Emacs?
>
> Maybe there is no better way to display them in your setup?
>
> As for the red color, use this
>
> (defun what-face (pos)
>   (interactive "d")
>   (let ((face (or (get-char-property pos 'face)
>                   (get-char-property pos 'read-cf-name) )))
>     (message (format "%s" (or face "no face!"))) ))
>
> What does it say?
>
> PS. Suggestion: add that to vanilla Emacs if it isn't there!

I added the above code snippet into my `~/.emacs.d/init.el', and
checking the discussed here by `M-x what-face' with point on them, but
just see the following message minibuffer:

no face!

HZ



reply via email to

[Prev in Thread] Current Thread [Next in Thread]