* keymaps.texi (Menu Bar): Mention :visible and :enable
(bug#6344). Text by Drew Adams.
Fixes: debbugs:6334
2011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * keymaps.texi (Menu Bar): Mention :visible and :enable
+ (bug#6344). Text by Drew Adams.
+
* modes.texi (Running Hooks): Mention buffer-local hook variables
(bug#6218).
the following word. Thus, @code{"--:singleLine"}, is equivalent to
@code{"--single-line"}.
+ You can use a longer form to specify keywords such as @code{:enable}
+and @code{:visible} for a menu separator:
+
+@code{(menu-item @var{separator-type} nil . @var{item-property-list})}
+
+For example:
+
+@example
+(menu-item "--" nil :visible (boundp 'foo))
+@end example
+
Some systems and display toolkits don't really handle all of these
separator types. If you use a type that isn't supported, the menu
displays a similar kind of separator that is supported.