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 #32 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: Mon, 31 Mar 2025 15:46:17 +0300
> From: "Paul D. Nelson" <ultrono <at> gmail.com>
> Cc: 77381 <at> debbugs.gnu.org
> Date: Sun, 30 Mar 2025 21:21:41 +0200
> 
> > 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.
> 
> Thanks, please see attached.

Some minor comments:

> +(defun char-graphically-displayable-p (char &optional frame)

I prefer char-displayable-on-frame-p (since "graphically might be
interpreted as meaning only GUI frames).

> +  "Return non-nil if CHAR can be graphically displayed in FRAME.
> +FRAME nil or omitted means use the selected frame.
> +
> +This function provides a more reliable test than `char-displayable-p'
> +for determining if a character will display properly.

"More reliable" will cause people wonder why we have "unreliable"
APIs.  But the essence is not the reliability, the essence is
accuracy: char-displayable-p returns the ability of the entire Emacs
session, whereas this new function returns the ability of a particular
frame.

I also think this function should be documented in the ELisp manual
and in NEWS, but that could be a separate patch.

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.