Function: marker-last-position

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

Signature

(marker-last-position MARKER)

Documentation

Return last position of MARKER in its buffer.

This is like marker-position with one exception: If the buffer of
MARKER is dead, it returns the last position of MARKER in that buffer before it was killed.

View in manual

Probably introduced at or before Emacs version 30.1.

Source Code

// Defined in /usr/src/emacs/src/marker.c
{
  CHECK_MARKER (marker);

  return make_fixnum (XMARKER (marker)->charpos);
}