unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: PJ Weisberg <pj@irregularexpressions.net>
To: help-gnu-emacs@gnu.org
Subject: Re: F2
Date: Wed, 2 Mar 2011 14:43:15 -0800	[thread overview]
Message-ID: <AANLkTim8tXKnpJ48uOtCsMfCvEa9eguVsZQ7dvAXJ7FO@mail.gmail.com> (raw)
In-Reply-To: <3fd56383-ccea-439e-9604-83559decd153@z27g2000prz.googlegroups.com>

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	other threads:[~2011-03-02 22:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01  2:21 F2 TheFlyingDutchman
2011-03-01  3:16 ` F2 despen
2011-03-01  3:39   ` F2 TheFlyingDutchman
2011-03-01  6:49     ` F2 PJ Weisberg
     [not found]     ` <mailman.1.1298962186.15292.help-gnu-emacs@gnu.org>
2011-03-01  7:14       ` F2 Tim X
2011-03-01 19:18         ` F2 TheFlyingDutchman
2011-03-01 20:05           ` F2 despen
2011-03-01 20:35           ` F2 PJ Weisberg
     [not found]           ` <mailman.8.1299011724.12270.help-gnu-emacs@gnu.org>
2011-03-01 21:18             ` F2 TheFlyingDutchman
2011-03-02 22:43               ` PJ Weisberg [this message]
2011-03-02 22:56                 ` F2 Drew Adams
     [not found]               ` <mailman.0.1299105817.15358.help-gnu-emacs@gnu.org>
2011-03-02 23:51                 ` F2 TheFlyingDutchman
2011-03-03  0:57                   ` F2 Drew Adams
2011-03-03  2:05                     ` F2 PJ Weisberg
2011-03-01  9:31   ` F2 Peter Dyballa
2011-03-01 12:51 ` F2 Sean Sieger
2011-03-01 12:52 ` F2 Sean Sieger
2011-03-01 18:16 ` F2 Glenn Morris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTim8tXKnpJ48uOtCsMfCvEa9eguVsZQ7dvAXJ7FO@mail.gmail.com \
    --to=pj@irregularexpressions.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).