diff src/print.c @ 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 4903fe69b0fa
children 2b06def87ce0 d895a49cccb9
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);