diff src/buffer.c @ 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 55fc60b09fa7
children b6edeb61a779
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