From 0bc59b255ed42e57192b0d41c4848685d1019490 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Thu, 14 Jul 2011 01:17:24 +0200 Subject: [PATCH] Mention :visible menu bar separators * keymaps.texi (Menu Bar): Mention :visible and :enable (bug#6344). Text by Drew Adams. Fixes: debbugs:6334 --- doc/lispref/ChangeLog | 3 +++ doc/lispref/keymaps.texi | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 1a62dd88dfc..3e40384eec7 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,5 +1,8 @@ 2011-07-13 Lars Magne Ingebrigtsen + * 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). diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index cf1db5b7fce..15b2f2079ba 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi @@ -2262,6 +2262,17 @@ the double-dash and replacing each single dash with capitalization of 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. -- 2.39.2