diff options
Diffstat (limited to 'devdocs/elisp/information-from-markers.html')
| -rw-r--r-- | devdocs/elisp/information-from-markers.html | 30 |
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)) + ⇒ #<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> |
