From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: despen@verizon.net Newsgroups: gmane.emacs.help Subject: Re: F2 Date: Tue, 01 Mar 2011 15:05:44 -0500 Organization: A noiseless patient Spider Message-ID: References: <577f8a29-95e7-4168-abb6-0e2b1820bda1@r4g2000prm.googlegroups.com> <87d3mb1fdp.fsf@puma.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1299012444 26623 80.91.229.12 (1 Mar 2011 20:47:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 20:47:24 +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 21:47:17 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 1PuWTM-0004VW-AI for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 21:47:17 +0100 Original-Received: from localhost ([127.0.0.1]:54126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuWN4-00056c-AS for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 15:40:38 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Injection-Info: mx03.eternal-september.org; posting-host="jHG/q4CDuHQ12inYDCpZIQ"; logging-data="16370"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dDXKUFD8Dttj9jfMegQ6tQ/d1MSMMFMQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:ZCs5knG65Vy5P8bbs/C9b+h45FU= sha1:fBY8iNp/cJx/BnVI6/Yqm/2YFBY= Original-Xref: usenet.stanford.edu gnu.emacs.help:185504 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:79652 Archived-At: TheFlyingDutchman writes: >> >> Note that you can see if a key is 'free' by using C-h b to list all >> current key bindings. >> >> If you find, after defining a key using either define-key global-map or >> global-set-key, that the key doesn't seem to work, it is likely that >> your global key binding is being over shadowed by a local key binding. >> Using C-h b can help to show what maybe going on.  It is important to >> remember that key maps work in aa sort of hierarchy and that global >> definitions can be overridden (including cleared) by local key maps. > > Yes, thanks, that appears to be my problem. I am editing an html file > and I see bindings for F2 as: > > > `2C-mode' Minor Mode Bindings: > > key binding > --- ------- > > C-x Prefix Command > Prefix Command > > RET 2C-newline > 1 2C-merge > d 2C-dissociate > o 2C-associated-buffer > { 2C-shrink-window-horizontally > | 2C-toggle-autoscroll > } 2C-enlarge-window-horizontally > > > In the *scratch* buffer, the global binding I have set for F2 shows > up, which I guess is why I thought the problem had disappeared (and > later returned). The key works in *scratch* as I want but not in the > html file buffer. My F2 key in an HTML buffer continues to try to find the next error. Maybe you are using a different HTML mode? Anyway, find the keymap the HTML buffer is using and change that. It's a bit confusing, Emacs has these commands that change GLOBAL things, but that doesn't change GLOBAL behavior. The global bindings really just set defaults.