diff options
author | Kenichi Handa <handa@m17n.org> | 1998-10-08 06:45:36 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1998-10-08 06:45:36 +0000 |
commit | 07ee9a0cc8a2f39592104e1c82ee3df0b12c01c8 (patch) | |
tree | 571277d461dbb5a18d634d4e90d8e055275e9b65 /src/insdel.c | |
parent | fa98181a82fd11d57469a19374e6d0635aedc085 (diff) | |
download | emacs-07ee9a0cc8a2f39592104e1c82ee3df0b12c01c8.tar.gz |
(signal_before_change): If inhibit_modification_hooks
is nonzero, do nothing.
(signal_after_change): Likewise.
Diffstat (limited to 'src/insdel.c')
-rw-r--r-- | src/insdel.c | 6 |
1 files changed, 6 insertions, 0 deletions
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. */ |