Commit 224fc3d1 authored by Chong Yidong's avatar Chong Yidong

(parse_menu_item): Don't display remappings as menu equivalent bindings (Bug#788).

parent 9286b16a
......@@ -471,6 +471,8 @@ Lisp_Object Qmake_frame_visible;
Lisp_Object Qselect_window;
Lisp_Object Qhelp_echo;
extern Lisp_Object Qremap;
#if defined (HAVE_MOUSE) || defined (HAVE_GPM)
Lisp_Object Qmouse_fixup_help_message;
......@@ -8067,6 +8069,11 @@ parse_menu_item (item, notreal, inmenubar)
&& ! NILP (Fget (def, Qmenu_alias)))
def = XSYMBOL (def)->function;
tem = Fwhere_is_internal (def, Qnil, Qt, Qnil, Qt);
/* Don't display remap bindings.*/
if (VECTORP (tem) && ASIZE (tem) > 0 && EQ (AREF (tem, 0), Qremap))
tem = Qnil;
XSETCAR (cachelist, tem);
if (NILP (tem))
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