From: Richard M. Stallman Date: Mon, 11 May 1998 01:14:36 +0000 (+0000) Subject: (Fset_buffer_multibyte): Error if marker is put X-Git-Tag: emacs-20.3~1054 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b69f979760fd5cabff5eb36171aefae3f933be2c;p=emacs.git (Fset_buffer_multibyte): Error if marker is put on buffer's marker-chain while we have temporarily put nil there. --- diff --git a/src/buffer.c b/src/buffer.c index e781d25646c..70cb13a9b75 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1822,6 +1822,12 @@ but the contents viewed as characters do change.") tail = XMARKER (tail)->chain; } + + /* Make sure no markers were put on the chain + while the chain value was incorrect. */ + if (! EQ (BUF_MARKERS (current_buffer), Qnil)) + abort (); + BUF_MARKERS (current_buffer) = markers; /* Do this last, so it can calculate the new correspondences