summaryrefslogtreecommitdiff
path: root/devdocs/elisp/information-from-markers.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/information-from-markers.html
new repository
Diffstat (limited to 'devdocs/elisp/information-from-markers.html')
-rw-r--r--devdocs/elisp/information-from-markers.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/devdocs/elisp/information-from-markers.html b/devdocs/elisp/information-from-markers.html
new file mode 100644
index 00000000..a1d596c4
--- /dev/null
+++ b/devdocs/elisp/information-from-markers.html
@@ -0,0 +1,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))
+ ⇒ #&lt;marker in no buffer&gt;
+</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))
+ ⇒ #&lt;marker at 3770 in markers.texi&gt;
+</pre>
+<pre class="example">(marker-buffer m)
+ ⇒ #&lt;buffer markers.texi&gt;
+</pre>
+<pre class="example">(marker-position m)
+ ⇒ 3770
+</pre>
+</div> </dd>
+</dl><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 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>