NextPrevUpTopContentsIndex

2.6.7 Killing and Yanking

The commands given below are used to copy areas of text and insert them at some other point in the buffer. Note that there is no corresponding "Cut and paste" section in the command references, so direct cross references have been included with each command.

When cutting and pasting, the first thing to do is to copy the region of text to be moved. This is done by taking the cursor to the beginning of the piece of text to be copied and pressing Ctrl+Space to set a mark, and then taking the cursor to the end of the text and pressing Ctrl+W . This kills the region between the current point and the mark but keeps a copy of the killed text. This copy can then be inserted anywhere in the buffer by putting the cursor at the required position and then pressing Ctrl+Y to insert the copied text.

If the original text is to be copied but not killed, use the command Meta+W instead of Ctrl+W. This copies the text ready for insertion, but does not delete it.

Ctrl+Space

Set a mark for a region. See Marks and regions.

Ctrl+W

Kill the region between the mark and current point, and save a copy of that region. See Deleting and killing text.

Meta+W

Copy the region between the mark and the current point. See Deleting and killing text.

Ctrl+Y

Insert (yank) a copied region before the current point. See Inserting text.


LispWorks Editor User Guide (Macintosh version) - 14 Mar 2008

NextPrevUpTopContentsIndex