summaryrefslogtreecommitdiff
path: root/src/insdel.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1999-09-07 03:25:35 +0000
committerRichard M. Stallman <rms@gnu.org>1999-09-07 03:25:35 +0000
commit7baf49cf5e936ccbc63dd1ebcd223f27cf6aae41 (patch)
treedcfb5c072cd877a9318c03ffab82df34a460eeb7 /src/insdel.c
parentc4ea52a64fc91467e6952d6dc32962b7ca7f940b (diff)
downloademacs-7baf49cf5e936ccbc63dd1ebcd223f27cf6aae41.tar.gz
(syms_of_insdel): Define Lisp variable inhibit-modification-hooks.
Diffstat (limited to 'src/insdel.c')
-rw-r--r--src/insdel.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/insdel.c b/src/insdel.c
index 738d55909ed..72437face1e 100644
--- a/src/insdel.c
+++ b/src/insdel.c
@@ -2727,5 +2727,11 @@ syms_of_insdel ()
"Used internally by the `combine-after-change-calls' macro.");
Vcombine_after_change_calls = Qnil;
+ DEFVAR_BOOL ("inhibit-modification-hooks", &inhibit_modification_hooks,
+ "Non-nil means don't run any of the hooks that respond to buffer changes.\n\
+This affects `before-change-functions' and `after-change-functions',\n\
+as well as hooks attached to text properties and overlays.");
+ inhibit_modification_hooks = 0;
+
defsubr (&Scombine_after_change_execute);
}