From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74590: 31.0.50 [scratch/igc branch]; key input sometimes skip fcitx input method preedit box Date: Mon, 02 Dec 2024 16:26:50 +0000 Message-ID: <878qsykq4i.fsf@protonmail.com> References: <87iks5xayc.fsf@gmail.com> Reply-To: Pip Cet Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5473"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , Helmut Eller , 74590@debbugs.gnu.org To: Yikai Zhao Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 02 17:28:11 2024 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 1tI9HP-0001Fl-N6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Dec 2024 17:28:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tI9HJ-0004jR-30; Mon, 02 Dec 2024 11:28:05 -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 1tI9HH-0004iy-1w for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 11:28:03 -0500 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 1tI9HG-0008NC-P2 for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 11:28:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=RsFq76GpQqQhco9tqFnAijbDlti4781l6e7ol4kz2JU=; b=P/0f7t13DxQG0uWyMOiuuoSEumuwQmQSOBMoR7nkzFSB8QnEog+R1Nt8NwT6tnb5oSdCHbr6awvvlPKEGlMjUj8E6dhPDYzDLddyXN4d5hkIQI1u5E3xC2nZ5ORJnNodupMGcbD4qf2V2G3UoHIE+INmeJWRybpS6yDSuQLaFDia93BVz4SUd+6vIL5bFvcmtLEX9zy368c6rIVYFwBAJhnsn2QhG8CrkQjkl/mxL8HeyfxAe+ZpTyUBHtAPAF4lSCKGPZ0mEjrxvv2ERJ9nBDFO6oAKI1W5NMzd93MIrLfEL3Ti/Z50OuDdyZ+ndgFPNlIZdiMWVf9A2kF7+WPBog==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tI9HG-0001dM-Ie for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 11:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2024 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74590 X-GNU-PR-Package: emacs Original-Received: via spool by 74590-submit@debbugs.gnu.org id=B74590.17331568256174 (code B ref 74590); Mon, 02 Dec 2024 16:28:02 +0000 Original-Received: (at 74590) by debbugs.gnu.org; 2 Dec 2024 16:27:05 +0000 Original-Received: from localhost ([127.0.0.1]:56289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI9GL-0001bW-2q for submit@debbugs.gnu.org; Mon, 02 Dec 2024 11:27:05 -0500 Original-Received: from mail-4322.protonmail.ch ([185.70.43.22]:28965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI9GI-0001aN-4w for 74590@debbugs.gnu.org; Mon, 02 Dec 2024 11:27:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733156815; x=1733416015; bh=RsFq76GpQqQhco9tqFnAijbDlti4781l6e7ol4kz2JU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=OOH2XmAtMj48LfzuEbf+qr6wuncmdlqIh5yQPwggNB0v+DznxBY+BbDt4z6cBxR1p cIX5KD9V03aYyg98RZKJaNIMY5QhXquP14WnFuLzeOFZVyAVUfiPa/+PG3D2Aglbhz s5B1y1kvS8Y9EBCsoMHpK4SVvx4DHijCNxcz012MPLBnU/lvyvykDgyWsxKPfGpsTl DNiQGQHcgajVYETAyjPGGHunCUDXCkgRrv4rCXx6Kztypv6+OWxopM4ECq6ODZZu5h l1ciCVyqqVab9a4JssaP6KhY19kN2q42dEdsqJ+Iv1Y1Z5KeZZtOeGMc7jfesqahMF HhQ/Zpl/TeIdQ== In-Reply-To: Feedback-ID: 112775352:user:proton X-Pm-Message-ID: b9fdf0f14f119b0a53014dffe0946f4a51027cec 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:296338 Archived-At: "Yikai Zhao" writes: > I have reproduced the issue with your patch, here's the relevant log: Thank you! So it seems we call XFilterEvent correctly but it incorrectly indicates that the keypress (event 2) should be handled by Emacs rather than the input method. That's rather puzzling, particularly since subsequent calls to XFilterEvent return 1, indicating that the key release is handled by the input method. I'm pretty much stumped at this point. It might be a timing difference between the MPS and non-MPS builds, but I think it's more likely to be a bug in our MPS code. > Please let me know if there's any other info I can provide. Well, you already tried setting x-gtk-use-native-input to t :-) One thing you could try is to run a full x11trace of the Emacs session and see whether anything unusual is in there. But that's not guaranteed to yield any results. Pip