comparison src/xmenu.c @ 6913:f167828a3ec2

(xmenu_show): Don't cons on subprefix_stck[j] if nil.
author Richard M. Stallman <rms@gnu.org>
date Sat, 16 Apr 1994 03:50:38 +0000
parents 796416bd7f7e
children 2d0ee7ef620a
comparison
equal deleted inserted replaced
6912:37dada8ae351 6913:f167828a3ec2
1725 1725
1726 entry = Fcons (entry, Qnil); 1726 entry = Fcons (entry, Qnil);
1727 if (!NILP (prefix)) 1727 if (!NILP (prefix))
1728 entry = Fcons (prefix, entry); 1728 entry = Fcons (prefix, entry);
1729 for (j = submenu_depth - 1; j >= 0; j--) 1729 for (j = submenu_depth - 1; j >= 0; j--)
1730 entry = Fcons (subprefix_stack[j], entry); 1730 if (!NILP (subprefix_stack[j], entry))
1731 entry = Fcons (subprefix_stack[j], entry);
1731 } 1732 }
1732 return entry; 1733 return entry;
1733 } 1734 }
1734 i += MENU_ITEMS_ITEM_LENGTH; 1735 i += MENU_ITEMS_ITEM_LENGTH;
1735 } 1736 }