Tweak icons.el emoji detection

* 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.)
This commit is contained in:
Lars Ingebrigtsen 2022-07-30 15:56:49 +02:00
parent d34e38f7d1
commit 250dbaa7dd

View 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 ?😀)))))
(car (internal-char-font nil ?🟠)))))
(and (font-has-char-p font (aref icon 0))
icon)))