]> git.eshelyaron.com Git - emacs.git/commitdiff
(verify_overlay_modification): Run modification-hooks for any deletion that
authorKarl Heuer <kwzh@gnu.org>
Tue, 5 Apr 1994 03:32:07 +0000 (03:32 +0000)
committerKarl Heuer <kwzh@gnu.org>
Tue, 5 Apr 1994 03:32:07 +0000 (03:32 +0000)
intersects the overlay.

src/buffer.c

index 8cb523596a2e64b2da8e5883a40431b1636d5c2a..d8742eb2c6169e015a307c98133b74a3617f4587 100644 (file)
@@ -2057,9 +2057,9 @@ verify_overlay_modification (start, end)
              call_overlay_mod_hooks (prop, overlay, start, end);
            }
        }
-      if (insertion
-         ? (XFASTINT (start) > startpos && XFASTINT (end) < endpos)
-         : (XFASTINT (start) >= startpos && XFASTINT (end) <= endpos))
+      /* Test for intersecting intervals.  This does the right thing
+        for both insertion and deletion.  */
+      if (XFASTINT (end) > startpos && XFASTINT (start) < endpos)
        {
          prop = Foverlay_get (overlay, Qmodification_hooks);
          if (!NILP (prop))
@@ -2103,9 +2103,9 @@ verify_overlay_modification (start, end)
              call_overlay_mod_hooks (prop, overlay, start, end);
            }
        }
-      if (insertion
-         ? (XFASTINT (start) > startpos && XFASTINT (end) < endpos)
-         : (XFASTINT (start) >= startpos && XFASTINT (end) <= endpos))
+      /* Test for intersecting intervals.  This does the right thing
+        for both insertion and deletion.  */
+      if (XFASTINT (end) > startpos && XFASTINT (start) < endpos)
        {
          prop = Foverlay_get (overlay, Qmodification_hooks);
          if (!NILP (prop))