GNU Info

Info Node: (emacs)RegText

(emacs)RegText


Next: RegRect Prev: RegPos Up: Registers
Enter node , (file) or (file)node

Saving Text in Registers
========================

   When you want to insert a copy of the same piece of text several
times, it may be inconvenient to yank it from the kill ring, since each
subsequent kill moves that entry further down the ring.  An alternative
is to store the text in a register and later retrieve it.

`C-x r s R'
     Copy region into register R (`copy-to-register').

`C-x r i R'
     Insert text from register R (`insert-register').

`M-x append-to-register <RET> R'
     Append region to text in register R.

`M-x prepend-to-register <RET> R'
     Prepend region to text in register R.

   `C-x r s R' stores a copy of the text of the region into the
register named R.  `C-u C-x r s R', the same command with a numeric
argument, deletes the text from the buffer as well; you can think of
this as "moving" the region text into the register.

   `M-x append-to-register <RET> R' appends the copy of the text in the
region to the text already stored in the register named R.  If invoked
with a numeric argument, it deletes the region after appending it to
the register.  A similar command `prepend-to-register' works the same,
except that it _prepends_ the region text to the text in the register,
rather than _appending_ it.

   `C-x r i R' inserts in the buffer the text from register R.
Normally it leaves point before the text and places the mark after, but
with a numeric argument (`C-u') it puts point after the text and the
mark before.


automatically generated by info2www version 1.2.2.9