# HG changeset patch # User Chong Yidong # Date 1177378361 0 # Node ID 6423e582c81d6f1ff8fd4c3d1a7566efd91fbd30 # Parent 80299860c7c7769f93d2e19fa9a60bf865ebed31 (redisplay_window): Use BEG_UNCHANGED and END_UNCHANGED values of the actual window. diff -r 80299860c7c7 -r 6423e582c81d src/xdisp.c --- a/src/xdisp.c Tue Apr 24 01:32:31 2007 +0000 +++ b/src/xdisp.c Tue Apr 24 01:32:41 2007 +0000 @@ -12777,8 +12777,7 @@ int rc; int centering_position = -1; int last_line_misfit = 0; - int save_beg_unchanged = BEG_UNCHANGED; - int save_end_unchanged = END_UNCHANGED; + int save_beg_unchanged, save_end_unchanged; SET_TEXT_POS (lpoint, PT, PT_BYTE); opoint = lpoint; @@ -12843,6 +12842,9 @@ set_buffer_internal_1 (XBUFFER (w->buffer)); SET_TEXT_POS (opoint, PT, PT_BYTE); + save_beg_unchanged = BEG_UNCHANGED; + save_end_unchanged = END_UNCHANGED; + current_matrix_up_to_date_p = (!NILP (w->window_end_valid) && !current_buffer->clip_changed