changeset 10999:84076f6a1f1b

(unchain_marker): Allow differing buffers as long as they have the same text.
author Richard M. Stallman <rms@gnu.org>
date Tue, 14 Mar 1995 05:45:39 +0000
parents 2c184ff2351d
children 8482ccc01ec7
files src/marker.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/marker.c	Tue Mar 14 05:43:48 1995 +0000
+++ b/src/marker.c	Tue Mar 14 05:45:39 1995 +0000
@@ -220,8 +220,9 @@
 	      BUF_MARKERS (b) = next;
 	      /* Deleting first marker from the buffer's chain.  Crash
 		 if new first marker in chain does not say it belongs
-		 to the same buffer (or one of its indirect buffers).  */
-	      if (!NILP (next) && b != XMARKER (next)->buffer)
+		 to the same buffer, or at least that they have the same
+		 base buffer.  */
+	      if (!NILP (next) && b->text != XMARKER (next)->buffer->text)
 		abort ();
 	    }
 	  else