changeset 15311:a9ed91ec0700

(single_submenu): Handle non-keymap lists like symbols.
author Richard M. Stallman <rms@gnu.org>
date Fri, 31 May 1996 20:10:02 +0000
parents f1e444468043
children d425f28aff41
files src/xmenu.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Fri May 31 15:33:29 1996 +0000
+++ b/src/xmenu.c	Fri May 31 20:10:02 1996 +0000
@@ -1377,8 +1377,12 @@
      But don't make a pane that is empty--ignore that map instead.  */
   for (i = 0; i < len; i++)
     {
-      if (SYMBOLP (mapvec[i]))
+      if (SYMBOLP (mapvec[i])
+	  || (CONSP (mapvec[i])
+	      && NILP (Fkeymapp (mapvec[i]))))
 	{
+	  /* Here we have a command at top level in the menu bar
+	     as opposed to a submenu.  */
 	  top_level_items = 1;
 	  push_menu_pane (Qnil, Qnil);
 	  push_menu_item (item_name, Qt, item_key, mapvec[i], Qnil);