changeset 55493:a318c79b8463

(temp_output_buffer_setup): Bind inhibit-read-only and inhibit-modification-hooks to t temporarily before calling Ferase_buffer.
author Kenichi Handa <handa@m17n.org>
date Mon, 10 May 2004 12:09:08 +0000
parents 43663119f752
children 510785c43ed0
files src/print.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/print.c	Mon May 10 12:08:32 2004 +0000
+++ b/src/print.c	Mon May 10 12:09:08 2004 +0000
@@ -601,6 +601,8 @@
   eassert (current_buffer->overlays_after == NULL);
   current_buffer->enable_multibyte_characters
     = buffer_defaults.enable_multibyte_characters;
+  specbind (Qinhibit_read_only, Qt);
+  specbind (Qinhibit_modification_hooks, Qt);
   Ferase_buffer ();
   XSETBUFFER (buf, current_buffer);