emacs-devel
[Top][All Lists]
Advanced

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

Re: Function for deleting a key binding in a sparse keymap


From: Richard M. Stallman
Subject: Re: Function for deleting a key binding in a sparse keymap
Date: Wed, 07 Dec 2005 12:06:09 -0500

    When starting a minor mode I read some key definitions outside that 
    mode. If they have a certain value I define new values for those keys in 
    that minor mode.

Do you mean that you set them in the minor mode keymap?

    The next time I enter that minor mode the key definitions outside may 
    however be different so I want to remove the key bindings I added when 
    exiting the minor mode.

Why not just construct a new minor mode keymap each time?
You could have a base keymap for the minor mode, which does not change,
and each time you enter the mode you could construct a new keymap
which has that base as its parent.




reply via email to

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