Commit 5c2a995d authored by Kenichi Handa's avatar Kenichi Handa

(x_create_tip_frame): Bind inhibit-read-only and

inhibit-modification-hooks to t temporarily before calling
Ferase_buffer.
parent ed441285
...@@ -7115,6 +7115,8 @@ x_create_tip_frame (dpyinfo, parms, text) ...@@ -7115,6 +7115,8 @@ x_create_tip_frame (dpyinfo, parms, text)
old_buffer = current_buffer; old_buffer = current_buffer;
set_buffer_internal_1 (XBUFFER (buffer)); set_buffer_internal_1 (XBUFFER (buffer));
current_buffer->truncate_lines = Qnil; current_buffer->truncate_lines = Qnil;
specbind (Qinhibit_read_only, Qt);
specbind (Qinhibit_modification_hooks, Qt);
Ferase_buffer (); Ferase_buffer ();
Finsert (1, &text); Finsert (1, &text);
set_buffer_internal_1 (old_buffer); set_buffer_internal_1 (old_buffer);
......
...@@ -4441,6 +4441,8 @@ x_create_tip_frame (dpyinfo, parms, text) ...@@ -4441,6 +4441,8 @@ x_create_tip_frame (dpyinfo, parms, text)
old_buffer = current_buffer; old_buffer = current_buffer;
set_buffer_internal_1 (XBUFFER (buffer)); set_buffer_internal_1 (XBUFFER (buffer));
current_buffer->truncate_lines = Qnil; current_buffer->truncate_lines = Qnil;
specbind (Qinhibit_read_only, Qt);
specbind (Qinhibit_modification_hooks, Qt);
Ferase_buffer (); Ferase_buffer ();
Finsert (1, &text); Finsert (1, &text);
set_buffer_internal_1 (old_buffer); set_buffer_internal_1 (old_buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment