From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.devel Subject: Re: Physical keyboard events Date: Wed, 30 Oct 2024 23:59:17 +0700 Message-ID: References: <86r07z58or.fsf@gnu.org> <86froe6eq3.fsf@gnu.org> <864j4u6bug.fsf@gnu.org> <86v7x94nx3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40856"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 30 18:27:36 2024 Return-path: Envelope-to: ged-emacs-devel@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 1t6CTn-000AQE-Gd for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Oct 2024 18:27:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6CTF-0002IY-MX; Wed, 30 Oct 2024 13:27:01 -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 1t6C2d-0005uQ-8a for emacs-devel@gnu.org; Wed, 30 Oct 2024 12:59:31 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t6C2b-0008ML-NN for emacs-devel@gnu.org; Wed, 30 Oct 2024 12:59:31 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1t6C2Z-0009HL-00 for emacs-devel@gnu.org; Wed, 30 Oct 2024 17:59:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ Content-Language: en-US, ru-RU In-Reply-To: <86v7x94nx3.fsf@gnu.org> Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 30 Oct 2024 13:27:00 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324947 Archived-At: On 30/10/2024 22:21, Eli Zaretskii wrote: >> From: Max Nikulin Date: Wed, 30 Oct 2024 09:56:30 +0700 >> On 30/10/2024 00:46, Eli Zaretskii wrote: >>>> From: Yuri Khan Date: Tue, 29 Oct 2024 23:55:49 +0700 >>>> When I’m switched to a layout where the ‘a’ key produces an ‘ф’ >>>> character, or an ‘α’, or a ち, I’d still want Ctrl+this key to behave >>>> as C-a. >>> >>> Yes, but you want that _only_ for keys with modifiers. Which is not >>> what will happen. Some feature... >> >> Not *for key with modifiers*, but during lookup in keymaps. [...] >> > > That's exactly why I said "with modifiers": that bug report is about > C-s and the likes. By contrast, when the keyboard language is > switched, you do NOT want the s/ы key to generate s instead of ы. Consider "C-s" `isearch-forward' followed by "M-s i" `isearch-toggle-invisible': "C-ы M-ы ш" with bare "ш" should work as "C-s M-s i" but "ш" bound to `self-insert-command' should insert "ш". Taking into account which way some applications are localized, perhaps there are users who rarely switched to a Latin (e.g. US) keyboard layout. E.g. spreadsheets may have translated function names, not to mention accelerator keys. There should be a way to specify whether symbol is from the base (Latin) keyboard layout or from localized one. E.g. "," and some other punctuation characters are jumping. Perhaps it may be achieved by additional virtual modifier: "L-," should be matched against localized layout. However user may have multiple non-Latin layouts configured and GNOME reconfigures XKB on each layout switch to 2 groups: Latin and current one.