unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
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 16:04:49 +0200	[thread overview]
Message-ID: <10782d5c-e33f-25d6-0be3-531c8fa2cf22@magnaspesmeretrix.org> (raw)
In-Reply-To: <837cs2qlfx.fsf@gnu.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.



On 230617 15:15, Eli Zaretskii wrote:
>> Date: Sat, 17 Jun 2023 14:09:24 +0200
>> From: PierGianLuca <luca@magnaspesmeretrix.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]
> 
> Thanks, fixed.
> 
>> modifying the "(aset disptab ...)", but no success.
> 
> Crystal ball says you didn't assign the display table you created to
> the buffer display table or standard-display-table.  Without that, all
> you have is a display table that nothing in Emacs uses.
> 
> If the above is not what you tried, how about showing what you tried?
> 



  reply	other threads:[~2023-06-17 14:04 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 [this message]
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=10782d5c-e33f-25d6-0be3-531c8fa2cf22@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).