Go to the first, previous, next, last section, table of contents.


Mark Components

Each mark object has two main components; the position of the character pointed to by the mark (a position object) and the file which the character is contained by.

The file is the most complex component, it can be either a string naming the file or a buffer. When the file component is a string the mark is said to be non-resident since none of the editor buffers contain the character which the mark points to.

Function: mark-pos mark
Returns the position object contained in the marker mark, no copy is made: if you modify the position returned it will be reflected in the position of the mark.

Note that if you later modify the buffer the mark is resident in the position previously returned by mark-pos may be altered by the mark relocation process. See section Mark Relocation.

Function: mark-file mark
Returns the file component of mark. This will be either the name of the file or the buffer itself depending on whether the mark is resident or not. See section Mark Residency.


Go to the first, previous, next, last section, table of contents.