diff options
| author | Joakim Verona | 2013-08-14 09:43:14 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-14 09:43:14 +0200 |
| commit | c3f73b429285a46c61296c81813617febc908fce (patch) | |
| tree | c803e050a5c2d15967a761fe76e49907e75e9f31 | |
| parent | cfb926eb66f52143a3951aaa0b1ac6b11f686c53 (diff) | |
| parent | 94a4e898b6cbf8375aa8eddb07a7d63a62b55e15 (diff) | |
| download | emacs-c3f73b429285a46c61296c81813617febc908fce.tar.gz emacs-c3f73b429285a46c61296c81813617febc908fce.zip | |
merge from trunk
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a120cf1b182..c8a1de49d68 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -10,6 +10,9 @@ | |||
| 10 | 10 | ||
| 11 | * xdisp.c (adjust_window_ends): Move duplicated code to new function. | 11 | * xdisp.c (adjust_window_ends): Move duplicated code to new function. |
| 12 | (try_window, try_window_reusing_current_matrix, try_window_id): Use it. | 12 | (try_window, try_window_reusing_current_matrix, try_window_id): Use it. |
| 13 | (redisplay_window): If window_end_valid is cleared due to non-zero | ||
| 14 | windows_or_buffers_changed, clear current_matrix_up_to_date_p and | ||
| 15 | so do not call to try_cursor_movement for that window. | ||
| 13 | 16 | ||
| 14 | 2013-08-14 Dmitry Antipov <dmantipov@yandex.ru> | 17 | 2013-08-14 Dmitry Antipov <dmantipov@yandex.ru> |
| 15 | 18 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index d2e49c76d4b..7a0c1009d83 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -15512,8 +15512,8 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 15512 | && !current_buffer->clip_changed | 15512 | && !current_buffer->clip_changed |
| 15513 | && !window_outdated (w)); | 15513 | && !window_outdated (w)); |
| 15514 | 15514 | ||
| 15515 | /* When windows_or_buffers_changed is non-zero, we can't rely on | 15515 | /* When windows_or_buffers_changed is non-zero, we can't rely |
| 15516 | the window end being valid, so set it to nil there. */ | 15516 | on the window end being valid, so set it to zero there. */ |
| 15517 | if (windows_or_buffers_changed) | 15517 | if (windows_or_buffers_changed) |
| 15518 | { | 15518 | { |
| 15519 | /* If window starts on a continuation line, maybe adjust the | 15519 | /* If window starts on a continuation line, maybe adjust the |
| @@ -15522,6 +15522,9 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 15522 | compute_window_start_on_continuation_line (w); | 15522 | compute_window_start_on_continuation_line (w); |
| 15523 | 15523 | ||
| 15524 | w->window_end_valid = 0; | 15524 | w->window_end_valid = 0; |
| 15525 | /* If so, we also can't rely on current matrix | ||
| 15526 | and should not fool try_cursor_movement below. */ | ||
| 15527 | current_matrix_up_to_date_p = 0; | ||
| 15525 | } | 15528 | } |
| 15526 | 15529 | ||
| 15527 | /* Some sanity checks. */ | 15530 | /* Some sanity checks. */ |