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: Sun, 01 Dec 2024 10:08:04 +0000 Message-ID: <87h67nn2bs.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="21005"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Yikai Zhao , Helmut Eller , 74590@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 01 11:11:40 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 1tHgvU-0005Jk-79 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Dec 2024 11:11:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHgt0-0000Va-K8; Sun, 01 Dec 2024 05:09:06 -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 1tHgsx-0000UL-R0 for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2024 05:09:04 -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 1tHgsx-0004SO-Hq for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2024 05:09:03 -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=u/VfzkUETKuiYujjQxtU6Hw43t6Nf215BF53xKjuzqA=; b=t/GW7EFCoINWQsLdz19qlfUv5x0+KMxSBHn9qTk5vKJuXa3p8lG16K6GP2Rz5O+buz+XIQmCkaUDPU8zgO/YPh6mjhzKUFzVzNubdbyUdVxXOYSYpOtbS/WfhG23YR1jauiyOBifcg4HQyjLDfvNDtoc0gMGOCTsQVkF6QJVFTqClo3j6DlJxiVAebz1sh6N9gwZsd71xjfwcSJm8xfejMj5OXcy44194pnO5e7Q/ri6LefY+y+UrF6lWmcqUlsnaRetrD51rekyUSCQtY1/Z99lVDfUvK2spRlJH/770tiyJFyFYf22h07scEUhd2E9R1PL7E2SievWVCl+ZrTS+Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHgsw-0007eh-CT for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2024 05:09: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: Sun, 01 Dec 2024 10:09: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.173304769829358 (code B ref 74590); Sun, 01 Dec 2024 10:09:02 +0000 Original-Received: (at 74590) by debbugs.gnu.org; 1 Dec 2024 10:08:18 +0000 Original-Received: from localhost ([127.0.0.1]:50343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHgsE-0007dS-5o for submit@debbugs.gnu.org; Sun, 01 Dec 2024 05:08:18 -0500 Original-Received: from mail-10630.protonmail.ch ([79.135.106.30]:61357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHgsB-0007d6-Q3 for 74590@debbugs.gnu.org; Sun, 01 Dec 2024 05:08:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733047688; x=1733306888; bh=u/VfzkUETKuiYujjQxtU6Hw43t6Nf215BF53xKjuzqA=; 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=eVAxsB4HbTRZwQuXB/kCC5SrOiI5J4Xb+gGPVkNqDrCUbS7dyS4zrykW27qP10dZH 1WuI9/3Dr4XDSaTq/Suty5wo8Lmr5uvd4mu8brxmJ2Gz0ZNWFfX0TpO130s3W8NnU6 sh37D3rHd+FOcvrCsBwcG/nN3ut6hjlS4I5TSCryaPVlP8Wx1yrW2LU3443Xt8fKkJ A6q5TS2uN5+TRPLOImVbp0/yNpo/lnZ7a6rNwS/bskHHw5an3cceqg03G2m17tR2k0 aKRLtWAK8PljqtVpFWb17EaVzuDPQQYuD8rdwL7Y4PIKOdthk02EjMDo4gfEvxVSb+ DJwzTv8gXQEmw== In-Reply-To: Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 74d9823aba631e7410c92e5d9bac54a21f2d3942 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:296233 Archived-At: Gerd M=C3=B6llmann writes: > It probably isn't relevant because of this > > #ifdef HAVE_MPS > void free_glib_user_data (gpointer data, GClosure *closure) > { > igc_xfree (data); > } > #else > void free_glib_user_data (gpointer data, GClosure *closure) > { > return; > } > #endif > > Don't know where the allocation takes place. It's this code in gtkutil.h: #ifdef HAVE_MPS INLINE gpointer glib_user_data (void *o) { gpointer p =3D igc_xzalloc_ambig (sizeof (o)); memcpy (p, &o, sizeof (o)); return p; } INLINE void * get_glib_user_data (gpointer p) { return *(void **)p; } #else INLINE gpointer glib_user_data (void *o) { return (gpointer)o; } INLINE void * get_glib_user_data (gpointer p) { return (void *)p; } #endif Does that look correct to you? My understanding is that the GTK input method code is only used if x_gtk_use_native_input is true (which we'll have to wait for the OP to confirm or deny), but xg_create_frame_widgets always calls gtk_im_multicontext_new, so the problem might be in the GTK code... Pip