summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2002-11-12 22:00:41 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2002-11-12 22:00:41 +0000
commite6c87a0f96e14c199327b8f99d1909b870ef53ed (patch)
tree39837eed6892d2522097b0e16f4a9ea3f35d94dc
parent213a58ae83ecea85ea1d0c1a31dfaab70189bd0d (diff)
downloademacs-e6c87a0f96e14c199327b8f99d1909b870ef53ed.tar.gz
(parse_single_submenu): Simplify.
-rw-r--r--src/xmenu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index b8066d015d8..82b5b572a28 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1364,7 +1364,7 @@ free_menubar_widget_value_tree (wv)
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 @@ parse_single_submenu (item_key, item_name, maps)
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. */