1
Fork 0
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:
Stefan Monnier 2007-10-02 21:05:39 +00:00
parent 85e616ab18
commit 0754c46a89

View file

@ -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;
}