Mercurial > hg > xemacs-beta
comparison man/new-users-guide/custom1.texi @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
166 | 166 |
167 Some of the functions which are available to you for customization are: | 167 Some of the functions which are available to you for customization are: |
168 @enumerate | 168 @enumerate |
169 | 169 |
170 @item | 170 @item |
171 add-menu-item: (@var{menu-name} @var{item-name} @var{function} @var{enabled-p} | 171 add-menu-item: @var{(menu-name item-name function enabled-p |
172 &optional @var{before}) | 172 &optional before)} |
173 | 173 |
174 This function will add a menu item to a menu, creating the menu first if | 174 This function will add a menu item to a menu, creating the menu first if |
175 necessary. If the named item already exists, the menu will remain | 175 necessary. If the named item already exists, the menu will remain |
176 unchanged. For example, if you add the following example to your | 176 unchanged. For example, if you add the following example to your |
177 @file{.emacs} file or evaluate it (@pxref{Customization Basics}), | 177 @file{.emacs} file or evaluate it (@pxref{Customization Basics}), |
258 submenus: @b{Copy File}, @b{Delete File} and @b{Rename File}. | 258 submenus: @b{Copy File}, @b{Delete File} and @b{Rename File}. |
259 | 259 |
260 @findex delete-menu-item | 260 @findex delete-menu-item |
261 @cindex deleting menu items | 261 @cindex deleting menu items |
262 @item | 262 @item |
263 delete-menu-item: (@var{menu-path}) | 263 delete-menu-item: @var{(menu-path)} |
264 This function will remove the menu item defined by @var{menu-name} from | 264 This function will remove the menu item defined by @var{menu-name} from |
265 the menu hierarchy. Look at the following examples and the comments just | 265 the menu hierarchy. Look at the following examples and the comments just |
266 above them which specify what the examples do. | 266 above them which specify what the examples do. |
267 | 267 |
268 @example | 268 @example |
284 | 284 |
285 | 285 |
286 @findex disable-menu-item | 286 @findex disable-menu-item |
287 @cindex disabling menu items | 287 @cindex disabling menu items |
288 @item | 288 @item |
289 disable-menu-item: (@var{menu-name}) | 289 disable-menu-item: @var{(menu-name)} |
290 Disables the specified menu item. The following example | 290 Disables the specified menu item. The following example |
291 | 291 |
292 @example | 292 @example |
293 (disable-menu-item '("File" "Management" "Copy File")) | 293 (disable-menu-item '("File" "Management" "Copy File")) |
294 @end example | 294 @end example |
299 be selected. | 299 be selected. |
300 | 300 |
301 @findex enable-menu-item | 301 @findex enable-menu-item |
302 @cindex enabling menu items | 302 @cindex enabling menu items |
303 @item | 303 @item |
304 enable-menu-item: (@var{menu-name}) | 304 enable-menu-item: @var{(menu-name)} |
305 Enables the specified previously disabled menu item. | 305 Enables the specified previously disabled menu item. |
306 | 306 |
307 @example | 307 @example |
308 (enable-menu-item '("File" "Management" "Copy File")) | 308 (enable-menu-item '("File" "Management" "Copy File")) |
309 @end example | 309 @end example |
313 earlier command. | 313 earlier command. |
314 | 314 |
315 @findex relabel-menu-items | 315 @findex relabel-menu-items |
316 @cindex relabelling menu items | 316 @cindex relabelling menu items |
317 @item | 317 @item |
318 relabel-menu-item: (@var{menu-name} @var{new-name}) | 318 relabel-menu-item: @var{(menu-name new-name)} |
319 Change the string of the menu item specified by @var{menu-name} to | 319 Change the string of the menu item specified by @var{menu-name} to |
320 @var{new-name}. | 320 @var{new-name}. |
321 | 321 |
322 @example | 322 @example |
323 (relabel-menu-item '("File" "Open...") "Open File") | 323 (relabel-menu-item '("File" "Open...") "Open File") |