changeset 1963:05dd60327cc4

(del_range): Update point before offset_intervals.
author Richard M. Stallman <rms@gnu.org>
date Mon, 01 Mar 1993 08:55:35 +0000
parents d658e86a23ae
children e6c49ff3a53c
files src/insdel.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Sun Feb 28 22:29:46 1993 +0000
+++ b/src/insdel.c	Mon Mar 01 08:55:35 1993 +0000
@@ -444,9 +444,6 @@
   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 @@
 	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);