GNU bug report logs - #77381
[PATCH] extend tex--prettify-symbols-alist

Previous Next

Package: emacs;

Reported by: "Paul D. Nelson" <ultrono <at> gmail.com>

Date: Sun, 30 Mar 2025 11:42:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 77381 <at> debbugs.gnu.org (full text, mbox):

From: "Paul D. Nelson" <ultrono <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77381 <at> debbugs.gnu.org
Subject: Re: bug#77381: [PATCH] extend tex--prettify-symbols-alist
Date: Sun, 30 Mar 2025 18:21:44 +0200
> Ideally, we should only add those which can be displayed.  The
> function char-displayable-p should be able to tell.  Would it be
> possible to change the code such that only the symbols that pass that
> test are added?

I tried, but wasn't able to extract the necessary information from
char-displayable-p:

In GUI Emacs,

  (char-displayable-p #x1F6F0) -> 'unicode

and that character is not displayable for me (it renders as a white
square).

In Emacs -nw,

  (char-displayable-p #x1d550) -> 'unicode

but that character displays normally for me.

Thus, when the return value of char-displayable-p is 'unicode, I don't
know how to determine whether the character would be displayable for our
purposes (i.e., not as a white square).

Any suggestions?




This bug report was last modified 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.