From fd16a4c6d89567554b755f27e642738349302336 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 8 Oct 1998 06:45:36 +0000 Subject: [PATCH 1/1] (signal_before_change): If inhibit_modification_hooks is nonzero, do nothing. (signal_after_change): Likewise. --- src/insdel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/insdel.c b/src/insdel.c index 17660c962d..a7807dd2d9 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -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. */ -- 2.20.1