From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ian Crowther" Newsgroups: gmane.emacs.help Subject: Re: Binding meta and arrow Date: Sun, 15 May 2005 00:51:41 +0100 Message-ID: References: <17d3f0504b41d52545c24a81ad9af19e@Web.DE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1116115574 28062 80.91.229.2 (15 May 2005 00:06:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 May 2005 00:06:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 15 02:06:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DX6dq-0007TG-3K for geh-help-gnu-emacs@m.gmane.org; Sun, 15 May 2005 02:05:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DX6av-0008Sx-BT for geh-help-gnu-emacs@m.gmane.org; Sat, 14 May 2005 20:02:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DX6Uq-0006Nt-UN for help-gnu-emacs@gnu.org; Sat, 14 May 2005 19:56:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DX6Un-0006M7-Oh for help-gnu-emacs@gnu.org; Sat, 14 May 2005 19:56:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DX6Um-0006Ja-M9 for help-gnu-emacs@gnu.org; Sat, 14 May 2005 19:56:37 -0400 Original-Received: from [64.4.61.20] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DX6YC-00059W-MG for help-gnu-emacs@gnu.org; Sat, 14 May 2005 20:00:08 -0400 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 14 May 2005 16:51:41 -0700 Original-Received: from 64.4.61.207 by by102fd.bay102.hotmail.msn.com with HTTP; Sat, 14 May 2005 23:51:41 GMT X-Originating-IP: [64.4.61.207] X-Originating-Email: [i_crowther@hotmail.com] X-Sender: i_crowther@hotmail.com In-Reply-To: <17d3f0504b41d52545c24a81ad9af19e@Web.DE> Original-To: Peter_Dyballa@Web.DE X-OriginalArrivalTime: 14 May 2005 23:51:41.0378 (UTC) FILETIME=[E0495220:01C558DF] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26603 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26603 >Just use a name of a function instead of the string. For example: > (global-set-key [M-left] 'beginning-of-line) >(The way you used global-set-key is meant for macros: the thing inside >quotes should be a sequence of one or more keys, it cannot be an >arbitrary string, and it certainly isn't displayed in the echo area, >it's fed back to the Emacs keyboard input.) Well thanks, but I have exactly the same problem. If I do: (global-set-key [left] 'beginning-of-line) it does exactly what I expect. I press left and it goes to the line start. The following still don't work: (global-set-key [M-left] 'beginning-of-line) (global-set-key [A-left] 'beginning-of-line) (global-set-key [alt left] 'beginning-of-line) (global-set-key [meta left] 'beginning-of-line) After evaluating all of them I still get "ESC is undefined" if I do "C-h c M-left". Thanks for correcting my fumbled attempt at lisp, but I'm still stuck. Anybody got any other ideas?