comparison man/lispref/menus.texi @ 259:11cf20601dec r20-5b28

Import from CVS: tag r20-5b28
author cvs
date Mon, 13 Aug 2007 10:23:02 +0200
parents 2d532a89d707
children 727739f917cb
comparison
equal deleted inserted replaced
258:58424f6abf56 259:11cf20601dec
170 @var{form} will be evaluated when the menu that this item is a part of 170 @var{form} will be evaluated when the menu that this item is a part of
171 is about to be displayed, and the item will be selectable only if the 171 is about to be displayed, and the item will be selectable only if the
172 result is non-@code{nil}. If the item is unselectable, it will 172 result is non-@code{nil}. If the item is unselectable, it will
173 usually be displayed grayed-out to indicate this. 173 usually be displayed grayed-out to indicate this.
174 174
175 @item :suffix @var{string} 175 @item :suffix @var{form}
176 The string is appended to the displayed name. This provides a 176 @var{form} will be evaluated when the menu that this item is a part of
177 convenient way of adding the name of a command's ``argument'' to the 177 is about to be displayed, and the resulting string is appended to the
178 menu, like @samp{Kill Buffer NAME}. 178 displayed name. This provides a convenient way of adding the name of a
179 command's ``argument'' to the menu, like @samp{Kill Buffer NAME}.
179 180
180 @item :keys @var{string} 181 @item :keys @var{string}
181 Normally, the keyboard equivalents of commands in menus are displayed 182 Normally, the keyboard equivalents of commands in menus are displayed
182 when the ``callback'' is a symbol. This can be used to specify keys for 183 when the ``callback'' is a symbol. This can be used to specify keys for
183 more complex menu items. It is passed through 184 more complex menu items. It is passed through