From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: joakim@verona.se 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: Thu, 31 Oct 2024 20:39:29 +0100 Message-ID: <87r07wawpa.fsf@tanaka.verona.se> References: <877c9ozcpv.fsf@chopper> <867c9o2vfm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38872"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Po Lu , 74134@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 31 20:40:17 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 1t6b1k-0009ty-Gy for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 31 Oct 2024 20:40:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6b1Y-0004JP-1h; Thu, 31 Oct 2024 15:40: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 1t6b1X-0004JH-2W for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 15:40: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 1t6b1W-0002UB-Q0 for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 15:40: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=5xu83oB9kLz2CGd787DuYww5Rx1QhZAVSHVZKqlWUJU=; b=nZsoCLagg88Y418J17qbZybIA5KZ0q8q4jXQYG74sNmM813ca74K++6f8CaeVpdSbQ5+VfCaWRUyXADpJKABvO154r3tONKmXo3dst+3BJFx5tAU68Z29ttgRHwPXKIaSoNumGqp+UEKZ5/GpKaHTJ/5q+CdkG86FL18vzwSO+FKJtQ2CdqnRKvPAfggH5tGIfbwbQvySfzRXp77H7+fK3lj3nJhcgQpWvJ0QvBryCaQImV1r6G5meWKXqSgdezQNExIBV7METjJ2UuxUmcgvhp7JqVY7ICzoGNeUpm0WPjXHmuZWB8TXDr84gIlF/ioVT2Nn8RKmZVIzCSob9PiGA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6b1W-00054r-Ji for bug-gnu-emacs@gnu.org; Thu, 31 Oct 2024 15:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: joakim@verona.se Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Oct 2024 19:40: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.173040357919478 (code B ref 74134); Thu, 31 Oct 2024 19:40:02 +0000 Original-Received: (at 74134) by debbugs.gnu.org; 31 Oct 2024 19:39:39 +0000 Original-Received: from localhost ([127.0.0.1]:43897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6b18-000546-UZ for submit@debbugs.gnu.org; Thu, 31 Oct 2024 15:39:39 -0400 Original-Received: from smtp.outgoing.loopia.se ([93.188.3.37]:13484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6b17-00053u-Gx for 74134@debbugs.gnu.org; Thu, 31 Oct 2024 15:39:38 -0400 Original-Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 3610014AD6D for <74134@debbugs.gnu.org>; Thu, 31 Oct 2024 20:39:31 +0100 (CET) Original-Received: from s980.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 1D91214B51A; Thu, 31 Oct 2024 20:39:31 +0100 (CET) Original-Received: from s898.loopia.se (unknown [172.22.191.6]) by s980.loopia.se (Postfix) with ESMTP id 1BA5022015FC; Thu, 31 Oct 2024 20:39:31 +0100 (CET) X-Virus-Scanned: amavisd-new at amavis.loopia.se Authentication-Results: s898.loopia.se (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=verona.se Original-Received: from s981.loopia.se ([172.22.191.5]) by s898.loopia.se (s898.loopia.se [172.22.190.17]) (amavisd-new, port 10024) with UTF8LMTP id cbxm19rZbt6b; Thu, 31 Oct 2024 20:39:29 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: smtpuser@verona.se X-Loopia-Originating-IP: 193.234.148.196 Original-Received: from tanaka.verona.se (unknown [193.234.148.196]) (Authenticated sender: smtpuser@verona.se) by s981.loopia.se (Postfix) with ESMTPSA id 8E59F22B17AF; Thu, 31 Oct 2024 20:39:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verona.se; s=loopiadkim1720028670; t=1730403569; bh=5xu83oB9kLz2CGd787DuYww5Rx1QhZAVSHVZKqlWUJU=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=gwTYWKfQ2in8AmUb/dDBUH1ZfWUqKexgmcpPXVudisT85p5wTsKOGFJSG6GJqoMP7 /pyvoWdoT7Ult1GNb7Z5S+vUSFfMke8rDQxA8B61FkAPUx6IfA15wIzW5kQB4bNI7H IqERE6gmPl7PnGXgk3F2Q9SxK8Wo3iEeH1KGf8t8bWXplDTpDsdAiW6jMB7hpJjnBa 3/ejAwahfQKpde49or3WPXxJNoQxWfkT89pwxazm4Cc8WiDyWox5VoRXNbm69DYBXb Wz0pLtLYivizV7gQPt3snXixQyp1FRx6SDvV823dFjgWFuZk5TVmtMAcAOuXG+c5Qe /gQQWOnlKXV9g== In-Reply-To: <867c9o2vfm.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 31 Oct 2024 16:34:05 +0200") 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:294636 Archived-At: Eli Zaretskii writes: >> From: joakim@verona.se >> Date: Thu, 31 Oct 2024 13:19:40 +0100 >> >> >> I would like to be able to enter unicode chars the same way you do in >> other applications under wayland or x11, using control shift u + 4 hex >> chars ret. >> >> In emacs-pgtk it seems like c-s-u tries to do this, because a little U >> with underscore appears, same as in firefox, but then you cant type the >> hex code. >> >> In emacs-gtk-x11, c-s-u works as advertized in the emacs manual at >> least, it runs universal-argument. >> >> I would prefer it if c-s-u could be configuered to enter unicode same as >> in other applications, if possible. > > 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. -- Joakim Verona joakim@verona.se