From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/information-from-markers.html | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 devdocs/elisp/information-from-markers.html (limited to 'devdocs/elisp/information-from-markers.html') 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 @@ +

Information from Markers

This section describes the functions for accessing the components of a marker object.

Function: marker-position marker +

This function returns the position that marker points to, or nil if it points nowhere.

+
Function: marker-buffer marker +
+

This function returns the buffer that marker points into, or nil if it points nowhere.

(setq m (make-marker))
+     ⇒ #<marker in no buffer>
+
+
(marker-position m)
+     ⇒ nil
+
+
(marker-buffer m)
+     ⇒ nil
+
+ +
(set-marker m 3770 (current-buffer))
+     ⇒ #<marker at 3770 in markers.texi>
+
+
(marker-buffer m)
+     ⇒ #<buffer markers.texi>
+
+
(marker-position m)
+     ⇒ 3770
+
+
+
+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Information-from-Markers.html +

+
-- cgit v1.2.3