diff options
| author | Lars Magne Ingebrigtsen | 2011-07-14 01:17:24 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-14 01:17:24 +0200 |
| commit | 0bc59b255ed42e57192b0d41c4848685d1019490 (patch) | |
| tree | acec14976beec2e64b5611a07e2933b8b639a80b | |
| parent | bd2fcc8d5cb29bfce6a4f30c8aa42feb3b24706f (diff) | |
| download | emacs-0bc59b255ed42e57192b0d41c4848685d1019490.tar.gz emacs-0bc59b255ed42e57192b0d41c4848685d1019490.zip | |
Mention :visible menu bar separators
* keymaps.texi (Menu Bar): Mention :visible and :enable
(bug#6344). Text by Drew Adams.
Fixes: debbugs:6334
| -rw-r--r-- | doc/lispref/ChangeLog | 3 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 11 |
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 @@ | |||
| 1 | 2011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2011-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 | |||
| 2262 | the following word. Thus, @code{"--:singleLine"}, is equivalent to | 2262 | the 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} | ||
| 2266 | and @code{:visible} for a menu separator: | ||
| 2267 | |||
| 2268 | @code{(menu-item @var{separator-type} nil . @var{item-property-list})} | ||
| 2269 | |||
| 2270 | For 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 |
| 2266 | separator types. If you use a type that isn't supported, the menu | 2277 | separator types. If you use a type that isn't supported, the menu |
| 2267 | displays a similar kind of separator that is supported. | 2278 | displays a similar kind of separator that is supported. |