From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#37769: global-set-key wrongly downcases the typed key (e.g. S-tab). Date: Thu, 17 Oct 2019 15:58:44 +0000 Message-ID: <20191017155844.GA4718@ACM> References: <20191015190726.GA6315@ACM> <87tv88kres.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="30076"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: 37769@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 17 18:51:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iL8zd-0007ha-Dg for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2019 18:51:17 +0200 Original-Received: from localhost ([::1]:53264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL8zb-0006kj-KA for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2019 12:51:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34220) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL8B6-0008O2-NO for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 11:59:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL8B4-0003pi-IA for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 11:59:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL8B4-0003pd-ED for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 11:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iL8B4-0000VP-Bt for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 17 Oct 2019 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37769 X-GNU-PR-Package: emacs Original-Received: via spool by 37769-submit@debbugs.gnu.org id=B37769.15713279301919 (code B ref 37769); Thu, 17 Oct 2019 15:59:02 +0000 Original-Received: (at 37769) by debbugs.gnu.org; 17 Oct 2019 15:58:50 +0000 Original-Received: from localhost ([127.0.0.1]:48784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iL8As-0000Ut-6s for submit@debbugs.gnu.org; Thu, 17 Oct 2019 11:58:50 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:15326 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1iL8Aq-0000Uk-I2 for 37769@debbugs.gnu.org; Thu, 17 Oct 2019 11:58:49 -0400 Original-Received: (qmail 90790 invoked by uid 3782); 17 Oct 2019 15:58:46 -0000 Original-Received: from acm.muc.de (p4FE15CD5.dip0.t-ipconnect.de [79.225.92.213]) by colin.muc.de (tmda-ofmipd) with ESMTP; Thu, 17 Oct 2019 17:58:44 +0200 Original-Received: (qmail 4785 invoked by uid 1000); 17 Oct 2019 15:58:44 -0000 Content-Disposition: inline In-Reply-To: <87tv88kres.fsf@gnus.org> X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169597 Archived-At: Hello, Lars. On Thu, Oct 17, 2019 at 05:00:11 +0200, Lars Ingebrigtsen wrote: > Alan Mackenzie writes: > > As a consequence, it is impossible to use M-x global-set-key to bind > > S-tab on a tty where local-function-key-map converts S-tab to [33554441] > > = 2^25 + 9. > [...] > > This fix should also be safe, since it is only in the interactive spec > > part of the function, and thus can only affect interactive use. > > Any objections to me installing this fix on the master branch? > Hm... but you can't use S-tab on a tty, surely? _I_ can, because I've set up my (Linux) tty's keyboard and Emacs to do this. (This according to a scheme written by Kalle Niemitalo about twenty years ago.) > So we're offering to interactively bind a key that can't be used (after > this change)? Or am I misunderstanding something? The same problem applies to any unused keybinding involving an upper case letter. For example, if you tried to bind C-M-S-a on a tty with M-x global-set-key, that function would bind C-M-a instead. This is not good. I can't see see any circumstances where a user would want such a keybinding to be downcased. Nearly all of the time, she will have expressly pressed the shift key. > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no -- Alan Mackenzie (Nuremberg, Germany).