diff options
| author | Richard M. Stallman | 1993-07-13 02:19:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-13 02:19:50 +0000 |
| commit | c36494197bf0d9e0418eebd94243d05e9a59c769 (patch) | |
| tree | e11497d15f6e541ab7400cab548173f755dcf029 /src | |
| parent | e58aa38535a2a7fa14bc66a19ec8b360aaaa7c7a (diff) | |
| download | emacs-c36494197bf0d9e0418eebd94243d05e9a59c769.tar.gz emacs-c36494197bf0d9e0418eebd94243d05e9a59c769.zip | |
(verify_interval_modification):
For insertion, run the insert-before-hooks and insert-after-hooks,
not the modification-hooks.
Diffstat (limited to 'src')
| -rw-r--r-- | src/intervals.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intervals.c b/src/intervals.c index da391d559cb..8a77073278a 100644 --- a/src/intervals.c +++ b/src/intervals.c | |||
| @@ -1473,11 +1473,11 @@ verify_interval_modification (buf, start, end) | |||
| 1473 | error ("Attempt to insert within read-only text"); | 1473 | error ("Attempt to insert within read-only text"); |
| 1474 | } | 1474 | } |
| 1475 | 1475 | ||
| 1476 | /* Run both mod hooks (just once if they're the same). */ | 1476 | /* Run both insert hooks (just once if they're the same). */ |
| 1477 | if (!NULL_INTERVAL_P (prev)) | 1477 | if (!NULL_INTERVAL_P (prev)) |
| 1478 | prev_mod_hooks = textget (prev->plist, Qmodification_hooks); | 1478 | prev_mod_hooks = textget (prev->plist, Qinsert_after_hooks); |
| 1479 | if (!NULL_INTERVAL_P (i)) | 1479 | if (!NULL_INTERVAL_P (i)) |
| 1480 | mod_hooks = textget (i->plist, Qmodification_hooks); | 1480 | mod_hooks = textget (i->plist, Qinsert_before_hooks); |
| 1481 | GCPRO1 (mod_hooks); | 1481 | GCPRO1 (mod_hooks); |
| 1482 | if (! NILP (prev_mod_hooks)) | 1482 | if (! NILP (prev_mod_hooks)) |
| 1483 | call_mod_hooks (prev_mod_hooks, make_number (start), | 1483 | call_mod_hooks (prev_mod_hooks, make_number (start), |