Commit 10bba266 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(menu_item_equiv_key): Look for equiv keys both before

and after one stage of symbol function indirection.
parent 84f4e216
......@@ -331,6 +331,13 @@ menu_item_equiv_key (item_string, item1, descrip_ptr)
changed = 1;
descrip = Qnil;
savedkey = Fwhere_is_internal (def, Qnil, Qt, Qnil);
/* If the command is an alias for another
(such as easymenu.el and lmenu.el set it up),
see if the original command name has equivalent keys. */
if (SYMBOLP (def) && SYMBOLP (XSYMBOL (def)->function))
savedkey = Fwhere_is_internal (XSYMBOL (def)->function,
Qnil, Qt, Qnil);
if (VECTORP (savedkey)
&& EQ (XVECTOR (savedkey)->contents[0], Qmenu_bar))
savedkey = Qnil;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment