From b69f979760fd5cabff5eb36171aefae3f933be2c Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 11 May 1998 01:14:36 +0000 Subject: [PATCH] (Fset_buffer_multibyte): Error if marker is put on buffer's marker-chain while we have temporarily put nil there. --- src/buffer.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.2