From 7775635d6fb6a75029051dc681e569b3d1af7ea9 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 8 Oct 1998 06:45:36 +0000 Subject: [PATCH] (inhibit_modification_hooks): New variable. (init_buffer_once): Initialize inhibit_modification_hooks to 0. --- src/buffer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/buffer.c b/src/buffer.c index 4845b5bc6dd..2d126681dbb 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -153,6 +153,9 @@ Lisp_Object Qfirst_change_hook; 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 @@ init_buffer_once () Vbuffer_alist = Qnil; Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); + + inhibit_modification_hooks = 0; } void -- 2.39.2