mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 11:21:04 -08:00
(Fmarker_buffer): Make test for odd case into a failure.
This commit is contained in:
parent
85e616ab18
commit
0754c46a89
1 changed files with 6 additions and 3 deletions
|
|
@ -452,9 +452,12 @@ Returns nil if MARKER points into a dead buffer. */)
|
|||
if (XMARKER (marker)->buffer)
|
||||
{
|
||||
XSETBUFFER (buf, XMARKER (marker)->buffer);
|
||||
/* Return marker's buffer only if it is not dead. */
|
||||
if (!NILP (XBUFFER (buf)->name))
|
||||
return buf;
|
||||
/* If the buffer is dead, we're in trouble: the buffer pointer here
|
||||
does not preserve the buffer from being GC'd (it's weak), so
|
||||
markers have to be unlinked from their buffer as soon as the buffer
|
||||
is killed. */
|
||||
eassert (!NILP (XBUFFER (buf)->name));
|
||||
return buf;
|
||||
}
|
||||
return Qnil;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue