]> git.eshelyaron.com Git - emacs.git/commit
Restrict symbol prettification to displayable glyphs
authorPaul Nelson <ultrono@gmail.com>
Mon, 31 Mar 2025 13:37:14 +0000 (15:37 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 8 Apr 2025 05:43:06 +0000 (07:43 +0200)
commit85ae30e7b973c23c9ca06d04d6aca21b1632404f
tree5d7200a79330fcc25e57e197b3b002465af205a1
parentbeb85a5b40b2febbc0c6b446e555e00718d57efb
Restrict symbol prettification to displayable glyphs

* lisp/international/mule.el (char-displayable-on-frame-p): New
function used to determine whether a character can be
meaningfully displayed on a given frame.
* doc/lispref/display.texi (Fontsets): Document it.
* lisp/progmodes/prog-mode.el
(prettify-symbols--composition-displayable-p): New function used
to restrict to displayable prettification symbols.  This
prevents issues with missing characters appearing as boxes.
(prettify-symbols--make-keywords): Use it.  (Bug#77381)

(cherry picked from commit 2d0b5f34a008979d34f337c872bcf93a296c6ec2)
doc/lispref/display.texi
lisp/international/mule.el
lisp/progmodes/prog-mode.el