From: Lars Ingebrigtsen Date: Sat, 30 Jul 2022 13:56:49 +0000 (+0200) Subject: Tweak icons.el emoji detection X-Git-Tag: emacs-29.0.90~1447^2~636 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=250dbaa7dd4072639724ef841ff5083127ede028;p=emacs.git 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.) --- diff --git a/lisp/emacs-lisp/icons.el b/lisp/emacs-lisp/icons.el index c16bb966121..277b285c2ef 100644 --- a/lisp/emacs-lisp/icons.el +++ b/lisp/emacs-lisp/icons.el @@ -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)))