Next Previous Up Top Contents Index

2.6 Basic editing commands

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 pressingCtrl+Space to set a mark, and then taking the cursor to the end of the text and pressingCtrl+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 pressingCtrl+Y to insert the copied text.

If the original text is to be copied but not killed, use the command +Winstead ofCtrl+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" on page 37.

Ctrl+W

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

+W

Copy the region between the mark and the current point. See "Deleting and killing text" on page 40.

Ctrl+Y

Insert (yank) a copied region before the current point. See "Inserting text" on page 44.


LispWorks Editor User Guide - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker