Mercurial > emacs
changeset 7832:44cfbd972edd
(menu_item_equiv_key): Check whether def1 matches
un-aliased command name as well as given command name.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 07 Jun 1994 18:31:56 +0000 |
parents | 343a21c51172 |
children | 6cc0db90bcc3 |
files | src/xmenu.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xmenu.c Tue Jun 07 18:04:58 1994 +0000 +++ b/src/xmenu.c Tue Jun 07 18:31:56 1994 +0000 @@ -324,6 +324,11 @@ def1 = Fkey_binding (savedkey, Qnil); /* If not, update it. */ if (! EQ (def1, def) + /* If the command is an alias for another + (such as easymenu.el and lmenu.el set it up), + check if the original command matches the cached command. */ + && !(SYMBOLP (def) && SYMBOLP (XSYMBOL (def)->function) + && EQ (def1, XSYMBOL (def)->function)) /* If something had no key binding before, don't recheck it-- doing that takes too much time and makes menus too slow. */ && !(!NILP (cachelist) && NILP (savedkey)))