diff options
| author | Lars Magne Ingebrigtsen | 2011-07-16 19:58:16 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-16 19:58:16 +0200 |
| commit | 011b0ad6b50df387f266e86cf818810a16e9f01f (patch) | |
| tree | 7867d90fadb16475045315d62f2446835b902f8b /doc | |
| parent | b53a9f73f71ae87430f8341364b253a3466c117b (diff) | |
| download | emacs-011b0ad6b50df387f266e86cf818810a16e9f01f.tar.gz emacs-011b0ad6b50df387f266e86cf818810a16e9f01f.zip | |
Document toolkit differences for menus
(Toolkit Differences): New node with text from Tim
Cross (tiny change) and Glenn Morris.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 24 |
2 files changed, 29 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 033c2fec65b..8eca2ccf52b 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-07-16 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * keymaps.texi (Toolkit Differences): New node with text from Tim | ||
| 4 | Cross (tiny change) and Glenn Morris. | ||
| 5 | |||
| 1 | 2011-07-15 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2011-07-15 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * help.texi (Keys in Documentation): Revert last change. | 8 | * help.texi (Keys in Documentation): Revert last change. |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index 15b2f2079ba..95f798c21d4 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -2019,8 +2019,10 @@ an existing menu, you can specify its position in the menu using | |||
| 2019 | various features. | 2019 | various features. |
| 2020 | * Menu Separators:: Drawing a horizontal line through a menu. | 2020 | * Menu Separators:: Drawing a horizontal line through a menu. |
| 2021 | * Alias Menu Items:: Using command aliases in menu items. | 2021 | * Alias Menu Items:: Using command aliases in menu items. |
| 2022 | * Toolkit Differences:: Not all toolkits provide the same features. | ||
| 2022 | @end menu | 2023 | @end menu |
| 2023 | 2024 | ||
| 2025 | |||
| 2024 | @node Simple Menu Items | 2026 | @node Simple Menu Items |
| 2025 | @subsubsection Simple Menu Items | 2027 | @subsubsection Simple Menu Items |
| 2026 | 2028 | ||
| @@ -2309,6 +2311,28 @@ itself). To request this, give the alias symbol a non-@code{nil} | |||
| 2309 | causes menu items for @code{make-read-only} and @code{make-writable} to | 2311 | causes menu items for @code{make-read-only} and @code{make-writable} to |
| 2310 | show the keyboard bindings for @code{toggle-read-only}. | 2312 | show the keyboard bindings for @code{toggle-read-only}. |
| 2311 | 2313 | ||
| 2314 | @node Toolkit Differences | ||
| 2315 | @subsubsection Toolkit Differences | ||
| 2316 | |||
| 2317 | The various toolkits with which you can build Emacs do not all support | ||
| 2318 | the same set of features for menus. Some code works as expected with | ||
| 2319 | one toolkit, but not under another. | ||
| 2320 | |||
| 2321 | For example: menu actions or buttons in a top-level menu-bar. The | ||
| 2322 | following works with the Lucid toolkit or on MS Windows, but not with | ||
| 2323 | GTK or Nextstep, where clicking on the item has no effect. | ||
| 2324 | |||
| 2325 | @example | ||
| 2326 | (defun menu-action-greet () | ||
| 2327 | (interactive) | ||
| 2328 | (message "Hello Emacs User!")) | ||
| 2329 | |||
| 2330 | (defun top-level-menu () | ||
| 2331 | (interactive) | ||
| 2332 | (define-key lisp-interaction-mode-map [menu-bar m] | ||
| 2333 | '(menu-item "Action Button" menu-action-greet))) | ||
| 2334 | @end example | ||
| 2335 | |||
| 2312 | @node Mouse Menus | 2336 | @node Mouse Menus |
| 2313 | @subsection Menus and the Mouse | 2337 | @subsection Menus and the Mouse |
| 2314 | 2338 | ||