[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37769: global-set-key wrongly downcases the typed key (e.g. S-tab).
From: |
Lars Ingebrigtsen |
Subject: |
bug#37769: global-set-key wrongly downcases the typed key (e.g. S-tab). |
Date: |
Sat, 19 Oct 2019 10:02:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> I admit I don't understand what both of you think is not good or make
> no sense. Emacs has been downcasing keys since day one, if the upper
> case has no binding. The reason is to allow the user not to have to
> release the Shift key too fast when typing fast.
The complaint is that the interactive spec of global-set-key downcases
whatever the user enters.
M-x global-set-key RET C-S-o
will bind C-o, not C-S-o. (Well, the case in question was about TAB,
aka C-i, but...) This is surprising, and should be fixed, I think (and
the patch suggested fixes this).
I entered the discussion because I thought that this would be a bad
change on ttys, because Emacs would then go ahead and bind the `C-S-o'
key -- which then couldn't be used by the user, because there's no way
to use shifted control keys under a tty. At least I don't think so?
If this is the case, I think the original patch should be applied, but
if we're running in an environment where `C-S-o' can't be entered (i.e.,
not on a gui), then the command should error out or give a warning, at
least.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug#37769: global-set-key wrongly downcases the typed key (e.g. S-tab)., Andreas Schwab, 2019/10/17