From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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 21:02:41 +0800 Message-ID: <87ikt7ksy6.fsf@yahoo.com> References: <877c9ozcpv.fsf@chopper> <867c9o2vfm.fsf@gnu.org> <87r07wawpa.fsf@tanaka.verona.se> <86wmhn1ltv.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8075"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74134@debbugs.gnu.org, joakim@verona.se To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 01 14:03:22 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 1t6rJB-0001se-QR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Nov 2024 14:03:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6rIu-0002Mw-0G; Fri, 01 Nov 2024 09:03:04 -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 1t6rIt-0002Mn-1v for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 09:03:03 -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 1t6rIs-0003hN-PE for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 09:03:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=EN8YdfrLNTH9b9ZizFmgHshJnqVnqTK2/GTRlzXPbJA=; b=Xg4ZdR5Dkf0l+5ZTS+n+DDNiGR4Kuy55+kU1HJQOFUREjtcrrp5AH3/PiI2/Ss5ldG46m7gsWo14YW3ldMqYuljxfhbSiuG7hxBYC2YpmITkBDMiD/A30x4dC9ZTq6QlTSiUhpTkXpP58Y0Q1l7C4BNW2uKpQGREWX2z2dt24N9nAG4YJ5FuABNuW7RWX1Athmq+Pv+pTzQc8Z6HuFKWxzod+hvWv5F5hXvFyvOfXmf8O//BeZyeacB3nKuv9v8DdxcVZPzrIdCf+Q6o99bOcI20pHRVUChKZ+MOJVhGwVJcJo4gl5XX2hWNnto8SfYClDI1RIQRnpY8i8gdgtIGeg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6rIs-00007K-Cb for bug-gnu-emacs@gnu.org; Fri, 01 Nov 2024 09:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Nov 2024 13:03: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.1730466181444 (code B ref 74134); Fri, 01 Nov 2024 13:03:02 +0000 Original-Received: (at 74134) by debbugs.gnu.org; 1 Nov 2024 13:03:01 +0000 Original-Received: from localhost ([127.0.0.1]:49351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6rIr-000076-1A for submit@debbugs.gnu.org; Fri, 01 Nov 2024 09:03:01 -0400 Original-Received: from sonic309-20.consmr.mail.ne1.yahoo.com ([66.163.184.146]:33151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6rIp-00006t-8b for 74134@debbugs.gnu.org; Fri, 01 Nov 2024 09:03:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1730466173; bh=EN8YdfrLNTH9b9ZizFmgHshJnqVnqTK2/GTRlzXPbJA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=N1FrUfDra9D8DH+M3cSAAoTI2sMBaWre8t0QKTxL926rR/NAF74Synxt1RdZwzLkNZ8lqyoAoUYf3vLLOxIvkExF1hjlZwKOX3l3x8phz+fNQzXNArZtE2iUx/SPz9SNpxjjyZyZ6qIPyuWjmWpnoSPyNz92uftCjNsCPNu1FEiSXP/HO5trObQV3HLouHOKnu/GIvjSntUyPnGHzN3OuZdlMCgj9RktPATYLwUt2CorIYp7maQAlXVwNJ3DHYBswiUOCKGMaUFEZhzpwut2tg8JIQc3/yq1R/c1riU4MFTxbGgYBXia6VO9GKBS/fGN+jZsLI8NWJ/vgRCvzuNCgA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1730466173; bh=P8CVPJ4stS7SjYXTs1EJ1fgT3MFB0l1yV6tk6sW2hJU=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=AjaMy+e6mOcbc5p5JXCsx1/BaZGoI89ThWMoXlkN/4UYqixiqaLDVzKkkSG7+IStrLgbXU3QpLbEBKyImOPdP9kUbdZnRl1KM8z1xmqPHaH1LXo0fmAMZ+78ugbISf3Mmwphr/BKRzHJDZNQpxjZLGRa8BY4D0+sbVleHJZh6S9ZczEcCshGvwidFMv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-bc29-8d9a4abfeb19 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Fri, 1 Nov 2024 13:02:53 +0000 Original-Received: by hermes--production-sg3-5b7954b588-wkhmx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ffcd2fb30239dd783d42d149bdb8a619; Fri, 01 Nov 2024 13:02:48 +0000 (UTC) In-Reply-To: <86wmhn1ltv.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 01 Nov 2024 08:59:08 +0200") X-Mailer: WebService/1.1.22806 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:294676 Archived-At: Eli Zaretskii writes: >> 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? I suspect so, yes. It has long been my intention to write a Wayland backend for Emacs without dependencies on GTK. This will be an uphill battle, but I understand that Wayland has become far more stable than of old, and this could easily be a project for anyone to adopt.