GNU Info

Info Node: (emacs-lisp-intro.info)Cutting & Storing Text

(emacs-lisp-intro.info)Cutting & Storing Text


Next: List Implementation Prev: car cdr & cons Up: Top
Enter node , (file) or (file)node

Cutting and Storing Text
************************

   Whenever you cut or clip text out of a buffer with a `kill' command
in GNU Emacs, it is stored in a list and you can bring it back with a
`yank' command.

   (The use of the word `kill' in Emacs for processes which specifically
_do not_ destroy the values of the entities is an unfortunate
historical accident.  A much more appropriate word would be `clip' since
that is what the kill commands do; they clip text out of a buffer and
put it into storage from which it can be brought back.  I have often
been tempted to replace globally all occurrences of `kill' in the Emacs
sources with `clip' and all occurrences of `killed' with `clipped'.)

Storing Text
Text is stored in a list.
zap-to-char
Cutting out text up to a character.
kill-region
Cutting text out of a region.
Digression into C
Minor note on C programming language macros.
defvar
How to give a variable an initial value.
copy-region-as-kill
A definition for copying text.
cons & search-fwd Review
search Exercises

automatically generated by info2www version 1.2.2.9