Next: , Previous: , Up: Modification Commands   [Contents][Index]


2.3.5 Killing Commands

Most commands which kill text append into the kill ring, meaning that consecutive uses of killing commands will insert all text killed into the top entry in the kill ring. This allows large pieces of text to be killed by repeatedly using a killing command.

Command: Kill Line (bound to C-k)
Command: Backward Kill Line

Kill Line kills the text from the point to the end of the current line, deleting the line if it is empty. If a prefix argument is supplied, then that many lines are killed. Note that a prefix argument is not the same as a repeat count.

Backward Kill Line is similar, except that it kills from the point to the beginning of the line. If it is called at the beginning of the line, it kills the newline and any trailing whitespace on the previous line. With a prefix argument, this command is the same as Kill Line with a negated argument.

Command: Kill Next Word (bound to M-d)
Command: Kill Previous Word (bound to M-Backspace, M-Delete)

Kill Next Word kills from the point to the end of the current or next word. If a prefix argument is supplied, then that many words are killed. Kill Previous Word is identical, except that it kills backward.


Next: Case Modification Commands, Previous: Kill Ring Manipulation, Up: Modification Commands   [Contents][Index]