summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-04-14 08:51:18 +0000
committerRichard M. Stallman <rms@gnu.org>1997-04-14 08:51:18 +0000
commit6eb76f6c5e560248bbc51ba9a8eb93cff84ec928 (patch)
tree3643d7935e9dc628c03c0a7669668f17add5119a /src
parent66018250914c6779edf090ec2149ea0df00ad7ca (diff)
downloademacs-6eb76f6c5e560248bbc51ba9a8eb93cff84ec928.tar.gz
(Fprimitive_undo): When inserting, always insert
after markers (the ordinary kind of insertion).
Diffstat (limited to 'src')
-rw-r--r--src/undo.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/undo.c b/src/undo.c
index 9a139456927..b8b1146a956 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -477,14 +477,12 @@ Return what remains of the list.")
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);
}
}