changeset 22023:8c00a2d112cc

(Fset_buffer_multibyte): Error if marker is put on buffer's marker-chain while we have temporarily put nil there.
author Richard M. Stallman <rms@gnu.org>
date Mon, 11 May 1998 01:14:36 +0000
parents 64ac294567a6
children bf37812dd6bb
files src/buffer.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Mon May 11 01:11:02 1998 +0000
+++ b/src/buffer.c	Mon May 11 01:14:36 1998 +0000
@@ -1822,6 +1822,12 @@
 
 	  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