all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: C-<digit> key bindings not working on console
Date: Thu, 23 Jan 2014 11:57:06 -0500	[thread overview]
Message-ID: <jwvlhy6tziq.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 87fvoe1wrw.fsf@gmail.com

> 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	other threads:[~2014-01-23 16:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23 10:50 C-<digit> key bindings not working on console Thorsten Jolitz
2014-01-23 11:00 ` Thorsten Jolitz
2014-01-23 12:48   ` Tassilo Horn
2014-01-23 13:00     ` Thorsten Jolitz
2014-01-23 13:39       ` Tassilo Horn
2014-01-23 14:17 ` Stefan Monnier
2014-01-23 16:35   ` Thorsten Jolitz
2014-01-23 16:57     ` Stefan Monnier [this message]
2014-01-27  9:18       ` Thorsten Jolitz
     [not found]   ` <mailman.12639.1390494920.10748.help-gnu-emacs@gnu.org>
2014-01-23 22:08     ` Emanuel Berg
2014-01-27 10:10       ` Thorsten Jolitz
     [not found]       ` <mailman.12925.1390817447.10748.help-gnu-emacs@gnu.org>
2014-01-27 16:50         ` Emanuel Berg
     [not found] <mailman.12620.1390474210.10748.help-gnu-emacs@gnu.org>
2014-01-27  8:59 ` Javier
2014-01-27 10:25   ` Thorsten Jolitz

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=jwvlhy6tziq.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@gnu.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.