From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: GTK Emacs and input modules Date: Sun, 04 Sep 2022 08:38:30 +0800 Message-ID: <875yi4dldl.fsf@yahoo.com> References: 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="29884"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: help-gnu-emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 04 02:39:14 2022 Return-path: Envelope-to: geh-help-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 1oUdfN-0007eJ-1z for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 04 Sep 2022 02:39:13 +0200 Original-Received: from localhost ([::1]:53236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUdfM-0001XX-05 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 20:39:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUdew-0001XB-9H for help-gnu-emacs@gnu.org; Sat, 03 Sep 2022 20:38:46 -0400 Original-Received: from sonic305-22.consmr.mail.ne1.yahoo.com ([66.163.185.148]:44684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUdeu-0007ER-4V for help-gnu-emacs@gnu.org; Sat, 03 Sep 2022 20:38:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662251922; bh=yIAEaVzVDgTAnc6PfkzC5jLqsrCeIHxg8pMbHwl2GT8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=dlKCE9ZWw8Lw9hQTPyHtLpDHEXFNKa6ei5vR6e+2fY8xmZviIrKV6xqpJqPBL2alfrHsJlDX850Tuyrn6AeLlz870Gz5tn4Wxm3nahuKtKHtB2jY3mhqq7We9QBDQkAchE1DfFl2plQ/Y4s6oaCjWz0cWSGFRKE8Htp0k1laSNlztctNP++/zPj/FTD4x3pm2wDmMBEdXUS88lSmzGRaKVI9OV7DSOka2PKCxkE/97o8jTFMIseRS1KUy6l9fPoWSqfBZD5KsSAQXl1NkvPHuYKWi3pyw6VvRIbMTtuJpPXfDZd3aJfHWFq80Ue4Krh2Q46zF5vGwcpG6lmaYzwRvA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1662251922; bh=zIi4SNLkmAlfP6wRGtNVBkuHpKX6fpdF0ShXzIxt3a8=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=bc43V+t8yH2J2s9wswRrMFsfUbA/brdSkCVOMcIGh5rKPmFalkr4MeZDWgmaVZur0UNMm9icCI4mHpuFvL6Xl3OnZSq+1sraJHhtd5v6EjewR+w4cqSqEm3mq+TtDP/+LuTDbiBJgbMKoK6B6jNWFAxYnKlB1rwaedI8qpnS6H0nzL6uc2EVFp/8/cStjXh+gLyGirkMJxmQsXGO8q2l85Qt6JmaNBGnFwQgZ8E60iksaTllHecvzPN+hLsNRlHsv+FcbzMD5cc1zZg4jIiXGO2AJhNZlFHOut3o801Z/K6u4jjlgZM2r+ar2qqupvNByv+CwuNw87pZh5pAa2ykUQ== X-YMail-OSG: dy0Lt58VM1kc6_NtUgDEgO_.pKq6Gejsh_7tyu.upvg8dyqbiP7CBBYvqEH454Y TSI8nIAr4ikpPU3Hw4n_254JXeMyLD4EEMay7vAsL9zYqSxsaWVi3RoyHkE7rB.Ld_p53HnY8l4h ttpH6PlWAxCwYOnM6Toz9kwrr7F87C6AQepl9YbkvKACjGoFuNz3YdXOTpYz6kPAtVsu0Vv7qxoX seSUOZ5V79qYWAS3o7bKBlXejmIJBcIgAADQ3X5GukH41vjzDDHT8hxvuN7Doltvh89HsTYvLIDU AYGenOCrwMlcwBkl5_jtDQaTljhanz53ifzeof4F3I07R7igKTiQnHe0vGfIwrzIYPJnCoCh4s4B c52AvobvUiB7LW211_Mp9DzntW.YWBqFaoQ3e2RgDyjU8SdQHo5vkPpqfiyg2l8ZAV_.GHyOhh7l gldBx.aecbBI5oQhDCNbXe_d83L_KDtib9oyUTSWA.Zq9Ka9Q6f8ApFZDjyeABcfINtR3xN1Wjn6 LkPpJWa1hpXdYMo_j77k14ptbuGhbTdC40BsrNOvdEoPPAbamjPB2ubib3FsNsRZRGsnv1hKvxLl QqHzVrKbmuOI16APlZ1VH2xHq6W7uimCASYNY3vIYL544Wy8mNziHjpuh7xsVT3WrJp.1MSBrKuz 2P7jNa990Vmswn48h.d9oQISnPM95UFvhRhTsxVfx68OKRJKnimraJt4ejwpuOIe27OlZy8E7pU_ 2dmFhaIowJ53A0K05dU06pK51dlwVjjnNfLmq_7ArTXXjrqK8nyzLby.oDET_CsSO4mC0LFQQTf1 4Ts3n_NliFArWpVTzXKgZp8p1o8z0yOleMcc7txR5N X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Sun, 4 Sep 2022 00:38:42 +0000 Original-Received: by hermes--canary-production-sg3-6bb8946c47-s4xp5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 97857df64fb0ebb62b5a5b0b124e82d3; Sun, 04 Sep 2022 00:38:35 +0000 (UTC) In-Reply-To: (Yuri Khan's message of "Sat, 3 Sep 2022 22:59:10 +0700") X-Mailer: WebService/1.1.20595 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.185.148; envelope-from=luangruo@yahoo.com; helo=sonic305-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139229 Archived-At: Yuri Khan writes: > Hello, > > Can someone please consult me on Emacs=E2=80=99s interaction with GTK inp= ut modules? > > Steps: > > 1. $ emacs -Q > 2. C-h k C-S-u > > Observed: no reaction. > > 3. C-S-u > > Observed: Emacs gets into a state where it ignores any keys except > ESC, 0-9, a-f, A-F, RET, SPC. Pressing any of these keys except RET > takes it out of this state. > > 4. C-h k C-; (also C-., C-,, C-0, C-1, C-9) > > Observed: C-; is undefined. (C-0, C-1, C-9 run the command digit-argument= .) > > So: things mostly work but C-S-u doesn=E2=80=99t. > > Same behavior with $ GTK_IM_MODULE=3Dibus emacs. > > ---- > > 1. $ GTK_IM_MODULE=3Dxim emacs > 2=E2=80=934. same > > Observed: C-u (translated from C-S-u) runs the command universal-argument. > > ; runs the command self-insert-command. > . runs the command self-insert-command. > , runs the command self-insert-command. > 0 runs the command self-insert-command. > 1 runs the command self-insert-command. > 9 runs the command self-insert-command. > > So: Now C-S-u works but a bunch of other keys lose their Ctrl. > > ---- > > If I set GTK_IM_MODULE to pretty much any other value from the list I > get from running > /usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0, C-S-u > displays an underlined letter =E2=80=98u=E2=80=99, then ignores any keys = except ESC, > SPC, RET, 0-9, a-f, A-F. > > ---- > > How can I get all of C-S-u, C-;, C-., C-, C-0, C-1, C-9 keys in GTK Emacs? > > (Of course I want C-S-u for insert-char. No, C-x 8 RET is not an > acceptable alternative because every other application uses > Ctrl+Shift+U and I want consistency across my desktop.) What kind of GTK Emacs is this? If this is the X build, then: If you want to use X input methods, do _not_ use the GTK XIM module. Emacs has built-in support for them that generally works better. If you want some other input module, set `x-gtk-native-input' to a non-nil value.