changeset 4066:bb9478383bde

(verify_interval_modification): For insertion, run the insert-before-hooks and insert-after-hooks, not the modification-hooks.
author Richard M. Stallman <rms@gnu.org>
date Tue, 13 Jul 1993 02:19:50 +0000
parents adf973a863dd
children 379b03502e48
files src/intervals.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/intervals.c	Mon Jul 12 23:32:43 1993 +0000
+++ b/src/intervals.c	Tue Jul 13 02:19:50 1993 +0000
@@ -1473,11 +1473,11 @@
 	    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),