2.2.2 The Edit Menu
Most of the commands in this menu work on a block of text or a selected
region. The text will be highlighted as you select it.
- Undo
- Undoes the previous command. If you type something by mistake you can
use this command. For example, if you select Insert File... from the
File menu and insert a wrong file by mistake, you can select this
item and it will remove the inserted file. It undoes a batch of text
which is worth an emacs command.
- Cut
- Removes the selected text block from the current buffer, makes it the X
clipboard selection, and places it in the kill ring
(see Moving Text). Before executing this command, you have to select
a region using Emacs region selection commands or with the
mouse. See Selecting Text.
- Copy
- Makes a selected text block the X clipboard selection, and places it in
the kill ring. You can select text using one of the Emacs region
selection commands or by selecting a text region with the
mouse. See Selecting Text, for more information.
- Paste
- Inserts the current value of the X clipboard selection in the current
buffer. Note that this is not necessarily the same as the Emacs
yank command, because the Emacs kill ring and the X clipboard
selection are not the same thing. You can paste in text you have placed
in the clipboard using Copy or Cut. You can also use Paste
to insert text that was pasted into the clipboard from other
applications. See X Clipboard Selection,
for information on using Clipboard Selection.
- Clear
- Removes the selected text block from the current buffer but does not
place it in the kill ring or the X clipboard selection. You will not be
able to get this text back.
- Start Macro Recording
- After selecting this, Emacs will remember every keystroke you type until
End Macro Recording is selected.
- End Macro Recording
- Selecting this tells emacs to stop remembering your keystrokes.
- Execute Last Macro
- Selecting this item will cause emacs to re-interpret all of the
keystrokes which were saved between selections of the Start Macro
Recording and End Macro Recording menu items. You can now execute
the most recent keyboard macro. See Keyboard Macros, for further information.