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 #26 received at 77381 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Paul D. Nelson" <ultrono <at> gmail.com>
Cc: 77381 <at> debbugs.gnu.org
Subject: Re: bug#77381: [PATCH] extend tex--prettify-symbols-alist
Date: Sun, 30 Mar 2025 21:42:27 +0300
> From: "Paul D. Nelson" <ultrono <at> gmail.com>
> Cc: 77381 <at> debbugs.gnu.org
> Date: Sun, 30 Mar 2025 19:47:47 +0200
> 
> +(defun prettify-symbols--char-displayable-p (char)
> +  "Return non-nil if CHAR can be displayed with the current font.
> +A character is considered displayable:
> +
> +- on a graphical display, if `char-displayable-p' returns either t or a
> +  font object, and
> +
> +- on a non-graphical display, if `char-displayable-p' returns non-nil."
> +  (let ((display-capability (char-displayable-p char)))
> +    (if (display-graphic-p)
> +        (or (eq display-capability t)
> +            (fontp display-capability))
> +      display-capability)))

I think this function should be in mule.el (under a different name),
and it should accept a frame as an additional argument, for which to
call display-graphic-p.

Otherwise, LGTM, thanks.




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.