www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_121.html   search  
Buy the book!

Programming in Emacs Lisp

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8. 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 in a List  Text is stored in a list.
8.1 zap-to-char  Cutting out text up to a character.
8.2 kill-region  Cutting text out of a region.
8.3 delete-and-extract-region: Digressing into C  Minor note on C programming language macros.
8.4 Initializing a Variable with defvar  How to give a variable an initial value.
8.5 copy-region-as-kill  A definition for copying text.
8.6 Review  
8.7 Searching Exercises  

  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003