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: Eli Zaretskii
Subject: Re: Display of "narrow no-break space" character
Date: Sat, 17 Jun 2023 17:18:50 +0300

> 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.



reply via email to

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