# HG changeset patch # User Kenichi Handa # Date 1084190912 0 # Node ID 43663119f752db666c2a94ec6a6a375eb454d7d9 # Parent 79abf8a72f5abeff8f5372cb02f6d1bdb1d5b043 (x_create_tip_frame): Bind inhibit-read-only and inhibit-modification-hooks to t temporarily before calling Ferase_buffer. diff -r 79abf8a72f5a -r 43663119f752 src/w32fns.c --- 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); diff -r 79abf8a72f5a -r 43663119f752 src/xfns.c --- 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);