diff options
| author | Karl Heuer | 1994-04-05 03:32:07 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-05 03:32:07 +0000 |
| commit | 3bd13e92038b96817b6709d8f65bd37bc7d70f59 (patch) | |
| tree | aee38048c6e2eaa367e63e25feaf924b08a91f69 /src/buffer.c | |
| parent | c26bb96ea3cd409dc474cbba19cdde473ad1d345 (diff) | |
| download | emacs-3bd13e92038b96817b6709d8f65bd37bc7d70f59.tar.gz emacs-3bd13e92038b96817b6709d8f65bd37bc7d70f59.zip | |
(verify_overlay_modification): Run modification-hooks for any deletion that
intersects the overlay.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c index 8cb523596a2..d8742eb2c61 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2057,9 +2057,9 @@ verify_overlay_modification (start, end) | |||
| 2057 | call_overlay_mod_hooks (prop, overlay, start, end); | 2057 | call_overlay_mod_hooks (prop, overlay, start, end); |
| 2058 | } | 2058 | } |
| 2059 | } | 2059 | } |
| 2060 | if (insertion | 2060 | /* Test for intersecting intervals. This does the right thing |
| 2061 | ? (XFASTINT (start) > startpos && XFASTINT (end) < endpos) | 2061 | for both insertion and deletion. */ |
| 2062 | : (XFASTINT (start) >= startpos && XFASTINT (end) <= endpos)) | 2062 | if (XFASTINT (end) > startpos && XFASTINT (start) < endpos) |
| 2063 | { | 2063 | { |
| 2064 | prop = Foverlay_get (overlay, Qmodification_hooks); | 2064 | prop = Foverlay_get (overlay, Qmodification_hooks); |
| 2065 | if (!NILP (prop)) | 2065 | if (!NILP (prop)) |
| @@ -2103,9 +2103,9 @@ verify_overlay_modification (start, end) | |||
| 2103 | call_overlay_mod_hooks (prop, overlay, start, end); | 2103 | call_overlay_mod_hooks (prop, overlay, start, end); |
| 2104 | } | 2104 | } |
| 2105 | } | 2105 | } |
| 2106 | if (insertion | 2106 | /* Test for intersecting intervals. This does the right thing |
| 2107 | ? (XFASTINT (start) > startpos && XFASTINT (end) < endpos) | 2107 | for both insertion and deletion. */ |
| 2108 | : (XFASTINT (start) >= startpos && XFASTINT (end) <= endpos)) | 2108 | if (XFASTINT (end) > startpos && XFASTINT (start) < endpos) |
| 2109 | { | 2109 | { |
| 2110 | prop = Foverlay_get (overlay, Qmodification_hooks); | 2110 | prop = Foverlay_get (overlay, Qmodification_hooks); |
| 2111 | if (!NILP (prop)) | 2111 | if (!NILP (prop)) |