diff options
author | Jim Blandy <jimb@redhat.com> | 1992-02-11 00:46:32 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1992-02-11 00:46:32 +0000 |
commit | 43b24157e934b104ffab838d33eb999ff0422a52 (patch) | |
tree | 0accb88abf5378bd33d41657fe46f7ad3de0ace5 /src/undo.c | |
parent | 8015f480acf0d4ee5410bd8e01c57e5069ba5929 (diff) | |
download | emacs-43b24157e934b104ffab838d33eb999ff0422a52.tar.gz |
*** empty log message ***
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c index 852771764f1..06abcbadd3e 100644 --- a/src/undo.c +++ b/src/undo.c @@ -307,7 +307,15 @@ Return what remains of the list.") 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); } } |