aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-04-14 08:51:18 +0000
committerRichard M. Stallman1997-04-14 08:51:18 +0000
commitb2adc409373e9fbdd667c594fd4b0e04dcf48f23 (patch)
tree76af1cee501ab8b8806a6fb2ff34043735059b29 /src
parent9856e2185f488477d974c4d373b0838bad2737fd (diff)
downloademacs-b2adc409373e9fbdd667c594fd4b0e04dcf48f23.tar.gz
emacs-b2adc409373e9fbdd667c594fd4b0e04dcf48f23.zip
(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.")
477 error ("Changes to be undone are outside visible portion of buffer"); 477 error ("Changes to be undone are outside visible portion of buffer");
478 SET_PT (pos); 478 SET_PT (pos);
479 479
480 /* Insert before markers so that if the mark is 480 /* Now that we record marker adjustments
481 currently on the boundary of this deletion, it 481 (caused by deletion) for undo,
482 ends up on the other side of the now-undeleted 482 we should always insert after markers,
483 text from point. Since undo doesn't even keep 483 so that undoing the marker adjustments
484 track of the mark, this isn't really necessary, 484 put the markers back in the right place. */
485 but it may lead to better behavior in certain 485 Finsert (1, &membuf);
486 situations. */
487 Finsert_before_markers (1, &membuf);
488 SET_PT (pos); 486 SET_PT (pos);
489 } 487 }
490 } 488 }