# HG changeset patch # User Jim Blandy # Date 742712339 0 # Node ID 15c4c0c37fe2f5aa326ec31b42c0a1631aa12ee0 # Parent badd80e9e4fc58284e613c5184365411ed21ea47 * keyboard.c (menu_bar_one_keymap): If the key's binding is the symbol `undefined', don't try to take that symbol's cdr before passing it to menu_bar_item; pass the `undefined' binding itself, so menu_bar_item can remove bindings for the same key from result. diff -r badd80e9e4fc -r 15c4c0c37fe2 src/keyboard.c --- a/src/keyboard.c Thu Jul 15 04:01:14 1993 +0000 +++ b/src/keyboard.c Thu Jul 15 04:58:59 1993 +0000 @@ -3235,7 +3235,7 @@ } else if (EQ (binding, Qundefined)) result = menu_bar_item (key, item_string, - Fcdr (binding), result); + binding, result); } else if (XTYPE (item) == Lisp_Vector) { @@ -3256,7 +3256,7 @@ } else if (EQ (binding, Qundefined)) result = menu_bar_item (key, item_string, - Fcdr (binding), result); + binding, result); } } }