From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54441: 28.0.92; set-language-environment causes Apple Color Emoji cannot show up Date: Fri, 18 Mar 2022 08:51:26 +0200 Message-ID: <83a6dnhhxt.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18016"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54441@debbugs.gnu.org To: Will Chang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 18 07:52:54 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nV6Tm-0004YE-1a for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 07:52:54 +0100 Original-Received: from localhost ([::1]:58722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nV6Tk-0006U2-Kv for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 02:52:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV6Sw-0005CM-0I for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 02:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nV6Sv-0006Bs-NQ for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 02:52:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nV6Sv-0004Jg-Hd for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 02:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Mar 2022 06:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54441 X-GNU-PR-Package: emacs Original-Received: via spool by 54441-submit@debbugs.gnu.org id=B54441.164758629616556 (code B ref 54441); Fri, 18 Mar 2022 06:52:01 +0000 Original-Received: (at 54441) by debbugs.gnu.org; 18 Mar 2022 06:51:36 +0000 Original-Received: from localhost ([127.0.0.1]:56083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV6SW-0004Iy-9v for submit@debbugs.gnu.org; Fri, 18 Mar 2022 02:51:36 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nV6SV-0004Ik-2M for 54441@debbugs.gnu.org; Fri, 18 Mar 2022 02:51:35 -0400 Original-Received: from [2001:470:142:3::e] (port=44004 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV6SP-00067w-Oy; Fri, 18 Mar 2022 02:51:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Uz6FNj2rPo8FxZ8lg8/MTBPWCxzoInT0+wgQAMkkal0=; b=IJc/XPOAHWmX 4kp/qcleiHYPWNl1TJ9t69CXbeklYvGwQHY+gtHGrBL0crIxqSLQc+D7hcRRzAJ4PRjr5ZsCFUu8K iEBbch1TgKB4O1poJO5hEL1y9u+nG1rWi9m9Q/HfGxDq8LeEf+8KTkyBC/b9rVt25pzKEKNcMnVzI xemPh4QfuueqRzIk26ThKerM6pPz314TJ/u3Ew7VGFMHjJbg3wk7gXM/IHHDJbXBFEV7SYoABOBVm hatFg8LEf/Xjl355a37qcv2JnYo7JRTG9BFhrJMyDo+pytjM5VAwb3XI07CzXlhZ5BgumMMciw+cy PZEuLdfR7OUv/aJ8H9ixcw==; Original-Received: from [87.69.77.57] (port=4442 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nV6SP-0005vb-5T; Fri, 18 Mar 2022 02:51:29 -0400 In-Reply-To: (message from Will Chang on Fri, 18 Mar 2022 11:41:00 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228527 Archived-At: > From: Will Chang > Date: Fri, 18 Mar 2022 11:41:00 +0800 > > (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) > > (set-language-environment "UTF-8") > > Steps to reproduce: > 1. eval-buffer and the emoji doesn't show up correctly. > 2. Comment out (set-language-environment "UTF-8") and run eval-buffer > the emoji shows up correctly. Please tell: . does this happen in "emacs -Q", if you evaluate the above immediately upon entering Emacs? . what is the language environment before the evaluation of set-language-environment above? . what is the output of "M-x describe-fontset RET fontset-default RET" after evaluating set-language-environment, in particular in the Emoji block starting from #x1F600? . what did you mean by "emoji doesn't show up correctly"? how was it displayed "incorrectly"? And I have 2 comments, which may or may not be relevant to this issue: 1) It is a very bad idea to do the likes of (set-fontset-font "fontset-default" 'unicode "Apple Color Emoji" nil 'prepend) That's because the character set 'unicode spans the entire range of Unicode characters, and there's no single font that can possibly support all of those characters. 2) You should set the language environment _before_ any other customizations related to character sets and fonts, because the language environment affects those customizations. Thanks.