From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#60711: Compose fails to generate =?UTF-8?Q?=E2=89=A4?= and =?UTF-8?Q?=E2=89=A5?= (only those two! and only in emacs!) Date: Wed, 11 Jan 2023 18:21:12 +0800 Message-ID: <875yddfk2v.fsf@yahoo.com> References: <56368889cbdc3988c852@heytings.org> <87r0w1fs1q.fsf@yahoo.com> <502d6ee86a5af0665e1e@heytings.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36121"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 60711@debbugs.gnu.org, Marcin Kasperski To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 11 11:22:23 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 1pFYFT-0009Ak-5P for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Jan 2023 11:22:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFYFD-000764-W1; Wed, 11 Jan 2023 05:22:08 -0500 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 1pFYF9-00072A-TQ for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2023 05:22:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFYF9-0005Rm-9R for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2023 05:22:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pFYF8-0007Vq-HS for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2023 05:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Jan 2023 10:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60711 X-GNU-PR-Package: emacs Original-Received: via spool by 60711-submit@debbugs.gnu.org id=B60711.167343248828811 (code B ref 60711); Wed, 11 Jan 2023 10:22:02 +0000 Original-Received: (at 60711) by debbugs.gnu.org; 11 Jan 2023 10:21:28 +0000 Original-Received: from localhost ([127.0.0.1]:41741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFYEZ-0007Ub-Rr for submit@debbugs.gnu.org; Wed, 11 Jan 2023 05:21:28 -0500 Original-Received: from sonic309-20.consmr.mail.ne1.yahoo.com ([66.163.184.146]:32911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFYEX-0007UK-B1 for 60711@debbugs.gnu.org; Wed, 11 Jan 2023 05:21:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1673432479; bh=kDX8Jb3XQDq61ubTOCMpVKlJAl+/ZvdtpwYu7ZcCsb0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=VAkfiecXkTG8jHuGUpjaLI3CFajOYa1nyR1vzN3yAbcJyLLmuhrSViKuB10nhJjQx9y5+72Vq1dmbxxmECUpha4CP0x8Cg693Vs8dFPV9J94rd8dN8ljGlEapN7jPvNqflE8dWTicGeQvt/125Eh5DQf/77yeGFKSFB0oOc267R2dPFwJipuoeDzDLWhFY0x5TJUDGkREsl53t526wia/lNz/NRHjZhlANfLxlR4gcJRERMZYemg1fkrTWJ1iDQeqKncKEAu8j+b7DPaSX46jdNaRGagdoQdDFxDy8mQVoZtcutWdrBJdS9c9TTGgSPdIV5TRlgOByPm90YTG8wIzw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1673432479; bh=DT3LV+8geuu5bsxRChFf/GN4IiezzX3pGdx2WxRwOc9=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=qG+9C0MjIEWingDhlGuFTxno9CAseDupqpeaXIPLf3cGUxbDa5wOCmjlHtDHd8T1HQpaMhts3CDPCqzhOmYygPjkctyueohVX41i4clpMRM2xh/UwgSydag3wvXEAKHwTa1dqgvgWBeshQDezk65SH19xqCDroQeQGDu/Dt4Tmi7sXzLyMu4D+yyjRZKWZ89yyx07wzRJ+DWK3s7puZScEn/Xc0dUp/KzRZPfH2zInHi+gLpAMH5BtwKZI4somxkIpG7s8US/NkVEIEeA7UhtP+W33cRTTcaTlv3jucANb7+okGQcARCyjIsvyQQ5V86aILxeR+Sdkaagb/d5i35ag== X-YMail-OSG: xu71RUoVM1nLPgmX1TkWlDDeEWejaSWiqBa9P352I0XVQEGANfkh4OVWKchS7Qx 3.CtMNBnSqWQdW3KrVks2ezw6fGzl604zH7Nti3CJDMno6wvoQEA5SSlpWrEwvmyfysd4EECVzpB dQIVDT.uwvYhFByUw5Fb_ftSdKDIsBhevCSn_HPonCnlpuEXB0BQoTY5tU.rCU2zwJjr3FH5B0ik VJ13k8JLgCcz6PdQMQble0mNtVZlnleZNNCHM8wYB1VclW6O3wIfeUusqftDuEc7oAx52MOr3SRG 4KacsdTQzbeuYieiYZTJVq6_xY7nOy5tN6QkU6IKRApERCN7LVDTLjjqV0v0dvqvubRck87SX2U4 aBLRDLXp9enMQmNRmDRotAdJkpue57C0um3_VeFiG00upvy42nfiNCbvRBTWOAm4yCBfjOX6zGB3 r1y5AqL3jvQ95mUSjCzXyP17xl3y7_2RDDaT5ITcvkY91GcOsWd.sOL4VrPfYFqIl6Ygc5hTMri6 vAFOUmU9OmttmQcrWdL.NOHIFT8WJutYXFfm5_ZeH1.9mTtw1ahaI4XOc7iLNZzMxaFyx0WMqSfd SW3pKGxunl45cCuwQ4eUtKrtVvieYWTDdUhZk4_gwfBXh_9fz6Jc8uDE75TQV_k8NMmAgtdPHXjC XTbbe6ErgxgBASs59j9V9AIZGjiqacw0FDrKayVd2frQ78Wza01qVkdgQPX394pLavjoDxZ_aD1V 8c9WJNKPJ8RlJeKzBQaOYlpopf_sy4MO8cGLr9nuTs1VFFU9hs4lMaNZupVZVORl8jqLSYawGNmA vWxof3K9zWeyZ210Bavj1MjRjmEFnR2ieI92rlmaEn X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Wed, 11 Jan 2023 10:21:19 +0000 Original-Received: by hermes--production-sg3-5ff5bbd69d-9mm7d (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 30f4fbdb8fed5a1fcd9f60f78599359a; Wed, 11 Jan 2023 10:21:17 +0000 (UTC) In-Reply-To: <502d6ee86a5af0665e1e@heytings.org> (Gregory Heytings's message of "Wed, 11 Jan 2023 08:45:13 +0000") X-Mailer: WebService/1.1.20982 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:253135 Archived-At: Gregory Heytings writes: >>> It's unlikely that this is an Emacs bug, Emacs does not "see" >>> anything until the compose sequence is finished, it only sees the >>> final character. >> >> Not exactly true. >> > > Marcin explicitly said he uses the Compose key, with both Emacs and > other apps, and not an input method with Emacs. And as far as I know > when the Compose key is used apps only receive the final character. The compose key requires either compose state to be kept by the program in cooperation with XLookupString, or is implemented by the input method. In either case the program must keep compose state around explicitly, or forward the compose key events to the input method, which will then indicate to the program that it will do its own internal processing of the compose key sequence and that the program should ignore the key itself. If you don't believe me, run xev (or xinput test-xi2) on a system that has compose set up and enter a compose sequence. You will see the (XI_)KeyPress and KeyRelease events with either 0 bytes returned from X(mb)LookupString or True returned from XFilterEvent. If a pop up window shows up, then it is definitely being displayed by an input method. Xlib itself does not know how to do that.