# HG changeset patch
# User Jim Blandy <jimb@redhat.com>
# Date 697769192 0
# Node ID 054dfe2f6327979b816afa18897f99da57e9c83d
# Parent  937bccff8155ca3629c647dd15717965a8369b2d
*** empty log message ***

diff -r 937bccff8155 -r 054dfe2f6327 src/undo.c
--- a/src/undo.c	Mon Feb 10 08:12:22 1992 +0000
+++ b/src/undo.c	Tue Feb 11 00:46:32 1992 +0000
@@ -307,7 +307,15 @@
 		  if (pos < BEGV || pos > ZV)
 		    error ("Changes to be undone are outside visible portion of buffer");
 		  SET_PT (pos);
-		  Finsert (1, &membuf);
+
+		  /* Insert before markers so that if the mark is
+		     currently on the boundary of this deletion, it
+		     ends up on the other side of the now-undeleted
+		     text from point.  Since undo doesn't even keep
+		     track of the mark, this isn't really necessary,
+		     but it may lead to better behavior in certain
+		     situations.  */
+		  Finsert_before_markers (1, &membuf);
 		  SET_PT (pos);
 		}
 	    }