diff src/buffer.c @ 23399:e80c5f687340

(inhibit_modification_hooks): New variable. (init_buffer_once): Initialize inhibit_modification_hooks to 0.
author Kenichi Handa <handa@m17n.org>
date Thu, 08 Oct 1998 06:45:36 +0000
parents eb56d7e8faa1
children 63e98b81cc29
line wrap: on
line diff
--- a/src/buffer.c	Thu Oct 08 06:45:36 1998 +0000
+++ b/src/buffer.c	Thu Oct 08 06:45:36 1998 +0000
@@ -153,6 +153,9 @@
 Lisp_Object Qbefore_change_functions;
 Lisp_Object Qafter_change_functions;
 
+/* If nonzero, all modification hooks are suppressed.  */
+int inhibit_modification_hooks;
+
 Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local;
 
 Lisp_Object Qprotected_field;
@@ -3943,6 +3946,8 @@
   Vbuffer_alist = Qnil;
 
   Fset_buffer (Fget_buffer_create (build_string ("*scratch*")));
+
+  inhibit_modification_hooks = 0;
 }
 
 void