From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: awrhygty@outlook.com Newsgroups: gmane.emacs.bugs Subject: bug#65993: 29.1; emoji-insert show nothing without font settings Date: Sun, 17 Sep 2023 18:37:02 +0900 Message-ID: References: <83led7jvni.fsf@gnu.org> <83zg1mipgi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17909"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65993@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 17 11:38:15 2023 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 1qhoEI-0004V7-Vp for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Sep 2023 11:38:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qhoE0-0006Yr-2g; Sun, 17 Sep 2023 05:37:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhoDy-0006YS-Pe for bug-gnu-emacs@gnu.org; Sun, 17 Sep 2023 05:37:54 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qhoDy-0006nK-Hm for bug-gnu-emacs@gnu.org; Sun, 17 Sep 2023 05:37:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qhoE5-0002YY-N8 for bug-gnu-emacs@gnu.org; Sun, 17 Sep 2023 05:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: awrhygty@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Sep 2023 09:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65993 X-GNU-PR-Package: emacs Original-Received: via spool by 65993-submit@debbugs.gnu.org id=B65993.16949434469781 (code B ref 65993); Sun, 17 Sep 2023 09:38:01 +0000 Original-Received: (at 65993) by debbugs.gnu.org; 17 Sep 2023 09:37:26 +0000 Original-Received: from localhost ([127.0.0.1]:49047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhoDV-0002Xg-Rc for submit@debbugs.gnu.org; Sun, 17 Sep 2023 05:37:26 -0400 Original-Received: from mail-sgaapc01olkn2034.outbound.protection.outlook.com ([40.92.53.34]:13696 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhoDR-0002XO-To for 65993@debbugs.gnu.org; Sun, 17 Sep 2023 05:37:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M1yYKdIl/jkCHT/hnX+jR6gnUdVYc6eV9I6iNPpHDTdzYmPuQuCd5AQNw5mbPTa03vNsK0DEMfyrUnf7GzEwwq9ZaFuOuWTAbbxXmQu9JFwTDnn9F6OEfzmN/rXDaZ7APD7beY2bHUoWpIXWYxBAz34k09hxOWA6Qq/DjdSEiwJ47u5VidmW5S0CMG9xRKSIGdDejlR4A5l2JazafcSMQTTBGx/M071g9Ej445fXU33W5ml89wVUGX4TlnsjXhQpp6iJ6wwKfFB/+oq77UUUpfL32qkD0StIFZEPHMEW9UVKPyPK6ZQZgJWY3htn8pS1Gd7SZ216/qaQz4zpKdPvOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Jw6fhAYpbF+HSAxd3LkIIfTueiwEJ0qNXJ4wSu6Jh7Q=; b=d/qb5VUOLsTFQmad1Fm7veLYLl3wSTVdcUk74J07TzekgQwgR7sYgWdU+dT9TywR2uJUEpYDq+67zO6jnSkdQsUT8Oor+irWBdu1+Zmh6FMGKa94UdNM4SBBm1SyY9RYhblQB8a0kuFjk1Wa7m5igJcmgMjCxjTfkOAyhdbJvFRH7EU+iM8EBcF71IhdJiX12UzxzJsIl1gTH/fzcN0vYgi5bU8UoKUVHQvVyuAPqJ4CAt6K+ULWlZCM1kBdnyuODx8py6o9H62AzrvHYDzlbwBM/aqvAR2MUek/5DXd3Of5s1vuDkK46F/MnhBa96yQTUuzI/vOkQivMA5m+wnxNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Jw6fhAYpbF+HSAxd3LkIIfTueiwEJ0qNXJ4wSu6Jh7Q=; b=slg4NmPX2yvTK3CxC7l+YXTb3W3FKhjuWHfy2FMPcten97JPhHgVwUvA/GrwSQfev38bK6L8cyBDj+cmQ04pFjTFB/1D0wt4zSr2E/eQkg5X4vw5QnROX+Z3xvNxo4FaRGMMc8yNj2cKclXftDyb3TFxyVhez4w5NhRLXQiOzSv9352/6Yhw7EtkUtBpNnwIMnYBuW1KIzxDv4PpNBOVu/ypvJdWnDXww2yUCA97MD+1N9w9S8eb7udEwgp03bEmAwSgXPOJ34Sanrgcs0+q2U0V5pFbiVvl79Xbdfwl1FewwNacJdac1HSvwfEZfK/laxTaI8Kn9duxpVfudUQ8hQ== Original-Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) by TYZPR01MB4593.apcprd01.prod.exchangelabs.com (2603:1096:400:261::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.24; Sun, 17 Sep 2023 09:37:06 +0000 Original-Received: from TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::4ba1:740d:9058:2c68]) by TYZPR01MB3920.apcprd01.prod.exchangelabs.com ([fe80::4ba1:740d:9058:2c68%4]) with mapi id 15.20.6792.024; Sun, 17 Sep 2023 09:37:06 +0000 In-Reply-To: <83zg1mipgi.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 16 Sep 2023 02:48:03 -0400") X-TMN: [SCttw3zKuNyqlkOHvPv3h54mY1JjM6JBb+bO6vuhJyI=] X-ClientProxiedBy: TYCP286CA0322.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3b7::11) To TYZPR01MB3920.apcprd01.prod.exchangelabs.com (2603:1096:400:30::11) X-Microsoft-Original-Message-ID: <86cyyhkuo1.fsf@outlook.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR01MB3920:EE_|TYZPR01MB4593:EE_ X-MS-Office365-Filtering-Correlation-Id: 05e328a3-a4a5-42e6-61e3-08dbb761a7a8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jjVgp9gv0EKOl3b07G7UNnoW5bAq5VDX971n44GO7JIJyE57daSo98FiQUoCl4K5LVzE/kwqQ+NEmafFgJJWWdQRm/aEH4coVW+wqHlJ+wDW32k8M1Jd7FKJnr9wpAYiDGgXOIvouat1rYPAZvc8Y6FIMBCsVRJjJnxnznBGkag17ZBy6Q0Lme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jPB2hg7l5mpEOTTRFQQvWguYZ0eoZWSwrtOznzqwfzbj90QVOkFF+dNACJef1f2h3LT0wDLMfJpfm4BEop6kz7lUhAUmVlmV3xOtf+s3qtphpU0S4FNXO2AwYVWxf3/nOaTlRB57GhlQ 4koPX7DdJB87TcAANgoq44GzzdnlIsrW1TtB2WTBX0T1EZx9sLpo+B6VPLwli1M5XV+CMTI1pS0ld0xuxMPUjkEdtrHGG5NTCo X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 05e328a3-a4a5-42e6-61e3-08dbb761a7a8 X-MS-Exchange-CrossTenant-AuthSource: TYZPR01MB3920.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2023 09:37:06.0124 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR01MB4593 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270681 Archived-At: Eli Zaretskii writes: >> >> And once emoji-insert is called before font setting, >> >> emoji-insert does not show emoji items after they are made visible in >> >> emacs buffer with font settings. >> > >> > This is not a bug: you need to clear the font cache to get Emacs to >> > react to newly-installed fonts without restarting Emacs. Like this: >> > >> > M-: (clear-font-cache) RET >> >> Evaluating (clear-font-cache) have no effect on emoji-insert. >> Perhaps menu items are cached in another place. > > Maybe. You can also try clear-composition-cache. If that doesn't > help either, just restart the session. Installing new fonts and > reconfiguring fontsets while running Emacs is not fully supported, due > to many caches we have for fonts and compositions. The definition of emoji-insert is as below: (defun emoji-insert () "Choose and insert an emoji glyph." (interactive "*") (emoji--init) (unless (fboundp 'emoji--command-Emoji) (emoji--define-transient)) (funcall (intern "emoji--command-Emoji"))) The function emoji--init evaluates (require 'emoji-labels). In the file emoji-labels.el, the variable emoji--labels is defined. Its value is a hierarchical alist of emoji menu. Then, inside the function emoji--init, non-displayable emojis in emoji--labels are removed from alist. After the function emoji--init, many functions are automatically generated. Each of them corresponds to one item of emoji menu, from which non-displayable emojis are already removed. Finally emoji-insert calls the function of the top menu. To change the emoji menu, I need to evaluate: (progn (load emoji-labels) (emoji--init)) This form resets emoji--labels and redefines menu functions. I think the removal of non-displayable emojis is unnecessary. If hex numbers are displayed, users can notice there are more emojis than displayable. If it is difficult to find displayable emojis among many non-displayable emojis, the menu classification is not appropriate. Too many emojis in one menu node make user unable to find the purpose emoji.