# HG changeset patch # User Richard M. Stallman # Date 769674779 0 # Node ID f6d9c318724584bf63b0cdff4fb2cbf3c3de0f6b # Parent eeefa4ac7978542421f501df28c1ee79aa486947 (menu_bar_one_keymap): When there's no item string, use Qnil. Don't ever put `undefined' into the list of definitions. diff -r eeefa4ac7978 -r f6d9c3187245 src/keyboard.c --- a/src/keyboard.c Mon May 23 06:31:52 1994 +0000 +++ b/src/keyboard.c Mon May 23 06:32:59 1994 +0000 @@ -3758,7 +3758,7 @@ menu_bar_item (key, item_string, Fcdr (binding)); } else if (EQ (binding, Qundefined)) - menu_bar_item (key, item_string, binding); + menu_bar_item (key, Qnil, binding); } else if (XTYPE (item) == Lisp_Vector) { @@ -3777,7 +3777,7 @@ menu_bar_item (key, item_string, Fcdr (binding)); } else if (EQ (binding, Qundefined)) - menu_bar_item (key, item_string, binding); + menu_bar_item (key, Qnil, binding); } } } @@ -3818,6 +3818,10 @@ menu_bar_items_index -= 3; return; } + + /* If there's no definition for this key yet, + just ignore `undefined'. */ + return; } /* See if this entry is enabled. */