From: "Drew Adams" <drew.adams@oracle.com>
Subject: RE: minor mode map question
Date: Sun, 31 Dec 2006 18:15:26 -0800 [thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMGEPECNAA.drew.adams@oracle.com> (raw)
In-Reply-To: <BDEIJAFNGDOAGCJIPKPBGEJACBAA.drew.adams@oracle.com>
Got no response to my previous email on this, but I figured things out.
FYI - The problem was that although the minor-mode map was updated each time
the mode was entered, this was not reflected in `minor-mode-map-alist' -
that alist continued to have the old keymap. The solution was to delete and
re-create the minor-mode entry in `minor-mode-map-alist' each time the mode
is entered. That ensures that `substitute-key-definition' respects the
current global map, and that is reflected in the minor-mode map.
I wish that you could provide, as the cdr of an entry to
`minor-mode-map-alist', an expression to be evaled to a keymap value, or
perhaps a function that is called to return a keymap value. That would
obviate needing to delete and re-add an entry, just to ensure that the alist
is up-to-date whenever the keymap changes. It seems a bit weird to me that
`minor-mode-map-alist' is so static, given how dynamic Emacs is otherwise.
Why not use a keymap-valued variable or keymap-returning function here,
instead of an actual keymap?
next prev parent reply other threads:[~2007-01-01 2:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-28 7:00 minor mode map question Drew Adams
2007-01-01 2:15 ` Drew Adams [this message]
2007-01-02 3:08 ` Richard Stallman
2007-02-26 18:04 ` Johan Bockgård
2007-02-26 20:09 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EIENLHALHGIMHGDOLMIMGEPECNAA.drew.adams@oracle.com \
--to=drew.adams@oracle.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.