diff options
| author | Stefan Monnier | 2010-12-18 11:28:15 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-18 11:28:15 -0500 |
| commit | 80b33766d4693c002464052eb799ecb6eb32f010 (patch) | |
| tree | 7ea4904447f7c7bb26363e82b5b337f4490dcc52 | |
| parent | 70041e9ae7072eac5eeff2b5e1a50d9eab6b39f7 (diff) | |
| download | emacs-80b33766d4693c002464052eb799ecb6eb32f010.tar.gz emacs-80b33766d4693c002464052eb799ecb6eb32f010.zip | |
* doc/lispref/keymaps.texi (Simple Menu Items, Extended Menu Items):
Remove mention of the key-binding-data cache since we don't use it
any more.
* doc/lispref/modes.texi (Derived Modes): Mention prog-mode.
Fixes: debbugs:7542
| -rw-r--r-- | doc/lispref/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/lispref/keymaps.texi | 23 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 3 |
3 files changed, 9 insertions, 24 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index ba32adc9e47..157c8580b9c 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-12-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * modes.texi (Derived Modes): Mention prog-mode. | ||
| 4 | |||
| 5 | * keymaps.texi (Simple Menu Items, Extended Menu Items): Remove mention | ||
| 6 | of the key-binding-data cache since we don't use it any more. | ||
| 7 | |||
| 1 | 2010-12-13 Eli Zaretskii <eliz@gnu.org> | 8 | 2010-12-13 Eli Zaretskii <eliz@gnu.org> |
| 2 | 9 | ||
| 3 | * processes.texi (Shell Arguments): | 10 | * processes.texi (Shell Arguments): |
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index e1052a9912e..4ecdaf0fa5b 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -2072,21 +2072,6 @@ look at a menu. This is because the X toolkit requires the whole tree | |||
| 2072 | of menus in advance. To force recalculation of the menu bar, call | 2072 | of menus in advance. To force recalculation of the menu bar, call |
| 2073 | @code{force-mode-line-update} (@pxref{Mode Line Format}). | 2073 | @code{force-mode-line-update} (@pxref{Mode Line Format}). |
| 2074 | 2074 | ||
| 2075 | You've probably noticed that menu items show the equivalent keyboard key | ||
| 2076 | sequence (if any) to invoke the same command. To save time on | ||
| 2077 | recalculation, menu display caches this information in a sublist in the | ||
| 2078 | binding, like this: | ||
| 2079 | |||
| 2080 | @c This line is not too long--rms. | ||
| 2081 | @example | ||
| 2082 | (@var{item-string} @r{[}@var{help}@r{]} (@var{key-binding-data}) . @var{real-binding}) | ||
| 2083 | @end example | ||
| 2084 | |||
| 2085 | @noindent | ||
| 2086 | Don't put these sublists in the menu item yourself; menu display | ||
| 2087 | calculates them automatically. Don't mention keyboard equivalents in | ||
| 2088 | the item strings themselves, since that is redundant. | ||
| 2089 | |||
| 2090 | @node Extended Menu Items | 2075 | @node Extended Menu Items |
| 2091 | @subsubsection Extended Menu Items | 2076 | @subsubsection Extended Menu Items |
| 2092 | @kindex menu-item | 2077 | @kindex menu-item |
| @@ -2119,14 +2104,6 @@ string. Thus, the string need not be a constant. The third element, | |||
| 2119 | @var{item-property-list}, has the form of a property list which contains | 2104 | @var{item-property-list}, has the form of a property list which contains |
| 2120 | other information. | 2105 | other information. |
| 2121 | 2106 | ||
| 2122 | When an equivalent keyboard key binding is cached, the extended menu | ||
| 2123 | item binding looks like this: | ||
| 2124 | |||
| 2125 | @example | ||
| 2126 | (menu-item @var{item-name} @var{real-binding} (@var{key-binding-data}) | ||
| 2127 | . @var{item-property-list}) | ||
| 2128 | @end example | ||
| 2129 | |||
| 2130 | Here is a table of the properties that are supported: | 2107 | Here is a table of the properties that are supported: |
| 2131 | 2108 | ||
| 2132 | @table @code | 2109 | @table @code |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 5f59d4c4b62..0f66ebeb6b1 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -744,7 +744,8 @@ documentation of the major mode. | |||
| 744 | The recommended way to define a new major mode is to derive it | 744 | The recommended way to define a new major mode is to derive it |
| 745 | from an existing one using @code{define-derived-mode}. If there is no | 745 | from an existing one using @code{define-derived-mode}. If there is no |
| 746 | closely related mode, you can inherit from @code{text-mode}, | 746 | closely related mode, you can inherit from @code{text-mode}, |
| 747 | @code{special-mode}, or in the worst case @code{fundamental-mode}. | 747 | @code{special-mode}, @code{prog-mode}, or in the worst case |
| 748 | @code{fundamental-mode}. | ||
| 748 | 749 | ||
| 749 | @defmac define-derived-mode variant parent name docstring keyword-args@dots{} body@dots{} | 750 | @defmac define-derived-mode variant parent name docstring keyword-args@dots{} body@dots{} |
| 750 | This macro defines @var{variant} as a major mode command, using | 751 | This macro defines @var{variant} as a major mode command, using |