GNU Info

Info Node: (elisp)Information from Markers

(elisp)Information from Markers


Next: Marker Insertion Types Prev: Creating Markers Up: Markers
Enter node , (file) or (file)node

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

 - Function: buffer-has-markers-at position
     This function returns `t' if one or more markers point at position
     POSITION in the current buffer.


automatically generated by info2www version 1.2.2.9