diff options
| author | Richard M. Stallman | 2002-07-21 20:31:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-07-21 20:31:46 +0000 |
| commit | 3f029ea02702b816b432f88d1363ac0791a2222e (patch) | |
| tree | 3ddcc0f189f5f7638defa4356108c53fe87553d0 /src | |
| parent | 1f7b639f04efdf79ed72ed36baae60a96465481f (diff) | |
| download | emacs-3f029ea02702b816b432f88d1363ac0791a2222e.tar.gz emacs-3f029ea02702b816b432f88d1363ac0791a2222e.zip | |
(redisplay_window): Don't test BEG_UNCHANGED
and END_UNCHANGED when setting buffer_unchanged_p.
Use current_matrix_up_to_date_p to decide whether to use try_cursor_movement.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index a271604aa8e..4e52d39c908 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -10169,7 +10169,6 @@ redisplay_window (window, just_this_one_p) | |||
| 10169 | buffer_unchanged_p | 10169 | buffer_unchanged_p |
| 10170 | = (!NILP (w->window_end_valid) | 10170 | = (!NILP (w->window_end_valid) |
| 10171 | && !current_buffer->clip_changed | 10171 | && !current_buffer->clip_changed |
| 10172 | && END_UNCHANGED + BEG_UNCHANGED >= Z - BEG | ||
| 10173 | && XFASTINT (w->last_modified) >= MODIFF | 10172 | && XFASTINT (w->last_modified) >= MODIFF |
| 10174 | && XFASTINT (w->last_overlay_modified) >= OVERLAY_MODIFF); | 10173 | && XFASTINT (w->last_overlay_modified) >= OVERLAY_MODIFF); |
| 10175 | 10174 | ||
| @@ -10367,8 +10366,9 @@ redisplay_window (window, just_this_one_p) | |||
| 10367 | } | 10366 | } |
| 10368 | 10367 | ||
| 10369 | /* Handle case where text has not changed, only point, and it has | 10368 | /* Handle case where text has not changed, only point, and it has |
| 10370 | not moved off the frame. */ | 10369 | not moved off the frame, and we are not retrying after hscroll. |
| 10371 | if (buffer_unchanged_p | 10370 | (current_matrix_up_to_date_p is nonzero when retrying.) */ |
| 10371 | if (current_matrix_up_to_date_p | ||
| 10372 | && (rc = try_cursor_movement (window, startp, &temp_scroll_step), | 10372 | && (rc = try_cursor_movement (window, startp, &temp_scroll_step), |
| 10373 | rc != CURSOR_MOVEMENT_CANNOT_BE_USED)) | 10373 | rc != CURSOR_MOVEMENT_CANNOT_BE_USED)) |
| 10374 | { | 10374 | { |