Subject: Re: bug#77381: [PATCH] extend tex--prettify-symbols-alist

From: Eli Zaretskii <[email-masked]>
Date: Sun, 30 Mar 2025 21:42:27 +0300

> From: "Paul D. Nelson" <[email-masked]>
> Cc: [email-masked]
> 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.