| www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_123.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
zap-to-char
The zap-to-char function barely changed between GNU Emacs
version 19 and GNU Emacs version 21. However, zap-to-char
calls another function, kill-region, which enjoyed a major rewrite
on the way to version 21.
The kill-region function in Emacs 19 is complex, but does not
use code that is important at this time. We will skip it.
The kill-region function in Emacs 21 is easier to read than the
same function in Emacs 19 and introduces a very important concept,
that of error handling. We will walk through the function.
But first, let us look at the interactive zap-to-char function.
The Complete zap-to-charImplementationThe complete implementation. 8.1.1 The interactiveExpressionA three part interactive expression. 8.1.2 The Body of zap-to-charA short overview. 8.1.3 The search-forwardFunctionHow to search for a string. 8.1.4 The prognSpecial FormThe prognspecial form.8.1.5 Summing up zap-to-charUsing pointandsearch-forward.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |