Mercurial > emacs
changeset 6675:cf38c5af079d
(verify_overlay_modification): Run modification-hooks for any deletion that
intersects the overlay.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 05 Apr 1994 03:32:07 +0000 |
parents | 7ada27b4bf3c |
children | 7251020c1c79 |
files | src/buffer.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buffer.c Tue Apr 05 02:29:03 1994 +0000 +++ b/src/buffer.c Tue Apr 05 03:32:07 1994 +0000 @@ -2057,9 +2057,9 @@ 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 @@ 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))