next up previous
Next: The kill buffer. Up: Deletion, insertion, and text Previous: Deletion, insertion, and text

Deleting text.

DEL
deletes the character preceding the cursor. At the beginning of a line, it deletes the preceding end-of-line character, thus joining the current and preceding lines.
M-DEL
deletes the word preceding the cursor. The deleted word moves to the kill buffer, described later.
C-w
is the same as M-DEL in our version of Emacs. This is not standard, but is provided to avoid confusion with its common use in the shell.
C-d
deletes the character under the cursor (which can be the end-of-line).
M-d
deletes the word following the cursor.
C-k
deletes the rest of the line following the cursor. If the cursor is on the end-of-line, delete the end-of-line. The deleted line moves to the kill buffer.
M- 1#1
deletes all horizontal blank space on either side of the cursor.
M-SPC
deletes all but one horizontal blank space surrounding the cursor.
C-x C-o
on non-blank line, deletes all immediately following blank lines; on isolated blank line, deletes the line; on other blank lines, deletes all but one.
M-W
deletes everything between the point and the mark. In standard Emacs, this is C-w, but in our version, this is modified to prevent confusion with the same character in the shell.


next up previous
Next: The kill buffer. Up: Deletion, insertion, and text Previous: Deletion, insertion, and text
David Wolfe
1998-12-15