Next: , Previous: , Up: Menus   [Contents][Index]


27.5 Menu Filters

The following filter functions are provided for use in default-menubar. You may want to use them in your own menubar description.

Function: file-menu-filter menu-items

This function changes the arguments and sensitivity of these File menu items:

Delete Buffer

Has the name of the current buffer appended to it.

Print Buffer

Has the name of the current buffer appended to it.

Pretty-Print Buffer

Has the name of the current buffer appended to it.

Save Buffer

Has the name of the current buffer appended to it, and is sensitive only when the current buffer is modified.

Revert Buffer

Has the name of the current buffer appended to it, and is sensitive only when the current buffer has a file.

Delete Frame

Sensitive only when there is more than one visible frame.

Function: edit-menu-filter menu-items

This function changes the arguments and sensitivity of these Edit menu items:

Cut

Sensitive only when SXEmacs owns the primary X Selection (if zmacs-regions is t, this is equivalent to saying that there is a region selected).

Copy

Sensitive only when SXEmacs owns the primary X Selection.

Clear

Sensitive only when SXEmacs owns the primary X Selection.

Paste

Sensitive only when there is an owner for the X Clipboard Selection.

Undo

Sensitive only when there is undo information. While in the midst of an undo, this is changed to ‘Undo More’.

Function: buffers-menu-filter menu-items

This function sets up the Buffers menu. See Buffers Menu, for more information.


Next: , Previous: , Up: Menus   [Contents][Index]