changeset 55492:43663119f752

(x_create_tip_frame): 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:08:32 +0000
parents 79abf8a72f5a
children a318c79b8463
files src/w32fns.c src/xfns.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Mon May 10 12:07:12 2004 +0000
+++ b/src/w32fns.c	Mon May 10 12:08:32 2004 +0000
@@ -7115,6 +7115,8 @@
   old_buffer = current_buffer;
   set_buffer_internal_1 (XBUFFER (buffer));
   current_buffer->truncate_lines = Qnil;
+  specbind (Qinhibit_read_only, Qt);
+  specbind (Qinhibit_modification_hooks, Qt);
   Ferase_buffer ();
   Finsert (1, &text);
   set_buffer_internal_1 (old_buffer);
--- a/src/xfns.c	Mon May 10 12:07:12 2004 +0000
+++ b/src/xfns.c	Mon May 10 12:08:32 2004 +0000
@@ -4441,6 +4441,8 @@
   old_buffer = current_buffer;
   set_buffer_internal_1 (XBUFFER (buffer));
   current_buffer->truncate_lines = Qnil;
+  specbind (Qinhibit_read_only, Qt);
+  specbind (Qinhibit_modification_hooks, Qt);
   Ferase_buffer ();
   Finsert (1, &text);
   set_buffer_internal_1 (old_buffer);