changeset 25579:5662c18836ae

(syms_of_insdel): Define Lisp variable inhibit-modification-hooks.
author Richard M. Stallman <rms@gnu.org>
date Tue, 07 Sep 1999 03:25:35 +0000
parents 4c9cf2c63703
children b76f1a72649a
files src/insdel.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Mon Sep 06 22:32:26 1999 +0000
+++ b/src/insdel.c	Tue Sep 07 03:25:35 1999 +0000
@@ -2727,5 +2727,11 @@
     "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);
 }