diff options
| author | Paul Eggert | 2011-08-26 09:13:07 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-08-26 09:13:07 -0700 |
| commit | 5fc295a42feaef453b57010b826e589b9b9cb7dd (patch) | |
| tree | 8a965da92c7ebc7d78c04d2dbc220a6bbe40e094 /src | |
| parent | fcbc5f60ee9c1ed2fb8b8b4f36b8a0658250a1bd (diff) | |
| parent | 7254299e4d19b0acdfc5dd7580c24be817731488 (diff) | |
| download | emacs-5fc295a42feaef453b57010b826e589b9b9cb7dd.tar.gz emacs-5fc295a42feaef453b57010b826e589b9b9cb7dd.zip | |
Merge from trunk.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xdisp.c | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b5ba1d74f8a..bb2a0d20c1f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | 2011-08-25 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-08-26 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | Integer and memory overflow issues (Bug#9196). | 3 | Integer and memory overflow issues (Bug#9196). |
| 4 | 4 | ||
| @@ -422,6 +422,11 @@ | |||
| 422 | (gs_load): Use printmax_t to print the widest integers possible. | 422 | (gs_load): Use printmax_t to print the widest integers possible. |
| 423 | Check for integer overflow when computing image height and width. | 423 | Check for integer overflow when computing image height and width. |
| 424 | 424 | ||
| 425 | 2011-08-26 Eli Zaretskii <eliz@gnu.org> | ||
| 426 | |||
| 427 | * xdisp.c (redisplay_window): Don't force window start if point | ||
| 428 | will be invisible in the resulting window. (Bug#9324) | ||
| 429 | |||
| 425 | 2011-08-25 Eli Zaretskii <eliz@gnu.org> | 430 | 2011-08-25 Eli Zaretskii <eliz@gnu.org> |
| 426 | 431 | ||
| 427 | * xdisp.c (compute_display_string_pos): Return 2 in DISP_PROP when | 432 | * xdisp.c (compute_display_string_pos): Return 2 in DISP_PROP when |
diff --git a/src/xdisp.c b/src/xdisp.c index 5f7020ba379..b60e3b466a8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -15097,6 +15097,7 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 15097 | || (XFASTINT (w->last_modified) >= MODIFF | 15097 | || (XFASTINT (w->last_modified) >= MODIFF |
| 15098 | && XFASTINT (w->last_overlay_modified) >= OVERLAY_MODIFF))) | 15098 | && XFASTINT (w->last_overlay_modified) >= OVERLAY_MODIFF))) |
| 15099 | { | 15099 | { |
| 15100 | int d1, d2, d3, d4, d5, d6; | ||
| 15100 | 15101 | ||
| 15101 | /* If first window line is a continuation line, and window start | 15102 | /* If first window line is a continuation line, and window start |
| 15102 | is inside the modified region, but the first change is before | 15103 | is inside the modified region, but the first change is before |
| @@ -15118,7 +15119,14 @@ redisplay_window (Lisp_Object window, int just_this_one_p) | |||
| 15118 | compute_window_start_on_continuation_line. (See also | 15119 | compute_window_start_on_continuation_line. (See also |
| 15119 | bug#197). */ | 15120 | bug#197). */ |
| 15120 | && XMARKER (w->start)->buffer == current_buffer | 15121 | && XMARKER (w->start)->buffer == current_buffer |
| 15121 | && compute_window_start_on_continuation_line (w)) | 15122 | && compute_window_start_on_continuation_line (w) |
| 15123 | /* It doesn't make sense to force the window start like we | ||
| 15124 | do at label force_start if it is already known that point | ||
| 15125 | will not be visible in the resulting window, because | ||
| 15126 | doing so will move point from its correct position | ||
| 15127 | instead of scrolling the window to bring point into view. | ||
| 15128 | See bug#9324. */ | ||
| 15129 | && pos_visible_p (w, PT, &d1, &d2, &d3, &d4, &d5, &d6)) | ||
| 15122 | { | 15130 | { |
| 15123 | w->force_start = Qt; | 15131 | w->force_start = Qt; |
| 15124 | SET_TEXT_POS_FROM_MARKER (startp, w->start); | 15132 | SET_TEXT_POS_FROM_MARKER (startp, w->start); |