Commit b2adc409 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fprimitive_undo): When inserting, always insert

after markers (the ordinary kind of insertion).
parent 9856e218
...@@ -477,14 +477,12 @@ Return what remains of the list.") ...@@ -477,14 +477,12 @@ Return what remains of the list.")
error ("Changes to be undone are outside visible portion of buffer"); error ("Changes to be undone are outside visible portion of buffer");
SET_PT (pos); SET_PT (pos);
/* Insert before markers so that if the mark is /* Now that we record marker adjustments
currently on the boundary of this deletion, it (caused by deletion) for undo,
ends up on the other side of the now-undeleted we should always insert after markers,
text from point. Since undo doesn't even keep so that undoing the marker adjustments
track of the mark, this isn't really necessary, put the markers back in the right place. */
but it may lead to better behavior in certain Finsert (1, &membuf);
situations. */
Finsert_before_markers (1, &membuf);
SET_PT (pos); SET_PT (pos);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment