]> code.delx.au - gnu-emacs/commitdiff
(verify_interval_modification):
authorRichard M. Stallman <rms@gnu.org>
Tue, 13 Jul 1993 02:19:50 +0000 (02:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 13 Jul 1993 02:19:50 +0000 (02:19 +0000)
For insertion, run the insert-before-hooks and insert-after-hooks,
not the modification-hooks.

src/intervals.c

index da391d559cbecde1ee79da860f35c7a2d18702d6..8a77073278a9265014e598200503938734e8e2f3 100644 (file)
@@ -1473,11 +1473,11 @@ verify_interval_modification (buf, start, end)
            error ("Attempt to insert within read-only text");
        }
 
-      /* Run both mod hooks (just once if they're the same).  */
+      /* Run both insert hooks (just once if they're the same).  */
       if (!NULL_INTERVAL_P (prev))
-       prev_mod_hooks = textget (prev->plist, Qmodification_hooks);
+       prev_mod_hooks = textget (prev->plist, Qinsert_after_hooks);
       if (!NULL_INTERVAL_P (i))
-       mod_hooks = textget (i->plist, Qmodification_hooks);
+       mod_hooks = textget (i->plist, Qinsert_before_hooks);
       GCPRO1 (mod_hooks);
       if (! NILP (prev_mod_hooks))
        call_mod_hooks (prev_mod_hooks, make_number (start),