From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: Current mode command discovery Date: Sat, 20 Feb 2021 17:09:57 -0500 Message-ID: References: <87v9aubm96.fsf@gnus.org> <87r1laomak.fsf@gnus.org> <83pn0uzubj.fsf@gnu.org> <87im6molnq.fsf@gnus.org> <83o8geztvt.fsf@gnu.org> <871rdar6i3.fsf@igel.home> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14753"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, schwab@linux-m68k.org, larsi@gnus.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 20 23:11:11 2021 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 1lDaT0-0003io-PV for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 23:11:10 +0100 Original-Received: from localhost ([::1]:33712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDaSz-0004oG-R3 for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 17:11:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDaRr-0003tW-9X for emacs-devel@gnu.org; Sat, 20 Feb 2021 17:09:59 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52113) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDaRq-0005AG-Bl; Sat, 20 Feb 2021 17:09:58 -0500 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1lDaRp-0001Nw-FK; Sat, 20 Feb 2021 17:09:57 -0500 In-Reply-To: (message from Stefan Monnier on Sat, 20 Feb 2021 16:10:16 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:265361 Archived-At: > > Should be noted that M-S-x is tricky to get working on console > M-X works on any terminal. > M-S-x does not work in _any_ terminal, Indeed the treatment of "shift" in input events is surprisingly delicate and messy. We should make sure that both events get mapped to the same command, indeed, regardless of this new keybinding. In the terminals I use hitting "meta + shift + x" sends Emacs "ESC X" which leads Emacs to find the intended command without any trouble. Which terminals have you found which do differently? I've mostly managed to avoided the issue. But the majority of times I've had them is when you connect to a remote system over a serial line using cu or similar dumb program (the termcap to be something dumb / exotic, and vt100 does not work). Various terminal servers (Moxa...) also have had issues in how they handle shift when combined with bucky keys, specially the older ones. This said, I don't think it's very important: `M-X` is bound to a new command whose importance has not been demonstrated yet: maybe it'll prove to be super convenient, and maybe it'll be just one more experiment which didn't pan out. So if it's difficult to access its default binding in some setups, I'm not too worried. Maybe, maybe not -- it was just a data point for someone to consider. (But since everything is some Debian connected to a ANY terminal by Andreas Schwab ltd ... do those support s-x and h-x? ;-)