GNU Info

Info Node: (elisp)Predicates on Markers

(elisp)Predicates on Markers


Next: Creating Markers Prev: Overview of Markers Up: Markers
Enter node , (file) or (file)node

Predicates on Markers
=====================

   You can test an object to see whether it is a marker, or whether it
is either an integer or a marker.  The latter test is useful in
connection with the arithmetic functions that work with both markers
and integers.

 - Function: markerp object
     This function returns `t' if OBJECT is a marker, `nil' otherwise.
     Note that integers are not markers, even though many functions
     will accept either a marker or an integer.

 - Function: integer-or-marker-p object
     This function returns `t' if OBJECT is an integer or a marker,
     `nil' otherwise.

 - Function: number-or-marker-p object
     This function returns `t' if OBJECT is a number (either integer or
     floating point) or a marker, `nil' otherwise.


automatically generated by info2www version 1.2.2.9