A marker is a Lisp object used to specify a position in a buffer relative to the surrounding text. A marker changes its offset from the beginning of the buffer automatically whenever text is inserted or deleted, so that it stays with the two characters on either side of it.
• Overview of Markers: | The components of a marker, and how it relocates. | |
• Predicates on Markers: | Testing whether an object is a marker. | |
• Creating Markers: | Making empty markers or markers at certain places. | |
• Information from Markers: | Finding the marker’s buffer or character position. | |
• Marker Insertion Types: | Two ways a marker can relocate when you insert where it points. | |
• Moving Markers: | Moving the marker to a new buffer or position. | |
• The Mark: | How the mark is implemented with a marker. | |
• The Region: | How to access the region. |
Copyright © 1990-1996, 1998-2019 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Markers.html