unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "David Vanderschel" <DJV1@Austin.RR.com>
Subject: Re: elisp mouse programming problems
Date: Wed, 20 Aug 2003 22:24:48 -0500	[thread overview]
Message-ID: <uPicnVQv8pEeptmiRTvUqA@texas.net> (raw)
In-Reply-To: yoijy8xnspkq.fsf@frealaf.dd.chalmers.se

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1528 bytes --]

"Johan Bockgård" <bojohan+news@dd.chalmers.se> wrote in message
news:yoijy8xnspkq.fsf@frealaf.dd.chalmers.se...
> "David Vanderschel" <DJV1@Austin.RR.com> writes:

> > In one failure case, we are talking about
> > C-down-mouse-1. ...

> I think this is relevant, particularly the second paragraph:

> (info "(elisp)Active Keymaps")

>     ...

>     Normally, Emacs first searches for the key in the minor mode maps,
>     in the order specified by `minor-mode-map-alist'; if they do not
>     supply a binding for the key, Emacs searches the local map; if
>     that too has no binding, Emacs then searches the global map.
>     However, if `overriding-local-map' is non-`nil', Emacs searches
>     that map first, before the global map.

Yes, it is very relevant.  I am surprised by the fact
that minor mode maps can override a major mode map.
My problem was that the msb minor mode was enabled and
I had to disable that.  In general, I do not know how
a program like mine would know which of many unknown
possibilities for minor modes might be interfering.  I
would like for other folks to be able to use the
program, but I don't know what minor modes they may
have enabled by default.  Furthermore, it might be
rude to just start arbitrarily disabling _all_ minor
modes on the grounds that they _might_ interfere.

Is there a way for a major mode's binding to take
precedence over any minor modes?  The
overriding-local-map is not overriding enough unless
the above documentation is stated incorrectly.

Regards,
  David V.

  reply	other threads:[~2003-08-21  3:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-20  3:17 elisp mouse programming problems David Vanderschel
2003-08-20 10:34 ` Alex Schroeder
2003-08-21  1:46   ` David Vanderschel
2003-08-21  2:37     ` Johan Bockgård
2003-08-21  3:24       ` David Vanderschel [this message]
2003-08-21 17:44     ` Kevin Rodgers
2003-08-22  0:50       ` David Vanderschel
2003-08-22 15:24         ` Kevin Rodgers
2003-08-20 11:40 ` Eli Zaretskii
     [not found] ` <mailman.542.1061395718.29551.help-gnu-emacs@gnu.org>
2003-08-21  3:12   ` David Vanderschel
2003-08-21 12:19     ` Alex Schroeder
2003-08-22  0:34       ` David Vanderschel
2003-08-22 15:20         ` Kevin Rodgers
2003-08-27 17:45         ` Kai Großjohann
2003-08-27 20:27           ` Kai Großjohann

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=uPicnVQv8pEeptmiRTvUqA@texas.net \
    --to=djv1@austin.rr.com \
    /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).