changeset 7650:f6d9c3187245

(menu_bar_one_keymap): When there's no item string, use Qnil. Don't ever put `undefined' into the list of definitions.
author Richard M. Stallman <rms@gnu.org>
date Mon, 23 May 1994 06:32:59 +0000
parents eeefa4ac7978
children 1569a13efdcd
files src/keyboard.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.  */