diff --git a/doc/lispref/markers.texi b/doc/lispref/markers.texi index 28ad0ff73c0..a13edb02ae6 100644 --- a/doc/lispref/markers.texi +++ b/doc/lispref/markers.texi @@ -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 diff --git a/etc/NEWS b/etc/NEWS index 8cad9412def..50f0ee4a1aa 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -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