summaryrefslogtreecommitdiff
path: root/src/insdel.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-03-01 08:55:35 +0000
committerRichard M. Stallman <rms@gnu.org>1993-03-01 08:55:35 +0000
commite6a109edb7476e240664370e1ab581f73320a0ad (patch)
treee6d1c2b090feb5240ff6f1eb3dcd7a959e816936 /src/insdel.c
parentd8d98e26376fbc9d202f55ba6754a627f15f346e (diff)
downloademacs-e6a109edb7476e240664370e1ab581f73320a0ad.tar.gz
(del_range): Update point before offset_intervals.
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 7f25a967d46..35345440c2a 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -444,9 +444,6 @@ del_range (from, to)
record_delete (from, numdel);
MODIFF++;
- /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
- offset_intervals (current_buffer, point, - numdel);
-
/* Relocate point as if it were a marker. */
if (from < point)
{
@@ -456,6 +453,9 @@ del_range (from, to)
SET_PT (point - numdel);
}
+ /* Only defined if Emacs is compiled with USE_TEXT_PROPERTIES */
+ offset_intervals (current_buffer, point, - numdel);
+
/* 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);