Commit 5964e450 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(xmenu_show): Don't cons on subprefix_stck[j] if nil.

parent 71e61810
......@@ -1727,7 +1727,8 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
if (!NILP (prefix))
entry = Fcons (prefix, entry);
for (j = submenu_depth - 1; j >= 0; j--)
entry = Fcons (subprefix_stack[j], entry);
if (!NILP (subprefix_stack[j], entry))
entry = Fcons (subprefix_stack[j], entry);
}
return entry;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment