This section describes how to change the position of an existing marker. When you do this, be sure you know whether the marker is used outside of your program, and, if so, what effects will result from moving it—otherwise, confusing things may happen in other parts of Emacs.
This function moves marker to position in buffer. If buffer is not provided, it defaults to the current buffer.
If position is nil
or a marker that points nowhere, then marker is set to point nowhere.
The value returned is marker.
This is another name for set-marker
.
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/Moving-Markers.html