|
From: | PierGianLuca |
Subject: | Re: Display of "narrow no-break space" character |
Date: | Sat, 17 Jun 2023 16:04:49 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
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?
[Prev in Thread] | Current Thread | [Next in Thread] |