help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: F2


From: PJ Weisberg
Subject: Re: F2
Date: Wed, 2 Mar 2011 14:43:15 -0800

On 3/1/11, TheFlyingDutchman <zzbbaadd@aol.com> wrote:
> On Mar 1, 12:35 pm, PJ Weisberg <p...@irregularexpressions.net> wrote:
>> On 3/1/11, TheFlyingDutchman <zzbba...@aol.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]