From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#43830: keyboard layout handling incompatible with rest of the OS Date: Wed, 07 Oct 2020 11:16:12 +0300 Organization: LINKOV.NET Message-ID: <87y2kisawy.fsf@mail.linkov.net> References: <87h7r78a5y.fsf@mail.linkov.net> <87imbn2iwm.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4847"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 43830@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 07 10:44:31 2020 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 1kQ53n-0001B4-O9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Oct 2020 10:44:31 +0200 Original-Received: from localhost ([::1]:40884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQ53m-0008Uz-If for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Oct 2020 04:44:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQ53L-0008Th-O7 for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2020 04:44:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQ53L-0002e3-E4 for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2020 04:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQ53L-0000Bj-Ct for bug-gnu-emacs@gnu.org; Wed, 07 Oct 2020 04:44:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Oct 2020 08:44:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43830 X-GNU-PR-Package: emacs Original-Received: via spool by 43830-submit@debbugs.gnu.org id=B43830.1602060210649 (code B ref 43830); Wed, 07 Oct 2020 08:44:03 +0000 Original-Received: (at 43830) by debbugs.gnu.org; 7 Oct 2020 08:43:30 +0000 Original-Received: from localhost ([127.0.0.1]:55195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ52o-0000AO-0N for submit@debbugs.gnu.org; Wed, 07 Oct 2020 04:43:30 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ52l-00009y-LI for 43830@debbugs.gnu.org; Wed, 07 Oct 2020 04:43:28 -0400 X-Originating-IP: 91.129.102.160 Original-Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 0F232E0012; Wed, 7 Oct 2020 08:43:19 +0000 (UTC) In-Reply-To: (Paul Pogonyshev's message of "Tue, 6 Oct 2020 23:05:20 +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" Xref: news.gmane.io gmane.emacs.bugs:190001 Archived-At: >> When your X xkb layout has some differences from an Emacs input method, >> you need to adjust these mismatched keys, but this is not a big problem. > > It doesn't. With switching Emacs input methods between English and Russian > I also get English '/' == Russian '.'. And so C-. in Russian input method > works > as C-/ in English, because it's the same physical key. > > Also, the same goes for many S-M-[digit] combinations, because characters > on the digit row are often different in Russian layout. For example, S-M-6 > in > English layout translates to M-^, `delete-indentation', but in Russian > S-M-6 > becomes M-:, `eval-expression'. And so on. All these problems are because of mismatch between your X layout and your Emacs input method. Emacs doesn't know the X layout, so you need to define it in Emacs by adapting an existing input method, or defining different keys manually. > So, it is a good workaround that *mostly* works. But it doesn't solve the > underlying issue. Which was successfully solved by other applications tens > of years ago. We already discussed this 10 years ago, and the conclusion was that it would require too fundamental changes in how Emacs processes keystrokes. If now you have new ideas about how this would be possible to implement by keeping backward-compatibility of the existing design, patches that demonstrate the ideas are welcome.