diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; | |||
| 153 | Lisp_Object Qbefore_change_functions; | 153 | Lisp_Object Qbefore_change_functions; |
| 154 | Lisp_Object Qafter_change_functions; | 154 | Lisp_Object Qafter_change_functions; |
| 155 | 155 | ||
| 156 | /* If nonzero, all modification hooks are suppressed. */ | ||
| 157 | int inhibit_modification_hooks; | ||
| 158 | |||
| 156 | Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; | 159 | Lisp_Object Qfundamental_mode, Qmode_class, Qpermanent_local; |
| 157 | 160 | ||
| 158 | Lisp_Object Qprotected_field; | 161 | Lisp_Object Qprotected_field; |
| @@ -3943,6 +3946,8 @@ init_buffer_once () | |||
| 3943 | Vbuffer_alist = Qnil; | 3946 | Vbuffer_alist = Qnil; |
| 3944 | 3947 | ||
| 3945 | Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); | 3948 | Fset_buffer (Fget_buffer_create (build_string ("*scratch*"))); |
| 3949 | |||
| 3950 | inhibit_modification_hooks = 0; | ||
| 3946 | } | 3951 | } |
| 3947 | 3952 | ||
| 3948 | void | 3953 | void |