changeset 23400:8a51c720f8d7

(signal_before_change): If inhibit_modification_hooks is nonzero, do nothing. (signal_after_change): Likewise.
author Kenichi Handa <handa@m17n.org>
date Thu, 08 Oct 1998 06:45:36 +0000
parents e80c5f687340
children a83ca83c8626
files src/insdel.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Thu Oct 08 06:45:36 1998 +0000
+++ b/src/insdel.c	Thu Oct 08 06:45:36 1998 +0000
@@ -2320,6 +2320,9 @@
   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 @@
 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.  */