; Fix recent changes in documentation

* doc/lispref/markers.texi (Information from Markers):
* etc/NEWS: Improve description of 'marker-last-position'.
This commit is contained in:
Eli Zaretskii 2024-03-16 11:58:56 +02:00
parent d60d625f6e
commit d855f1c3f9
2 changed files with 6 additions and 4 deletions

View file

@ -285,9 +285,10 @@ This function returns the position that @var{marker} points to, or
@defun marker-last-position marker
This function returns the last known position of @var{marker} in its
buffer. It behaves like @code{marker-position} with one exception: If
buffer. It behaves like @code{marker-position} with one exception: if
the buffer of @var{marker} has been killed, it returns the last position
of @var{marker} in that buffer before it was killed.
of @var{marker} in that buffer before the buffer was killed, instead of
returning @code{nil}.
@end defun
@defun marker-buffer marker

View file

@ -1817,8 +1817,9 @@ It returns the name of a buffer before the last time it was renamed or
killed.
** New primitive 'marker-last-position'.
It returns the last position of MARKER in its buffer even if that buffer
has been killed.
It returns the last position of a marker in its buffer even if that
buffer has been killed. ('marker-position' would return nil in that
case.)
** Functions and variables to transpose sexps