/* True means redisplay has to redisplay the miniwindow. */
bool update_miniwindow_p = false;
- /* True means we need to redraw frames whose 'redisplay' bit is set. */
- bool consider_some_frames_p = false;
-
TRACE ((stderr, "redisplay_internal %d\n", redisplaying_p));
/* No redisplay if running in batch mode or frame is not yet fully
inhibit_free_realized_faces = false;
- consider_some_frames_p = false;
-
/* If face_change, init_iterator will free all realized faces, which
includes the faces referenced from current matrices. So, we
can't reuse current matrices in this case. */
&& !FRAME_OBSCURED_P (XFRAME (w->frame))
&& !XFRAME (w->frame)->cursor_type_changed
&& !XFRAME (w->frame)->face_change
- && !XFRAME (w->frame)->redisplay
/* Make sure recorded data applies to current buffer, etc. */
&& this_line_buffer == current_buffer
&& match_p
#endif
/* Build desired matrices, and update the display. If
- consider_all_windows_p, do it for all windows on all frames. If
- a frame's 'redisplay' flag is set, do it for all windows on each
- such frame. Otherwise do it for selected_window, only. */
-
- if (!consider_all_windows_p)
- {
- FOR_EACH_FRAME (tail, frame)
- {
- if (XFRAME (frame)->redisplay
- && XFRAME (frame) != sf
- && !FRAME_INITIAL_P (XFRAME (frame)))
- {
- consider_some_frames_p = true;
- break;
- }
- }
- }
+ consider_all_windows_p, do it for all windows on all frames that
+ require redisplay, as specified by their 'redisplay' flag.
+ Otherwise do it for selected_window, only. */
- if (consider_all_windows_p || consider_some_frames_p)
+ if (consider_all_windows_p)
{
FOR_EACH_FRAME (tail, frame)
- {
- if (XFRAME (frame)->redisplay || consider_all_windows_p)
- XFRAME (frame)->updated_p = false;
- }
+ XFRAME (frame)->updated_p = false;
propagate_buffer_redisplay ();
&& !EQ (FRAME_TTY (f)->top_frame, frame))
continue;
- if (!consider_all_windows_p && !f->redisplay)
- continue;
-
retry_frame:
if (FRAME_WINDOW_P (f) || FRAME_TERMCAP_P (f) || f == sf)
{
&& !update_mode_lines
&& !windows_or_buffers_changed
&& !f->cursor_type_changed
- && !f->redisplay
&& NILP (Vshow_trailing_whitespace)
/* This code is not used for mini-buffer for the sake of the case
of redisplaying to replace an echo area message; since in
/* Don't try to reuse the display if windows have been split
or such. */
|| windows_or_buffers_changed
- || f->redisplay
|| f->cursor_type_changed)
return false;
GIVE_UP (1);
/* This flag is used to prevent redisplay optimizations. */
- if (windows_or_buffers_changed || f->cursor_type_changed || f->redisplay)
+ if (windows_or_buffers_changed || f->cursor_type_changed)
GIVE_UP (2);
/* This function's optimizations cannot be used if overlays have