| www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_130.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
kill-region
The zap-to-char function uses the kill-region function.
This function clips text from a region and copies that text to
the kill ring, from which it may be retrieved.
The Emacs 21 version of that function uses condition-case and
copy-region-as-kill, both of which we will explain.
condition-case is an important special form.
In essence, the kill-region function calls
condition-case, which takes three arguments. In this function,
the first argument does nothing. The second argument contains the
code that does the work when all goes well. The third argument
contains the code that is called in the event of an error.
The Complete kill-regionDefinitionThe function definition. 8.2.1 condition-caseDealing with a problem. 8.2.2 delete-and-extract-regionDoing the work.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |