2.2.1 The File Menu
The File menu bar contains the following items. To choose a
particular option, press the left mouse button and drag it to the item
you wish to select. Then release the button.
- Open...
- This option will prompt you for a file name. You will get a message in
the echo area:
Find File:
After Find File, there might be a directory path also. After you type
the file name and press <RET> the file will be loaded into a new
buffer.
- Open in New Frame...
- It prompts you for a file name and loads that file in a new buffer in
a new frame. You can open many frames for the same Emacs session. You
can delete the frame by selecting Delete Frame.
- Insert File...
- Prompts you for a filename and inserts the contents of this filename in
your current buffer. Position your cursor at the place you wish to
insert the file and select this option. You will get the following
message in the echo area:
Insert file:
Insert the file name and press <RET>.
- Save <Buffername>
- It saves the changes you have made to the buffer. If you have made
changes which are not saved yet, the option will appear dark, otherwise
it will be light and unselectable. If you do not wish to save the
changes, select Revert Buffer.
- Save As...
- Prompts you for a filename and saves the current buffer in that file. It
loads the new file if the filename you specify is different from the one
you were working with.
- Print Buffer <buffername>
- Prints a hardcopy of the current or selected buffer.
- New Frame
- Opens a new frame with *scratch* as the default buffer. It doesn't
prompt you for a filename. To open a file you need to go to that frame
and select Open...
- Split Frame
- Splits the current window into two equal-sized windows with the same
buffer. To get back a single frame, select Un-Split (Keep
This). See SXEmacs Window, for more information about windows.
- Un-Split (Keep This)
- If the frame contains multiple windows, it will remove all windows
except the selected one.
- Un-Split (Keep Others)
- If the frame contains multiple windows, it will remove the selected
window and keep the other one.
- Revert Buffer <buffername>
- If you do not wish to save the changes you made to the file since you
opened it, select this option. It will restore the last saved version of
the file to the current buffer.
- Kill Buffer <buffername>
- It will kill the current buffer. If will prompt you if there are unsaved
changes.
- Exit Emacs
- It will kill the Emacs process as opposed to simply killing the
buffer. Before it kills the process, it will prompt you as to
which unsaved buffers you wish to save by going through the list of the
buffers.