If automatic character composition triggers GC, and
'garbage-collection-messages' are turned on, we could have the
bidi cache reset while processing RTL text, which would then
consistently crash.
* src/xdisp.c (display_echo_area_1): Protect the bidi cache
against changes inside 'try_window'.
/* Display. */
clear_glyph_matrix (w->desired_matrix);
XSETWINDOW (window, w);
+ void *itdata = bidi_shelve_cache ();
try_window (window, start, 0);
+ bidi_unshelve_cache (itdata, false);
return window_height_changed_p;
}