Mercurial > hg > xemacs-beta
comparison src/menubar.c @ 259:11cf20601dec r20-5b28
Import from CVS: tag r20-5b28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:23:02 +0200 |
parents | 677f6a0ee643 |
children | 405dd6d1825b |
comparison
equal
deleted
inserted
replaced
258:58424f6abf56 | 259:11cf20601dec |
---|---|
221 | 221 |
222 Otherwise, the element must be a vector, which describes a menu item. | 222 Otherwise, the element must be a vector, which describes a menu item. |
223 A menu item can have any of the following forms: | 223 A menu item can have any of the following forms: |
224 | 224 |
225 [ "name" callback <active-p> ] | 225 [ "name" callback <active-p> ] |
226 [ "name" callback <active-p> "suffix" ] | 226 [ "name" callback <active-p> <suffix> ] |
227 [ "name" callback :<keyword> <value> :<keyword> <value> ... ] | 227 [ "name" callback :<keyword> <value> :<keyword> <value> ... ] |
228 | 228 |
229 The name is the string to display on the menu; it is filtered through the | 229 The name is the string to display on the menu; it is filtered through the |
230 resource database, so it is possible for resources to override what string | 230 resource database, so it is possible for resources to override what string |
231 is actually displayed. | 231 is actually displayed. |
239 :active <form> Same as <active-p> in the first two forms: the | 239 :active <form> Same as <active-p> in the first two forms: the |
240 expression is evaluated just before the menu is | 240 expression is evaluated just before the menu is |
241 displayed, and the menu will be selectable only if | 241 displayed, and the menu will be selectable only if |
242 the result is non-nil. | 242 the result is non-nil. |
243 | 243 |
244 :suffix "string" Same as "suffix" in the second form: the suffix is | 244 :suffix <form> Same as <suffix> in the second form: the expression |
245 appended to the displayed name, providing a convenient | 245 is evaluated just before the menu is displayed and |
246 way of adding the name of a command's ``argument'' to | 246 resulting string is appended to the displayed name, |
247 the menu, like ``Kill Buffer NAME''. | 247 providing a convenient way of adding the name of a |
248 command's ``argument'' to the menu, like | |
249 ``Kill Buffer NAME''. | |
248 | 250 |
249 :keys "string" Normally, the keyboard equivalents of commands in | 251 :keys "string" Normally, the keyboard equivalents of commands in |
250 menus are displayed when the `callback' is a symbol. | 252 menus are displayed when the `callback' is a symbol. |
251 This can be used to specify keys for more complex menu | 253 This can be used to specify keys for more complex menu |
252 items. It is passed through `substitute-command-keys' | 254 items. It is passed through `substitute-command-keys' |
424 | 426 |
425 Otherwise, the element must be a vector, which describes a menu item. | 427 Otherwise, the element must be a vector, which describes a menu item. |
426 A menu item can have any of the following forms: | 428 A menu item can have any of the following forms: |
427 | 429 |
428 [ "name" callback <active-p> ] | 430 [ "name" callback <active-p> ] |
429 [ "name" callback <active-p> "suffix" ] | 431 [ "name" callback <active-p> <suffix> ] |
430 [ "name" callback :<keyword> <value> :<keyword> <value> ... ] | 432 [ "name" callback :<keyword> <value> :<keyword> <value> ... ] |
431 | 433 |
432 The name is the string to display on the menu; it is filtered through the | 434 The name is the string to display on the menu; it is filtered through the |
433 resource database, so it is possible for resources to override what string | 435 resource database, so it is possible for resources to override what string |
434 is actually displayed. | 436 is actually displayed. |
442 :active <form> Same as <active-p> in the first two forms: the | 444 :active <form> Same as <active-p> in the first two forms: the |
443 expression is evaluated just before the menu is | 445 expression is evaluated just before the menu is |
444 displayed, and the menu will be selectable only if | 446 displayed, and the menu will be selectable only if |
445 the result is non-nil. | 447 the result is non-nil. |
446 | 448 |
447 :suffix "string" Same as "suffix" in the second form: the suffix is | 449 :suffix <form> Same as <suffix> in the second form: the expression |
448 appended to the displayed name, providing a convenient | 450 is evaluated just before the menu is displayed and |
449 way of adding the name of a command's ``argument'' to | 451 resulting string is appended to the displayed name, |
450 the menu, like ``Kill Buffer NAME''. | 452 providing a convenient way of adding the name of a |
453 command's ``argument'' to the menu, like | |
454 ``Kill Buffer NAME''. | |
451 | 455 |
452 :keys "string" Normally, the keyboard equivalents of commands in | 456 :keys "string" Normally, the keyboard equivalents of commands in |
453 menus are displayed when the `callback' is a symbol. | 457 menus are displayed when the `callback' is a symbol. |
454 This can be used to specify keys for more complex menu | 458 This can be used to specify keys for more complex menu |
455 items. It is passed through `substitute-command-keys' | 459 items. It is passed through `substitute-command-keys' |