All Manuals > LispWorks Editor User Guide > 3 Command Reference > 3.9 Deleting and killing text

NextPrevUpTopContentsIndex

3.9.2 Killing text

Most of these commands result in text being pushed onto the kill ring so that it can be recovered. There is only one kill ring for all buffers so that text can be copied from one buffer to another.

Normally each kill command pushes a new block of text onto the kill ring. However, if more than one kill command is issued sequentially, and the text being killed was next to the previously killed text, they form a single entry in the kill ring (exceptions being Kill Region and Save Region).

Append Next Kill is different in that affects where a subsequent killed text is stored in the kill ring, but does not itself modify the kill ring.

Kill Next Word

Editor Command

Arguments: None
Key sequence: Alt+D

Kills the rest of the word after the current point. If the current point is between two words, then the next word is killed.

Kill Previous Word

Editor Command

Arguments: None
Key sequence: Alt+Backspace

Kills the rest of the word before the current point. If the current point is between two words, then the previous word is killed.

Kill Line

Editor Command

Arguments: None
Key sequence: Ctrl+K

Kills the characters from the current point up to the end of the current line. If the line is empty then the line is deleted.

Backward Kill Line

Editor Command

Arguments: None
Key sequence: None

Kills the characters from the current point to the beginning of the line. If the current point is already at the beginning of the line, the current line is joined to the previous line, with any trailing space on the previous line killed.

Forward Kill Sentence

Editor Command

Arguments: None
Key sequence: Alt+K

Kills the text starting from the current point up to the end of the sentence. If the current point is between two sentences, then the whole of the next sentence is killed.

Backward Kill Sentence

Editor Command

Arguments: None
Key sequence: Ctrl+X Backspace

Kills the text starting from the current point up to the beginning of the sentence. If the current point is between two sentences, then the whole of the previous sentence is killed.

Kill Region

Editor Command

Arguments: None
Key sequence: Ctrl+W

Kills the region between the current point and the mark.

Save Region

Editor Command

Arguments: None
Key sequence: Alt+W

Pushes the region between the current point and the mark onto the kill ring without deleting it from the buffer. Text saved in this way can therefore be inserted elsewhere without first being killed.

Append Next Kill

Editor Command

Arguments: None
Key sequence: Alt+Ctrl+W

If the next command entered kills any text then this text will be appended to the existing kill text instead of being pushed separately onto the kill ring.

Zap To Char

Editor Command

Arguments: None
Key sequence: Alt+Z

Prompts for a character and kills text from the current point to the next occurrence of that character in the current buffer. If a prefix argument p is used, then it kills to the p 'th occurrence. If p is negative, then it kills backwards.

An editor error is signaled if the character cannot be found in the buffer.


LispWorks Editor User Guide (Windows version) - 3 May 2011

NextPrevUpTopContentsIndex