Function: marker-position

marker-position is a function defined in marker.c.

Signature

(marker-position MARKER)

Documentation

Return the position of MARKER, or nil if it points nowhere.

View in manual

Probably introduced at or before Emacs version 1.6.

Source Code

// Defined in /usr/src/emacs/src/marker.c
{
  CHECK_MARKER (marker);
  if (XMARKER (marker)->buffer)
    return make_fixnum (XMARKER (marker)->charpos);

  return Qnil;
}