all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Clearing keybindings when redefining a minor mode map
@ 2010-12-27  7:19 Leo Alekseyev
  0 siblings, 0 replies; 3+ messages in thread
From: Leo Alekseyev @ 2010-12-27  7:19 UTC (permalink / raw)
  To: help-gnu-emacs

Greetings all,

Suppose I have a keybinding that is shared by two minor modes (mode A
and mode B).  I want to accomplish the following: if both modes A and B are
active, then the keybinding should only invoke mode A's command.

My original approach was to insert code in mode B's commands that checks if
mode A is active, and if so, it creates a new keymap for mode B, with
conflicts removed.  Unfortunately, even though the new map is created
properly, it
doesn't remove the old keybindings that are in conflict with mode A.  Is
there an easy way to clear those keybindings?

--Leo



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-28  2:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6.1293434384.29764.help-gnu-emacs@gnu.org>
2010-12-27 13:58 ` Clearing keybindings when redefining a minor mode map Elena
2010-12-28  2:57 ` Stefan Monnier
2010-12-27  7:19 Leo Alekseyev

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.