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.
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.
This function returns t
if object is an integer or a marker, nil
otherwise.
This function returns t
if object is a number (either integer or floating point) or a marker, nil
otherwise.
Copyright © 1990-1996, 1998-2019 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Predicates-on-Markers.html