Next: Searching and Matching Prev: Markers Up: Top
This chapter describes the functions that deal with the text in a
buffer. Most examine, insert or delete text in the current buffer,
often in the vicinity of point. Many are interactive. All the
functions that change the text provide for undoing the changes (*note
Many text-related functions operate on a region of text defined by
two buffer positions passed in arguments named START and END. These
arguments should be either markers (Note: Markers.) or or numeric
character positions (Note: Positions.). The order of these arguments
does not matter; it is all right for START to be the end of the region
and END the beginning. For example, `(delete-region 1 10)' and
`(delete-region 10 1)' perform identically. An `args-out-of-range'
error is signaled if either START or END is outside the accessible
portion of the buffer. In an interactive call, point and the mark are
used for these arguments.
Throughout this chapter, "text" refers to the characters in the
- Near Point
- Examining text in the vicinity of point.
- Buffer Contents
- Examining text in a general fashion.
- Comparing Text
- Comparing substrings of buffers.
- Adding new text to a buffer.
- Commands for Insertion
- User-level commands to insert text.
- Removing text from a buffer.
- User-Level Deletion
- User-level commands to delete text.
- The Kill Ring
- Where removed text sometimes is saved for later use.
- Undoing changes to the text of a buffer.
- Maintaining Undo
- How to enable and disable undo information.
How to control how much information is kept.
- Auto Filling
- How auto-fill mode is implemented to break lines.
- Functions for explicit filling.
- Functions for sorting parts of the buffer.
- Functions to insert or adjust indentation.
- Computing horizontal positions, and using them.
- Case Changes
- Case conversion of parts of the buffer.
- Text Properties
- Assigning Lisp property lists to text characters.
- Replacing a given character wherever it appears.
- Inserting or deleting underlining-by-overstrike.
- How registers are implemented. Accessing the text or
position stored in a register.
- Change Hooks
- Supplying functions to be run when text is changed.
automatically generated by info2www