From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Kalb Newsgroups: gmane.emacs.help Subject: Re: coding esq f11 Date: Thu, 18 Feb 2010 07:21:23 -0500 Organization: Turnabout Message-ID: <87fx4yg2f0.fsf@gmail.com> References: <87k4ucf1v0.fsf@gmail.com.INVALID> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266504371 12786 80.91.229.12 (18 Feb 2010 14:46:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 14:46:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 18 15:46:08 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7dj-0004tf-Jg for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 15:46:03 +0100 Original-Received: from localhost ([127.0.0.1]:46474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni7dj-0006Q7-2Y for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 09:46:03 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Injection-Date: Thu, 18 Feb 2010 12:21:24 +0000 (UTC) Injection-Info: news.motzarella.org; posting-host="Frp2B1I6vw4q5uU9NAnaxw"; logging-data="21097"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Hcsa1Y8J5PjyOUzTlbK6k" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:FOrLIFWTf9yPKUBnwBYOLCJd+ys= sha1:dbRaXdsgMk2DP+O2rPhPhQLpOVE= Original-Xref: news.stanford.edu gnu.emacs.help:176857 X-Mailman-Approved-At: Thu, 18 Feb 2010 09:43:13 -0500 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:71928 Archived-At: >>>>> "Martin" == Martin writes: >> I have a macro that I've named "g" that I invoke with >> alt-f11: >> >> (global-set-key (quote [M-f11]) (quote g)) >> >> I'm trying to get it to work in a terminal (rxvt-unicode) >> that interprets alt-f11 as esc-f11 and I get back >> >> ESQ is undefined >> >> So I'd like to add a global-set-key that binds it to ESQ >> but neither google nor trial-and-error have helped. Martin> define the key interactively Martin> M-x global-set-key RET ESC f11 RET g RET Martin> and grab the correct ELISP line from the prompt buffer Martin> M-x repeat-complex-command RET When I do that I get the following in the prompt buffer: Redo: (repeat-complex-command 1) I'm using GNU Emacs 23.1.1 if that matters. jk