From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: GTK Emacs and input modules Date: Sat, 3 Sep 2022 22:59:10 +0700 Message-ID: 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="37060"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 03 18:01:33 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 1oUVaP-0009YX-QH for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 18:01:33 +0200 Original-Received: from localhost ([::1]:49404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUVaO-0007fi-MY for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 12:01:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUVYN-0007fK-HD for help-gnu-emacs@gnu.org; Sat, 03 Sep 2022 11:59:27 -0400 Original-Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:35801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUVYL-0008N9-NL for help-gnu-emacs@gnu.org; Sat, 03 Sep 2022 11:59:27 -0400 Original-Received: by mail-wr1-x433.google.com with SMTP id bz13so2421456wrb.2 for ; Sat, 03 Sep 2022 08:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date; bh=o5R2Dm1GDa4C9h7T9TIYvPq0LvjJTRT7iOcUs2hu/pk=; b=XuOjdVxZrZwhRY2xscbYrlM3zZYgHhZ/zVRnZY/B93Altdov6TjXYWwGwMQibBaon8 PFRrofFJE3moC1Qv4nBfdOTtdNStbs7lFHcpSqCLLk+/dmCT7tzEmiq2nz9g6t89YcJd j0JImM0Q3ja2hvHF0ZbUWSxJvtgMLiQWCjHVz3HBAcp7PzN18aS78Wy8H/9JJUs786+1 u2wfi9dwPjpEsniqwvqh9TkFW0a9xm5IxjlxmNFICHKGPs0egN0us9JkK8eQ8qrpEmKX hsTObkB9yVGjav4TMt0tsRWyYUo9i/1fvb+iDzEWBb+b/MA6uu8QEMaRTk94GiBNbabO e3AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=o5R2Dm1GDa4C9h7T9TIYvPq0LvjJTRT7iOcUs2hu/pk=; b=r0bDsNNfFHMJxTA7AarjU7Y8JcfNzTn6xxRHNVIQe0mkzqjElR26eCsdHS62BgdXmY bQG3DBPPrYDehMB7t30mQhiVlsjvzm/I2j+03BK6XuxAI4oH3QOS/FDfWr8rdVsfV2Mw AkG1xzl/X6DU5JYi/7wJL+bR6hEfd4E82TiKTGC67w0m5XkjMbZFEUHgjvHUofX4usNL VVGMli8j5djsfNv/CUhzLFbSFnFLUA60PRmV5nsF1SBTt/0NJo/cRnKFp0tHkCT1/yZh HEnqqIPIjEKMEkZKw4tD3cWzyQhvGoZEVdwPfpd2/JxBFowy1N3/icuJ/rgPK+PpkK6n exnQ== X-Gm-Message-State: ACgBeo2rzzU4xlK1uw+qc/G7nT5qb9mlSJxZIza35fpwLPe3M2BzY2AH Q//XoFqzVhIWSNT9o514euyrrmDWzPg1R34vw6DE34BSxgKMWw== X-Google-Smtp-Source: AA6agR431WxOFMt6NmNV4KOhWatpspOk/rFohR2M8aZTyfbROJGunHqy/yH5kWb0CQkdKfGA5wCsNFfy4P+wu+0pfQE= X-Received: by 2002:adf:fdcf:0:b0:225:65c8:7b7f with SMTP id i15-20020adffdcf000000b0022565c87b7fmr20723961wrs.217.1662220762831; Sat, 03 Sep 2022 08:59:22 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=yurivkhan@gmail.com; helo=mail-wr1-x433.google.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:139225 Archived-At: Hello, Can someone please consult me on Emacs=E2=80=99s interaction with GTK input= 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 ex= cept 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.)