Next: Searching Up: Editing Previous: Mini-buffer

# Erasing text

Erasing text can be handled in five ways.

- With the mouse and the standard selection mecanism. (see §2.4 page ).
- With a mark and the 'cut region' command (Ctrl-w). The text between the mark and cursor is removed (see §2.9 page ).
- With the 'kill command' (Ctrl-k) which deletes the end of the current line. The Esc digits command (you type Esc then enter a number), allows you to set a number which must be used with Ctrl-k. In this case, 'num' lines from the cursor are removed.

  Note that, the 'Esc digits' command is used in two cases only: to delete several lines and to play a macro several times (see §2.10 page ).

- With the delete or backspace keys which erase the character before the cursor.
- With the Ctrl-d command which erases the character under the cursor.

When deleted, text is stored in an unlimited linked kill-buffer list (each deleted text can be restored). This kill-buffer can be mapped with Display Kill Buffer in the Window menu. It is viewed as a scrolling list with the beginning of each entry. The first entry corresponds to the last remove operation. When selected, an entry is restored at the current position. The kill-buffer is shared by all buffers of a session.