From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Physical keyboard events Date: Tue, 29 Oct 2024 19:31:02 +0000 Message-ID: References: <3b505bfa-cff2-4e1e-adf0-39467f3eb474@imayhem.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12698"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Cecilio Pardo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 29 20:32:16 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 1t5rwt-0003BG-9j for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Oct 2024 20:32:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5rw0-00086u-7D; Tue, 29 Oct 2024 15:31:20 -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 1t5rvx-00086N-4X for emacs-devel@gnu.org; Tue, 29 Oct 2024 15:31:17 -0400 Original-Received: from mail.muc.de ([193.149.48.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5rvu-000536-1a for emacs-devel@gnu.org; Tue, 29 Oct 2024 15:31:16 -0400 Original-Received: (qmail 80208 invoked by uid 3782); 29 Oct 2024 20:31:04 +0100 Original-Received: from muc.de (p4fe1578b.dip0.t-ipconnect.de [79.225.87.139]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 29 Oct 2024 20:31:03 +0100 Original-Received: (qmail 24832 invoked by uid 1000); 29 Oct 2024 19:31:02 -0000 Content-Disposition: inline In-Reply-To: <3b505bfa-cff2-4e1e-adf0-39467f3eb474@imayhem.com> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.3; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:324932 Archived-At: Hello, Cecilio. On Tue, Oct 29, 2024 at 19:20:43 +0100, Cecilio Pardo wrote: > On 29/10/2024 18:13, Alan Mackenzie wrote: > > I envisage these leading to trouble. > > For example, my KVM box intercepts a sufficiently rapid double press on > > (either) Control key, and then expects a CR to switch computers, or ESC > > to cancel (and maybe there are other keys I don't know about). > > I quite frequently start typing a command by pressing the Control key, > > then change my mind and let it go again. I might sometimes hold that > > key while trying to decide what I want to do. The same surely applies > > to Meta as well. > The way I hope to implement it, there will be no interference if you > don't activate it. Many editors such as VSCode and the ones from > JetBrains use this, and people appreciate it. Somebody not activating it will not have access to the commands which other people assign to these new key combinations. That could be a problem. > > To make this work on a tty would involve fancy work on the keyboard > > layout if it's even possible. On a Linux console, it might even need > > enhancements to the kernel. > > I'm not sure binding our shift keys to commands, or even prefixes, is a > > good idea. > I was planning for GUI systems alone. That's a very un-Emacs like thing to do. Apart from specifically graphicky things, the convention is that features are available regardless of whether on a GUI or a TUI. For this reason, bindings like C- are frowned upon, although they are used in some places (hello, Org!). > Thanks. -- Alan Mackenzie (Nuremberg, Germany).