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: How does the Meta/Alt-Key work behind the scenes? Date: Wed, 31 Oct 2012 14:00:48 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351706716 9508 80.91.229.3 (31 Oct 2012 18:05:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2012 18:05:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 31 19:05:26 2012 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 1TTcfL-0001AU-Uw for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Oct 2012 19:05:24 +0100 Original-Received: from localhost ([::1]:47688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTcfA-0007L1-5z for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Oct 2012 14:05:12 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Injection-Info: mx04.eternal-september.org; posting-host="9b718dca22ff4598baab0f6e08a1d03d"; logging-data="14963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199uag0VsMmzvb0y3XUz8Bg" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) Cancel-Lock: sha1:yVfkOHMfKI1ePLGaPS7ROEXScYg= sha1:gsXkjAGHlrDAx4CwTFTlZrfU2GM= Original-Xref: usenet.stanford.edu gnu.emacs.help:195179 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:87508 Archived-At: > Maybe I asked to early since further testing revealed that it is not a > general problem but a problem of some keys only: Some control combinations exist in ASCII others don't. Those that don't either don't work or need to be turned by your terminal emulator into some kind of byte sequence, usually using some kind of escaping mechanism. Try: "emacs -nw -Q" and then "C-% C-% C-h l" In the *Help* buffer you'll then see the bytes received by Emacs and you'll notice that C-% is not there. They've been replaced by escape sequences (in my case it looks like "ESC [ 2 7 ; 6 ; 3 7 ~" is the sequence sent by my terminal emulator for C-%). Emacs handles this via the `input-decode-map' to convert this sequence back into its more meaningful "C-%". This map is mostly initialized from the terminfo database (and completed by lisp/term/$TERM.el). Stefan