aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-04-17 15:46:33 +0000
committerRichard M. Stallman2005-04-17 15:46:33 +0000
commitfaa44aee7b057a841cf52fa2b51d4c7a127325b8 (patch)
tree3361c6c4d05c39b3b567059b903dd0bc481a37bd
parent86cf000e8409952e492ed786102af11d4017fdd3 (diff)
downloademacs-faa44aee7b057a841cf52fa2b51d4c7a127325b8.tar.gz
emacs-faa44aee7b057a841cf52fa2b51d4c7a127325b8.zip
(Positions): Clarify converting marker to integer.
-rw-r--r--lispref/positions.texi18
1 files changed, 10 insertions, 8 deletions
diff --git a/lispref/positions.texi b/lispref/positions.texi
index 822238a6342..9a71cf29e33 100644
--- a/lispref/positions.texi
+++ b/lispref/positions.texi
@@ -15,14 +15,16 @@ speak of the character before or after a given position. However, we
15often speak of the character ``at'' a position, meaning the character 15often speak of the character ``at'' a position, meaning the character
16after that position. 16after that position.
17 17
18 Positions are usually represented as integers starting from 1, but can 18 Positions are usually represented as integers starting from 1, but
19also be represented as @dfn{markers}---special objects that relocate 19can also be represented as @dfn{markers}---special objects that
20automatically when text is inserted or deleted so they stay with the 20relocate automatically when text is inserted or deleted so they stay
21surrounding characters. Functions that expect an argument to be a 21with the surrounding characters. Functions that expect an argument to
22position (an integer), but accept a marker as a substitute, normally 22be a position (an integer), but accept a marker as a substitute,
23ignore the marker buffer. Of course, markers used this way usually 23normally ignore which buffer the marker points into; they convert the
24point to a position in the buffer that the function operates on, but 24marker to an integer, and use that integer, exactly as if you had
25that is entirely the programmer's responsibility. @xref{Markers}. 25passed the integer as the argument. Markers used this way usually
26point to a position in the buffer that the function will operate on,
27but if not, they are converted to integers anyway. @xref{Markers}.
26 28
27 See also the ``field'' feature (@pxref{Fields}), which provides 29 See also the ``field'' feature (@pxref{Fields}), which provides
28functions that are used by many cursor-motion commands. 30functions that are used by many cursor-motion commands.