From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: What are the numbers on car of keymaps Date: Mon, 16 Jul 2012 13:07:55 +0200 Organization: Informatimago Message-ID: <87txx83qwk.fsf@kuiper.lan.informatimago.com> References: <5002E857.2090100@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1342436908 25918 80.91.229.3 (16 Jul 2012 11:08:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2012 11:08:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 16 13:08:28 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 1SqjAA-0003c6-HR for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jul 2012 13:08:26 +0200 Original-Received: from localhost ([::1]:36772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqjA9-0000gL-NX for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jul 2012 07:08:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqj9t-0000QN-4T for help-gnu-emacs@gnu.org; Mon, 16 Jul 2012 07:08:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sqj9r-0000oW-Jz for help-gnu-emacs@gnu.org; Mon, 16 Jul 2012 07:08:09 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:46539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqj9r-0000ns-Cv for help-gnu-emacs@gnu.org; Mon, 16 Jul 2012 07:08:07 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Sqj9q-0003CM-N8 for help-gnu-emacs@gnu.org; Mon, 16 Jul 2012 13:08:06 +0200 Original-Received: from 81.202.16.46.dyn.user.ono.com ([81.202.16.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Jul 2012 13:08:06 +0200 Original-Received: from pjb by 81.202.16.46.dyn.user.ono.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Jul 2012 13:08:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 81.202.16.46.dyn.user.ono.com Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:OGExNTJhN2QwNGRiMjM2MjkxZjdkMzQ3OTAwOTZjYmFjMzZmNjhjNQ== 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:85878 Archived-At: Daniel Hilst writes: > I, yet, do not understand keymaps... What are the number on car of > keymaps and how do they map to keys > > Here is a sample http://pastebin.com/eAAytqx9 In emacs lisp, characters are integers. So a key that correspond to a character will be represented by this character (ie. the code of this character). But other keys, or key chords will be represented by bigger integers, that are not the code of any character. You can find them with kbd or edmacro-parse-keys. (kbd "C-M-a") --> [134217729] -- __Pascal Bourguignon__ http://www.informatimago.com/ A bad day in () is better than a good day in {}.