From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tobias Verbeke Newsgroups: gmane.emacs.help Subject: Re: numeric keypad buttons Date: Tue, 29 Jul 2003 19:08:24 +0200 Organization: -= Belgacom Usenet Service =- Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20030729190824.2f217b27.tobias_verbeke@skynet.be> References: <20030724224909.0f2725e5.tobias_verbeke@skynet.be> <3F21BE5D.5070005@yahoo.com> <20030726225655.611cd33c.tobias_verbeke@skynet.be> <3F255D5D.1090804@yahoo.com> <20030729152734.6a663ec3.tobias_verbeke@skynet.be> <84y8yhxwrn.fsf@slowfox.is.informatik.uni-duisburg.de> <20030729162357.1d127f62.tobias_verbeke@skynet.be> <20030729163940.0231a290.tobias_verbeke@skynet.be> <84brvd9uil.fsf@slowfox.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1059498377 15688 80.91.224.249 (29 Jul 2003 17:06:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Jul 2003 17:06:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 29 19:06:12 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19hXvQ-00044Y-00 for ; Tue, 29 Jul 2003 19:06:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19hXv9-0002YH-Ql for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Jul 2003 13:05:55 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!louie!tlk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Sylpheed version 0.9.2 (GTK+ 1.2.10; i686-pc-linux-gnu) Original-Lines: 41 Original-NNTP-Posting-Host: 81.240.113.225 Original-X-Trace: 1059498153 reader1.news.skynet.be 7151 81.240.113.225:33010 Original-X-Complaints-To: usenet-abuse@skynet.be Original-Xref: shelby.stanford.edu gnu.emacs.help:115536 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:11454 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11454 > > (global-set-key (kbd "\eOo") "\57") > > What does this do? I don't understand the \57 notation. I found this document: http://tiny-tools.sourceforge.net/emacs-keys.html it said somewhere: * Keys can be written by their ASCII code, using a backslash followed by up to six octal digits. This is the only way to represent keys with codes above \377. So I looked at this ascii table: http://web.cs.mun.ca/~michael/c/ascii-table.html and removed the zero's out of the octal notation (57 <- 0057) of the '/'-character (as it didn't work with the zero's in it: this gave me the '7'-character). And now the '/'-key on the numeric keypad produces a '/' as I wanted. So now for every button (/, *, -, +, Enter) there is an isolated line of the type: (global-set-key (kbd "\eOo") "\57") in .emacs I don't understand fully what I did and doubt I ever will, but it seemed to work. Cheers, Tobias