From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: C- key bindings not working on console Date: Thu, 23 Jan 2014 11:57:06 -0500 Message-ID: References: <87mwin0y6t.fsf@gmail.com> <87fvoe1wrw.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390496263 16676 80.91.229.3 (23 Jan 2014 16:57:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2014 16:57:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 23 17:57:47 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W6Nb8-000385-B1 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 17:57:46 +0100 Original-Received: from localhost ([::1]:42211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Nb8-0003ir-2P for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 11:57:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Naq-0003fe-Ox for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 11:57:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6Naj-0004Jh-GL for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 11:57:28 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:34173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Nai-0004JR-Vy for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 11:57:21 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W6Naf-0002sg-1B for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 17:57:17 +0100 Original-Received: from 184.175.17.192 ([184.175.17.192]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jan 2014 17:57:17 +0100 Original-Received: from monnier by 184.175.17.192 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Jan 2014 17:57:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 184.175.17.192 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:WRL80o9JbL9J7G0zB5NZbKvwVuM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95580 Archived-At: > 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