From: Kenichi Handa Date: Thu, 8 Oct 1998 06:45:36 +0000 (+0000) Subject: (signal_before_change): If inhibit_modification_hooks X-Git-Tag: emacs-20.4~1549 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fd16a4c6d89567554b755f27e642738349302336;p=emacs.git (signal_before_change): If inhibit_modification_hooks is nonzero, do nothing. (signal_after_change): Likewise. --- diff --git a/src/insdel.c b/src/insdel.c index 17660c962dc..a7807dd2d91 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. */