(signal_before_change): If inhibit_modification_hooks
authorKenichi Handa <handa@m17n.org>
Thu, 8 Oct 1998 06:45:36 +0000 (06:45 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 8 Oct 1998 06:45:36 +0000 (06:45 +0000)
is nonzero, do nothing.
(signal_after_change): Likewise.

src/insdel.c

index 17660c9..a7807dd 100644 (file)
@@ -2320,6 +2320,9 @@ signal_before_change (start_int, end_int, preserve_ptr)
   Lisp_Object preserve_marker;
   struct gcpro gcpro1, gcpro2, gcpro3;
 
+  if (inhibit_modification_hooks)
+    return;
+
   start = make_number (start_int);
   end = make_number (end_int);
   preserve_marker = Qnil;
@@ -2406,6 +2409,9 @@ void
 signal_after_change (charpos, lendel, lenins)
      int charpos, lendel, lenins;
 {
+  if (inhibit_modification_hooks)
+    return;
+
   /* If we are deferring calls to the after-change functions
      and there are no before-change functions,
      just record the args that we were going to use.  */