Next: , Previous: , Up: Markers   [Contents][Index]


42.2 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 or either an integer, a character, or a marker. The latter tests are useful in connection with the arithmetic functions that work with any of markers, integers, or characters.

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: integer-char-or-marker-p object

This function returns t if object is an integer, a character, or a marker, nil otherwise.

Function: number-or-marker-p object

This function returns t if object is a number (either kind) or a marker, nil otherwise.

Function: number-char-or-marker-p object

This function returns t if object is a number (either kind), a character, or a marker, nil otherwise.