From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: F2 Date: Wed, 2 Mar 2011 14:43:15 -0800 Message-ID: References: <577f8a29-95e7-4168-abb6-0e2b1820bda1@r4g2000prm.googlegroups.com> <87d3mb1fdp.fsf@puma.rapttech.com.au> <3fd56383-ccea-439e-9604-83559decd153@z27g2000prz.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 1299105874 24864 80.91.229.12 (2 Mar 2011 22:44:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 22:44:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 02 23:44:30 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 1PuumR-0002Mo-Iz for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 23:44:30 +0100 Original-Received: from localhost ([127.0.0.1]:47306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuumO-00063c-GV for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Mar 2011 17:44:24 -0500 Original-Received: from [140.186.70.92] (port=53584 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuulZ-0005w1-2l for help-gnu-emacs@gnu.org; Wed, 02 Mar 2011 17:43:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuulN-0006VS-Th for help-gnu-emacs@gnu.org; Wed, 02 Mar 2011 17:43:22 -0500 Original-Received: from p3plsmtpa07-02.prod.phx3.secureserver.net ([173.201.192.231]:48925) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PuulN-0006U5-Jj for help-gnu-emacs@gnu.org; Wed, 02 Mar 2011 17:43:21 -0500 Original-Received: (qmail 6435 invoked from network); 2 Mar 2011 22:43:17 -0000 Original-Received: from unknown (209.85.161.41) by p3plsmtpa07-02.prod.phx3.secureserver.net (173.201.192.231) with ESMTP; 02 Mar 2011 22:43:17 -0000 Original-Received: by fxm5 with SMTP id 5so629474fxm.0 for ; Wed, 02 Mar 2011 14:43:15 -0800 (PST) Original-Received: by 10.223.83.6 with SMTP id d6mr572796fal.95.1299105795856; Wed, 02 Mar 2011 14:43:15 -0800 (PST) Original-Received: by 10.223.97.71 with HTTP; Wed, 2 Mar 2011 14:43:15 -0800 (PST) In-Reply-To: <3fd56383-ccea-439e-9604-83559decd153@z27g2000prz.googlegroups.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 173.201.192.231 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:79712 Archived-At: On 3/1/11, TheFlyingDutchman wrote: > On Mar 1, 12:35 pm, PJ Weisberg wrote: >> On 3/1/11, TheFlyingDutchman wrote: >> >> > Yes, thanks, that appears to be my problem. I am editing an html file >> > and I see bindings for F2 as: >> >> In general something like this should get rid of any local binding you >> don't want to override your global binding: >> >> (define-key 'foo-mode-map "key" nil) >> >> -PJ > > How would I determine the value of "foo-mode-map" to use. I tried > 'html-mode and 'html-mode-map and 'c2-mode and 'c2-mode-map and define- > key puts up a *Backtrace* window -> Debugger entered--Lisp error: > (wrong-type-argument keymapp html-mode-map) > I was hoping someone more knowledgable would pipe up with a better answer, but here's my suggestion: The variable "major-mode" has the name of the current major mode, and "minor-mode-list" has all possible minor modes. A minor mode is active if a variable with that name is defined and non-nill. The map name should be the name of one of these modes with "-map" at the end of it. You might have to guess which one is binding the key you don't like. -PJ