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

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

Re: Display of "narrow no-break space" character


From: PierGianLuca
Subject: Re: Display of "narrow no-break space" character
Date: Sat, 17 Jun 2023 14:09:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

Thank you for the reference, Eli.

I've read the whole "Character Display" section, but it's really above my head; 
at least the parts that are probably relevant.

I tried to follow the example that starts with

(setq disptab (make-display-table))
...
[incidentally, there are spurious parentheses at the end of that code]

modifying the "(aset disptab ...)", but no success.


On 230617 12:39, Eli Zaretskii wrote:
Date: Sat, 17 Jun 2023 11:31:39 +0200
From: PierGianLuca <luca@magnaspesmeretrix.org>

I use Emacs with a GUI and monospaced font (DejaVu Sans Mono). Lately I've had to use 
"no-break space" (U+00A0) and "narrow no-break space" (U+202F) very often.

Emacs does a great job distinguishing space from no-break space: the latter is 
shown as an underlined space. However, no-break space and narrow no-break space 
are represented in exactly the same way (underlined space).

Does anyone know of a method to make Emacs use a different glyph for narrow 
no-break space?

You should be able to use the display table to change how a character
is displayed.  See the node "Display Tables" in the ELisp manual for
more details about this feature.




reply via email to

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