Mercurial > emacs
comparison lispref/keymaps.texi @ 90813:e6fdae9180d4
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 698-710)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 216)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-196
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 24 Apr 2007 21:56:25 +0000 |
parents | 4ef881a120fe a0465482d78d |
children | d7172f202ab8 |
comparison
equal
deleted
inserted
replaced
90812:6137cc8ddf90 | 90813:e6fdae9180d4 |
---|---|
253 (27 keymap | 253 (27 keymap |
254 ;; @r{@kbd{M-C-x}, treated as @kbd{@key{ESC} C-x}} | 254 ;; @r{@kbd{M-C-x}, treated as @kbd{@key{ESC} C-x}} |
255 (24 . lisp-send-defun) | 255 (24 . lisp-send-defun) |
256 keymap | 256 keymap |
257 ;; @r{@kbd{M-C-q}, treated as @kbd{@key{ESC} C-q}} | 257 ;; @r{@kbd{M-C-q}, treated as @kbd{@key{ESC} C-q}} |
258 (17 . indent-sexp))) | 258 (17 . indent-sexp)) |
259 @end group | 259 @end group |
260 @group | 260 @group |
261 ;; @r{This part is inherited from @code{lisp-mode-shared-map}.} | 261 ;; @r{This part is inherited from @code{lisp-mode-shared-map}.} |
262 keymap | 262 keymap |
263 ;; @key{DEL} | 263 ;; @key{DEL} |
2092 @noindent | 2092 @noindent |
2093 Here, @var{item-name} is an expression which evaluates to the menu item | 2093 Here, @var{item-name} is an expression which evaluates to the menu item |
2094 string. Thus, the string need not be a constant. The third element, | 2094 string. Thus, the string need not be a constant. The third element, |
2095 @var{real-binding}, is the command to execute. The tail of the list, | 2095 @var{real-binding}, is the command to execute. The tail of the list, |
2096 @var{item-property-list}, has the form of a property list which contains | 2096 @var{item-property-list}, has the form of a property list which contains |
2097 other information. Here is a table of the properties that are supported: | 2097 other information. |
2098 | |
2099 When an equivalent keyboard key binding is cached, the extended menu | |
2100 item binding looks like this: | |
2101 | |
2102 @example | |
2103 (menu-item @var{item-name} @var{real-binding} (@var{key-binding-data}) | |
2104 . @var{item-property-list}) | |
2105 @end example | |
2106 | |
2107 Here is a table of the properties that are supported: | |
2098 | 2108 |
2099 @table @code | 2109 @table @code |
2100 @item :enable @var{form} | 2110 @item :enable @var{form} |
2101 The result of evaluating @var{form} determines whether the item is | 2111 The result of evaluating @var{form} determines whether the item is |
2102 enabled (non-@code{nil} means yes). If the item is not enabled, | 2112 enabled (non-@code{nil} means yes). If the item is not enabled, |
2177 | 2187 |
2178 Emacs can call this function at any time that it does redisplay or | 2188 Emacs can call this function at any time that it does redisplay or |
2179 operates on menu data structures, so you should write it so it can | 2189 operates on menu data structures, so you should write it so it can |
2180 safely be called at any time. | 2190 safely be called at any time. |
2181 @end table | 2191 @end table |
2182 | |
2183 When an equivalent key binding is cached, the binding looks like this. | |
2184 | |
2185 @example | |
2186 (menu-item @var{item-name} @var{real-binding} (@var{key-binding-data}) | |
2187 . @var{item-property-list}) | |
2188 @end example | |
2189 | 2192 |
2190 @node Menu Separators | 2193 @node Menu Separators |
2191 @subsubsection Menu Separators | 2194 @subsubsection Menu Separators |
2192 @cindex menu separators | 2195 @cindex menu separators |
2193 | 2196 |