--- xfns.c 2020-09-27 12:07:36.298841349 +0200 +++ src/xfns.c 2020-10-05 02:15:01.690628616 +0200 @@ -7081,7 +7081,11 @@ buffer. */ count_1 = SPECPDL_INDEX (); old_buffer = current_buffer; + /* set_buffer_internal_1 (XBUFFER (w->contents)); + specbind (Qinhibit_read_only, Qt); + specbind (Qinhibit_modification_hooks, Qt); + specbind (Qinhibit_point_motion_hooks, Qt); bset_truncate_lines (current_buffer, Qnil); specbind (Qinhibit_read_only, Qt); specbind (Qinhibit_modification_hooks, Qt); @@ -7092,6 +7096,7 @@ clear_glyph_matrix (w->current_matrix); SET_TEXT_POS (pos, BEGV, BEGV_BYTE); try_window (window, pos, TRY_WINDOW_IGNORE_FONTS_CHANGE); + */ /* Calculate size of tooltip window. */ size = Fwindow_text_pixel_size (window, Qnil, Qnil, Qnil, make_fixnum (w->pixel_height), Qnil);