all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 37769@debbugs.gnu.org
Subject: bug#37769: global-set-key wrongly downcases the typed key (e.g. S-tab).
Date: Thu, 17 Oct 2019 15:58:44 +0000	[thread overview]
Message-ID: <20191017155844.GA4718@ACM> (raw)
In-Reply-To: <87tv88kres.fsf@gnus.org>

Hello, Lars.

On Thu, Oct 17, 2019 at 05:00:11 +0200, Lars Ingebrigtsen wrote:
> Alan Mackenzie <acm@muc.de> 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).





  parent reply	other threads:[~2019-10-17 15:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 19:07 bug#37769: global-set-key wrongly downcases the typed key (e.g. S-tab) Alan Mackenzie
2019-10-17  3:00 ` Lars Ingebrigtsen
2019-10-17  8:16   ` Eli Zaretskii
2019-10-17 15:58   ` Alan Mackenzie [this message]
2019-10-18  3:09     ` Lars Ingebrigtsen
2019-10-18  7:11       ` Eli Zaretskii
2019-10-19  8:02         ` Lars Ingebrigtsen
2019-10-19  8:53           ` Andreas Schwab
2019-10-19  9:03             ` Lars Ingebrigtsen
2019-10-19  9:36           ` Eli Zaretskii
2019-10-19 18:26             ` Alan Mackenzie
2019-10-17  9:17 ` Andreas Schwab
2019-10-17 16:00   ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191017155844.GA4718@ACM \
    --to=acm@muc.de \
    --cc=37769@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.