From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: How does the Meta/Alt-Key work behind the scenes? Date: Wed, 31 Oct 2012 20:32:18 +0100 Message-ID: <87txta30al.fsf@googlemail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351711960 25390 80.91.229.3 (31 Oct 2012 19:32:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2012 19:32:40 +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 20:32:47 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 1TTe1v-0008Ty-IB for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Oct 2012 20:32:47 +0100 Original-Received: from localhost ([::1]:44797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTe1n-0005jH-5I for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Oct 2012 15:32:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTe1h-0005j1-V2 for help-gnu-emacs@gnu.org; Wed, 31 Oct 2012 15:32:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTe1e-0003cK-Iq for help-gnu-emacs@gnu.org; Wed, 31 Oct 2012 15:32:33 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTe1e-0003c5-C2 for help-gnu-emacs@gnu.org; Wed, 31 Oct 2012 15:32:30 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TTe1i-0008Ey-NN for help-gnu-emacs@gnu.org; Wed, 31 Oct 2012 20:32:34 +0100 Original-Received: from g231108083.adsl.alicedsl.de ([92.231.108.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Oct 2012 20:32:34 +0100 Original-Received: from tjolitz by g231108083.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Oct 2012 20:32:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231108083.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:PGr0sOEGMrxRxZHiovpEYXJ9x0k= 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:87511 Archived-At: Stefan Monnier writes: > 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. Yes, I see. > 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). How much work there is involved just to enable a few apparently inoffensive key combinations... Thank you, the /term/xterm.el file is a great source of information for me. And its nice to find out a bit about how Emacs works under the hood. -- cheers, Thorsten