aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog3
-rw-r--r--doc/lispref/keymaps.texi11
2 files changed, 14 insertions, 0 deletions
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 @@
12011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> 12011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * keymaps.texi (Menu Bar): Mention :visible and :enable
4 (bug#6344). Text by Drew Adams.
5
3 * modes.texi (Running Hooks): Mention buffer-local hook variables 6 * modes.texi (Running Hooks): Mention buffer-local hook variables
4 (bug#6218). 7 (bug#6218).
5 8
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
2262the following word. Thus, @code{"--:singleLine"}, is equivalent to 2262the following word. Thus, @code{"--:singleLine"}, is equivalent to
2263@code{"--single-line"}. 2263@code{"--single-line"}.
2264 2264
2265 You can use a longer form to specify keywords such as @code{:enable}
2266and @code{:visible} for a menu separator:
2267
2268@code{(menu-item @var{separator-type} nil . @var{item-property-list})}
2269
2270For example:
2271
2272@example
2273(menu-item "--" nil :visible (boundp 'foo))
2274@end example
2275
2265 Some systems and display toolkits don't really handle all of these 2276 Some systems and display toolkits don't really handle all of these
2266separator types. If you use a type that isn't supported, the menu 2277separator types. If you use a type that isn't supported, the menu
2267displays a similar kind of separator that is supported. 2278displays a similar kind of separator that is supported.