changeset 1247:8dce1588f37f

(del_range): Call record_delete before updating point.
author Richard M. Stallman <rms@gnu.org>
date Mon, 28 Sep 1992 13:10:15 +0000
parents 5e25dd40a160
children 68c77558d34b
files src/insdel.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Mon Sep 28 13:02:52 1992 +0000
+++ b/src/insdel.c	Mon Sep 28 13:10:15 1992 +0000
@@ -425,6 +425,9 @@
 
   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 @@
 	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);