emacs-devel
[Top][All Lists]
Advanced

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

Re: Customizing key bindings


From: Richard Stallman
Subject: Re: Customizing key bindings
Date: Sun, 08 Sep 2002 20:21:37 -0400

    Hm, but while we are in the same session, potential bug remain (the
    ones that Per keeps talking about).

    1. Load foo.el which uses defkeymap to create a keymap with binding A
       for one key.
    2. Customize the keymap with binding B for the same key.  The shadowed
       binding A is saved.
    3. Load foo-extra or call a hook that uses define-key to change the
       binding for the same key to C.
    4. Customize the keymap.  I think it is ok to see binding C, because
       after all that is what happens to variables as well.  The problem
       is that when the user removes the binding for that key, we revert
       to binding A, instead of B.

I think my two-keymap solution, with a modified define-key, would
handle this right.  (It would also prevent C from being visible while
the customization is in effect.)




reply via email to

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