From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Display of "narrow no-break space" character
Date: Sat, 17 Jun 2023 17:18:50 +0300 [thread overview]
Message-ID: <83352qqiid.fsf@gnu.org> (raw)
In-Reply-To: <10782d5c-e33f-25d6-0be3-531c8fa2cf22@magnaspesmeretrix.org> (message from PierGianLuca on Sat, 17 Jun 2023 16:04:49 +0200)
> Date: Sat, 17 Jun 2023 16:04:49 +0200
> From: PierGianLuca <luca@magnaspesmeretrix.org>
>
> Hi Eli, thank you, actually I think I've managed now:
>
> (setq disptab (make-display-table))
> (aset disptab 8239 [729]) ;; upper dot for narrow no-break space
> (setq buffer-display-table disptab)
>
> The question now is how to make this the standard display table on all future Emacs sessions. I tried adding
>
> (aset standard-display-table 8239 [729])
>
> to my .init.el, but it yields a "wrong type argument" error. Still, it works if I call it after Emacs is started instead.
standard-display-table is not guaranteed to be set, so you need to
make sure it is first. Like this:
(or standard-display-table
(setq standard-display-table (make-display-table)))
(aset standard-display-table 8239 [729])
Note that you can also specify a face for the glyphs in the display
table, which could come in handy if you want them to stand out on
display.
next prev parent reply other threads:[~2023-06-17 14:18 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
2023-06-17 13:15 ` Eli Zaretskii
2023-06-17 14:04 ` PierGianLuca
2023-06-17 14:18 ` Eli Zaretskii [this message]
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=83352qqiid.fsf@gnu.org \
--to=eliz@gnu.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).