summaryrefslogtreecommitdiff
path: root/src/insdel.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1992-09-28 13:10:15 +0000
committerRichard M. Stallman <rms@gnu.org>1992-09-28 13:10:15 +0000
commitbe09561e2a423bd8d9699ff254c1199cc103254e (patch)
treed0a5494b87b5bdeda47dc5a827273251348c2e99 /src/insdel.c
parent46fa307385d0d53b3c32cbb006fe6a3d7ad4b7c4 (diff)
downloademacs-be09561e2a423bd8d9699ff254c1199cc103254e.tar.gz
(del_range): Call record_delete before updating point.
Diffstat (limited to 'src/insdel.c')
-rw-r--r--src/insdel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 1deda9d7ac8..489f80f1ea3 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -425,6 +425,9 @@ del_range (from, to)
prepare_to_modify_buffer (from, to);
+ record_delete (from, numdel);
+ MODIFF++;
+
/* Relocate point as if it were a marker. */
if (from < point)
{
@@ -434,9 +437,6 @@ del_range (from, to)
SET_PT (point - numdel);
}
- record_delete (from, numdel);
- MODIFF++;
-
/* Relocate all markers pointing into the new, larger gap
to point at the end of the text before the gap. */
adjust_markers (to + GAP_SIZE, to + GAP_SIZE, - numdel - GAP_SIZE);