diff options
| author | Kenichi Handa | 1998-10-08 06:45:36 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-10-08 06:45:36 +0000 |
| commit | 7775635d6fb6a75029051dc681e569b3d1af7ea9 (patch) | |
| tree | c0ed39c4ec541b61b7645e8e16ca53617d3f7dd0 /src/buffer.c | |
| parent | 347d3e9ca8bf6c66aa389c12b19af7f5c6129bc0 (diff) | |
| download | emacs-7775635d6fb6a75029051dc681e569b3d1af7ea9.tar.gz emacs-7775635d6fb6a75029051dc681e569b3d1af7ea9.zip | |
(inhibit_modification_hooks): New variable.
(init_buffer_once): Initialize inhibit_modification_hooks to 0.
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 |