]> git.eshelyaron.com Git - emacs.git/commitdiff
(gap_left, gap_right, modify_region):
authorRichard M. Stallman <rms@gnu.org>
Sun, 15 Sep 1996 01:57:44 +0000 (01:57 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 15 Sep 1996 01:57:44 +0000 (01:57 +0000)
Compare overlay_unchanged_modified with OVERLAY_MODIFF.

src/insdel.c

index 8b4cc5f8c2a6db4830389fe6e1b6b93b6461d2cd..872858041ebb8a6e4f162fd27b0de84f7449bc2d 100644 (file)
@@ -64,7 +64,8 @@ gap_left (pos, newgap)
 
   if (!newgap)
     {
-      if (unchanged_modified == MODIFF)
+      if (unchanged_modified == MODIFF
+         && overlay_unchanged_modified == OVERLAY_MODIFF)
        {
          beg_unchanged = pos;
          end_unchanged = Z - pos - 1;
@@ -144,7 +145,9 @@ gap_right (pos)
 
   pos--;
 
-  if (unchanged_modified == MODIFF)
+  if (unchanged_modified == MODIFF
+      && overlay_unchanged_modified == OVERLAY_MODIFF)
+
     {
       beg_unchanged = pos;
       end_unchanged = Z - pos - 1;
@@ -716,10 +719,13 @@ modify_region (buffer, start, end)
 
   prepare_to_modify_buffer (start, end);
 
-  if (start - 1 < beg_unchanged || unchanged_modified == MODIFF)
+  if (start - 1 < beg_unchanged
+      || (unchanged_modified == MODIFF
+         && overlay_unchanged_modified == OVERLAY_MODIFF))
     beg_unchanged = start - 1;
   if (Z - end < end_unchanged
-      || unchanged_modified == MODIFF)
+      || (unchanged_modified == MODIFF
+         && overlay_unchanged_modified == OVERLAY_MODIFF))
     end_unchanged = Z - end;
 
   if (MODIFF <= SAVE_MODIFF)