Mercurial > emacs
diff src/xmenu.c @ 48270:b6f3eaeb71e5
(parse_single_submenu): Simplify.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Tue, 12 Nov 2002 22:00:41 +0000 |
| parents | 6a09e4b41337 |
| children | 0d792a35828b |
line wrap: on
line diff
--- a/src/xmenu.c Tue Nov 12 21:04:48 2002 +0000 +++ b/src/xmenu.c Tue Nov 12 22:00:41 2002 +0000 @@ -1364,7 +1364,7 @@ UNBLOCK_INPUT; } -/* Set up data i menu_items for a menu bar item +/* Set up data in menu_items for a menu bar item whose event type is ITEM_KEY (with string ITEM_NAME) and whose contents come from the list of keymaps MAPS. */ @@ -1393,8 +1393,7 @@ But don't make a pane that is empty--ignore that map instead. */ for (i = 0; i < len; i++) { - if (SYMBOLP (mapvec[i]) - || (CONSP (mapvec[i]) && !KEYMAPP (mapvec[i]))) + if (!KEYMAPP (mapvec[i])) { /* Here we have a command at top level in the menu bar as opposed to a submenu. */
