# HG changeset patch # User Richard M. Stallman # Date 861007878 0 # Node ID dc2cb454b3303a5e578f4b83ce797aa4790251ae # Parent 8f167ece7e391ec60c82f9956e5c478334f2d3a0 (Fprimitive_undo): When inserting, always insert after markers (the ordinary kind of insertion). diff -r 8f167ece7e39 -r dc2cb454b330 src/undo.c --- a/src/undo.c Mon Apr 14 08:50:23 1997 +0000 +++ b/src/undo.c Mon Apr 14 08:51:18 1997 +0000 @@ -477,14 +477,12 @@ error ("Changes to be undone are outside visible portion of buffer"); SET_PT (pos); - /* 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); + /* Now that we record marker adjustments + (caused by deletion) for undo, + we should always insert after markers, + so that undoing the marker adjustments + put the markers back in the right place. */ + Finsert (1, &membuf); SET_PT (pos); } }