help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-<digit> key bindings not working on console


From: Stefan Monnier
Subject: Re: C-<digit> key bindings not working on console
Date: Thu, 23 Jan 2014 11:57:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> One would be tempted to think that if Emacs knows how to deal with C-
> and M- and S- as modifiers alone or in some combinations it should be
> able to deal with them always.

The byte sequences used for various key-combos in a text-terminal have
evolved in an "organic" way over the years, starting from plain ASCII
(which already includes 32 "key combined with CTRL") but without ever
someone coming and saying "OK, let's scrap this mess and use a regular
encoding".

IOW, C-M-v is not sent as "the encoding of CTRL plus the encoding of
META plus the encoding of `v'", so there's no natural generalization for
C-M-V.

And of course, it's not even clear whether C-M-V should be the same as
C-M-S-v or C-M-v (Emacs decided C-M-V is the same as C-M-v, which are
different from C-M-S-v).  After all, it's not clear if ASCII code
1 should be considered as C-a or C-A or both (Emacs considers C-a is
equal to C-A, which is different from C-S-a).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]