diff --git a/src/xdisp.c b/src/xdisp.c index 274ab8d..0d084f8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -12002,12 +12002,6 @@ static void ATTRIBUTE_FORMAT_PRINTF (1, 0) /* Set global variable indicating that multiple frames exist. */ multiple_frames = CONSP (tail); - /* Switch to the buffer of selected window of the frame. Set up - mode_line_target so that display_mode_element will output into - mode_line_noprop_buf; then display the title. */ - record_unwind_protect (unwind_format_mode_line, - format_mode_line_unwind_data - (f, current_buffer, selected_window, false)); /* select-frame calls resize_mini_window, which could resize the mini-window and by that undo the effect of this redisplay cycle wrt minibuffer and echo-area display. Binding @@ -12015,6 +12009,12 @@ static void ATTRIBUTE_FORMAT_PRINTF (1, 0) no-op, thus avoiding the adverse side effects. */ specbind (Qinhibit_redisplay, Qt); + /* Switch to the buffer of selected window of the frame. Set up + mode_line_target so that display_mode_element will output into + mode_line_noprop_buf; then display the title. */ + record_unwind_protect (unwind_format_mode_line, + format_mode_line_unwind_data + (f, current_buffer, selected_window, false)); Fselect_window (f->selected_window, Qt); set_buffer_internal_1 (XBUFFER (XWINDOW (f->selected_window)->contents));