blob: a1d596c4153bb8489a044cdd8a1ac888ddc5f888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<h3 class="section">Information from Markers</h3> <p>This section describes the functions for accessing the components of a marker object. </p> <dl> <dt id="marker-position">Function: <strong>marker-position</strong> <em>marker</em>
</dt> <dd><p>This function returns the position that <var>marker</var> points to, or <code>nil</code> if it points nowhere. </p></dd>
</dl> <dl> <dt id="marker-buffer">Function: <strong>marker-buffer</strong> <em>marker</em>
</dt> <dd>
<p>This function returns the buffer that <var>marker</var> points into, or <code>nil</code> if it points nowhere. </p> <div class="example"> <pre class="example">(setq m (make-marker))
⇒ #<marker in no buffer>
</pre>
<pre class="example">(marker-position m)
⇒ nil
</pre>
<pre class="example">(marker-buffer m)
⇒ nil
</pre>
<pre class="example">(set-marker m 3770 (current-buffer))
⇒ #<marker at 3770 in markers.texi>
</pre>
<pre class="example">(marker-buffer m)
⇒ #<buffer markers.texi>
</pre>
<pre class="example">(marker-position m)
⇒ 3770
</pre>
</div> </dd>
</dl><div class="_attribution">
<p class="_attribution-p">
Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
<a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Information-from-Markers.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Information-from-Markers.html</a>
</p>
</div>
|