From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74134: 29.4; emacs-pgtk and emacs-gtk-x11 does not react the same way to c-s-u Date: Fri, 01 Nov 2024 08:59:08 +0200 Message-ID: <86wmhn1ltv.fsf@gnu.org> References: <877c9ozcpv.fsf@chopper> <867c9o2vfm.fsf@gnu.org> <87r07wawpa.fsf@tanaka.verona.se> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11032"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 74134@debbugs.gnu.org To: joakim@verona.se Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 01 08:02:56 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 1t6lgO-0002gG-15 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Nov 2024 08:02:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6lfa-0002G0-Nn; Fri, 01 Nov 2024 03:02:06 -0400 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 1t6lfY-0002Fe-Ge for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 03:02:04 -0400 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 1t6lfX-0008Mz-5W for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 03:02:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=P0reLD2EyzqU7PtQ9u11RBwXcIQkfSHqWkE6Ixy8GQ4=; b=gh3o9sPMTmYX5JK+nuVdF/modSVs80cxv0lORMQwrbOJCqLL4+Xez/7eIpn0N+hqlZBIPNWWc24UdUg8ZNY9h4JTDqXPbTXm4FvgH61/FZOiaCoL05lOOJTAzexmgyzGAQyZMJ4+2PtYQWla51sREx45VeM1pBJ4vcnkbmxQQL+gJX8vRR/U3+/ZqwwajFU2mFYafIsJDP6XduIu9ZkCSpHTbqIRxWEtIlZdDTsxBYjnBXF63id4vIZFm6lDtj/v6jjtpF2ZGtaYzE6EskVMfWj8oTnLt+y4n/ySli1ryrIUEPTaQSENknc50B6IZH0mwSEQwfFR0GtTjWim6uw7Hg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6lfW-0004xO-Vx for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 03:02:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2024 07:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74134 X-GNU-PR-Package: emacs Original-Received: via spool by 74134-submit@debbugs.gnu.org id=B74134.173044449219009 (code B ref 74134); Fri, 01 Nov 2024 07:02:02 +0000 Original-Received: (at 74134) by debbugs.gnu.org; 1 Nov 2024 07:01:32 +0000 Original-Received: from localhost ([127.0.0.1]:47267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6lf1-0004wX-N0 for submit@debbugs.gnu.org; Fri, 01 Nov 2024 03:01:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6lex-0004wO-V2 for 74134@debbugs.gnu.org; Fri, 01 Nov 2024 03:01:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6lcl-00082W-0w; Fri, 01 Nov 2024 02:59:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=P0reLD2EyzqU7PtQ9u11RBwXcIQkfSHqWkE6Ixy8GQ4=; b=gXrZQtGCUmtk 6eZcef3ADi6URThQ8tk6TL7faj9XB3kQFYx9bw7jWtdV2sQWt+AgZip18rq4wRfTpOvLVc2qxlGF+ sitgomaw8RPkLRkdaWiQHMhvaBhplYPxO895f4rHRjiMxtbVKfx/ODoyCESc16NQ4RmRfFYuwQr7H KLb8iuBzVVWt6hi9oRiJ4vsJ0NJfKnUP74/1ZW6UTNSC7u2vUfpSMO5GYSrpVNfVpNpl4hm5XYc7v ZzfxJtpELW9tLKhPDJXJ5V3m12k/e5ukOxRqr6jMJwtxRAbqjjjT64r2Wz/Z58hG8/Ok31FgxaSC/ qjQj/eRBJTJF1uWMcLVCtw==; In-Reply-To: <87r07wawpa.fsf@tanaka.verona.se> (joakim@verona.se) 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:294657 Archived-At: > X-Spam-Status: No, score=-0.8 tagged_above=-999 required=6.2 > tests=[ALL_TRUSTED=-1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1] autolearn=disabled > From: joakim@verona.se > Cc: Po Lu , 74134@debbugs.gnu.org > Date: Thu, 31 Oct 2024 20:39:29 +0100 > > Eli Zaretskii writes: > > > Isn't this the following known issue from PROBLEMS? > > > > ** Certain keys such as 'C-S-u' are not reported correctly. > > > > Some keys with modifiers such as Shift and Control might not be > > reported correctly due to incorrectly written GTK input method > > modules. This is known to happen to 'C-S-u' and 'C->', which are > > misreported as 'C-u' and '>'. > > > > To disable the use of GTK input methods, evaluate: > > > > (pgtk-use-im-context nil) > > > > This will also cause system input methods and features such as the > > Compose key to stop working. > > > > On X Windows, users should not use Emacs configured with PGTK, since > > this and many other problems do not exist on the regular X builds. > > Thanks! > > (pgtk-use-im-context nil) > > inhibited the broken gtk input method c-s-u behaviour, and now the code below can be > made to emulate the behaviour in other applications. > > > ;; enable standard linux unicode input > (define-key global-map (kbd "C-S-u") 'read-unicode-char) > > (defun read-unicode-char (c1 c2 c3 c4 _trailing_space_ignored) > "Convert unicode input C1 C2 C3 C4 to the corresponding insert char call." > (interactive "c\nc\nc\nc\nc") > (insert-char (string-to-number (format "%c%c%c%c" c1 c2 c3 c4) 16))) > > PS > I'm using Sway/Wayland and emacs-pgtk looks better than emacs-gtk-x11 > there. Maybe I'll go back to X11 when the novelty of Sway faded. So can we close this bug now?