From: PierGianLuca <luca@magnaspesmeretrix.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Display of "narrow no-break space" character
Date: Sat, 17 Jun 2023 14:09:24 +0200 [thread overview]
Message-ID: <ff35ba42-4d47-11ee-be81-9d55dc02f0c0@magnaspesmeretrix.org> (raw)
In-Reply-To: <83fs6qqsoo.fsf@gnu.org>
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.
>
next prev parent reply other threads:[~2023-06-17 12:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-17 9:31 Display of "narrow no-break space" character PierGianLuca
2023-06-17 10:39 ` Eli Zaretskii
2023-06-17 12:09 ` PierGianLuca [this message]
2023-06-17 13:15 ` Eli Zaretskii
2023-06-17 14:04 ` PierGianLuca
2023-06-17 14:18 ` Eli Zaretskii
2023-06-17 14:34 ` PierGianLuca
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ff35ba42-4d47-11ee-be81-9d55dc02f0c0@magnaspesmeretrix.org \
--to=luca@magnaspesmeretrix.org \
--cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).