]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak icons.el emoji detection
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Jul 2022 13:56:49 +0000 (15:56 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Jul 2022 13:56:49 +0000 (15:56 +0200)
* lisp/emacs-lisp/icons.el (icons--create): Choose another
character that's unlikely to appear in non-Emoji fonts.  (Comment
left in place since this should be fixed in a less breakable way.)

lisp/emacs-lisp/icons.el

index c16bb966121c59c92e40e7cf0425cb02c4b506e8..277b285c2ef0bf0a058ef4f020b64416cda9acb3 100644 (file)
@@ -207,7 +207,7 @@ present if the icon is represented by an image."
   (when-let ((font (and (display-multi-font-p)
                         ;; FIXME: This is not enough for ensuring
                         ;; display of color Emoji.
-                        (car (internal-char-font nil ?ð\9f\98\80)))))
+                        (car (internal-char-font nil ?ð\9f\9f )))))
     (and (font-has-char-p font (aref icon 0))
          icon)))