From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: F2 Date: Mon, 28 Feb 2011 19:39:00 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <577f8a29-95e7-4168-abb6-0e2b1820bda1@r4g2000prm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1298954450 3384 80.91.229.12 (1 Mar 2011 04:40:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 04:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 05:40:46 2011 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 1PuHO8-0003os-Tf for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 05:40:45 +0100 Original-Received: from localhost ([127.0.0.1]:51963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuHO7-0001Av-Ih for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 23:40:43 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!o21g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 75.36.149.131 Original-X-Trace: posting.google.com 1298950876 13133 127.0.0.1 (1 Mar 2011 03:41:16 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 1 Mar 2011 03:41:16 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o21g2000prh.googlegroups.com; posting-host=75.36.149.131; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; AskTbBT5/5.9.1.14019),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:185451 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:79608 Archived-At: > I don't know that you have to get rid of anything. > This works as an override for me: > > (define-key global-map [(f2)] 'next-error) > > Emacs 23.2.1. Thanks for the reply. I was using (global-set-key (kbd "") 'my-elisp-command) I don't know if that works differently than define-key. Anyway, I used your command and it worked as desired - pressing F2 executed "next-error". Then I used global-set-key to set F2 to "previous-error" and it also worked. Then I executed the initial command I was using and couldn't get to work with 1 F2 press and it also worked??? Oh well, case solved, at least for this instantiation of Emacs (also 23.2.1).