The following filter functions are provided for use in
default-menubar. You may want to use them in your own menubar
description.
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.
This function changes the arguments and sensitivity of these Edit menu items:
- ‘Cut’
- Sensitive only when SXEmacs owns the primary X Selection (if
zmacs-regionsist, 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’.
This function sets up the Buffers menu. See Buffers Menu, for more information.