set-marker

set-marker is a built-in function in `C source code'.

(set-marker MARKER POSITION &optional BUFFER)

Position MARKER before character number POSITION in BUFFER.
If BUFFER is omitted or nil, it defaults to the current buffer. If
POSITION is nil, makes marker point nowhere so it no longer slows down
editing in any buffer. Returns MARKER.