diff options
| author | Martin Rudalics | 2012-10-15 11:03:56 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2012-10-15 11:03:56 +0200 |
| commit | dca778d53aad12df44dbac8f99c288fa4f9f04b2 (patch) | |
| tree | 2f33b5d4c67298a64b319c8ff62a81f11b2f9f35 /src | |
| parent | d18a0d2460cbcf73f9bd136912006fc0c11f55e0 (diff) | |
| download | emacs-dca778d53aad12df44dbac8f99c288fa4f9f04b2.tar.gz emacs-dca778d53aad12df44dbac8f99c288fa4f9f04b2.zip | |
Fix Fwindow_end's handling of cached position (Bug#12600).
* window.c (Fwindow_end): Rewrite check whether cached position
can be used (Bug#12600).
(resize_frame_windows, grow_mini_window, shrink_mini_window):
Set windows_or_buffers_changed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/window.c | 8 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e142cad7bf6..6acc22a1b27 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-10-15 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * window.c (Fwindow_end): Rewrite check whether cached position | ||
| 4 | can be used (Bug#12600). | ||
| 5 | (resize_frame_windows, grow_mini_window, shrink_mini_window): | ||
| 6 | Set windows_or_buffers_changed. | ||
| 7 | |||
| 1 | 2012-10-15 Daniel Colascione <dancol@dancol.org> | 8 | 2012-10-15 Daniel Colascione <dancol@dancol.org> |
| 2 | 9 | ||
| 3 | * dbusbind.c: Fix cygw32 build break when compiling with dbus | 10 | * dbusbind.c: Fix cygw32 build break when compiling with dbus |
diff --git a/src/window.c b/src/window.c index 61d2a8b073f..b4fee61cac8 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1464,9 +1464,7 @@ if it isn't already recorded. */) | |||
| 1464 | #endif | 1464 | #endif |
| 1465 | 1465 | ||
| 1466 | if (! NILP (update) | 1466 | if (! NILP (update) |
| 1467 | && ! (! NILP (w->window_end_valid) | 1467 | && (windows_or_buffers_changed || NILP (w->window_end_valid)) |
| 1468 | && w->last_modified >= BUF_MODIFF (b) | ||
| 1469 | && w->last_overlay_modified >= BUF_OVERLAY_MODIFF (b)) | ||
| 1470 | && !noninteractive) | 1468 | && !noninteractive) |
| 1471 | { | 1469 | { |
| 1472 | struct text_pos startp; | 1470 | struct text_pos startp; |
| @@ -3795,6 +3793,8 @@ resize_frame_windows (struct frame *f, int size, int horflag) | |||
| 3795 | (m, make_number (XINT (r->top_line) + XINT (r->total_lines))); | 3793 | (m, make_number (XINT (r->top_line) + XINT (r->total_lines))); |
| 3796 | } | 3794 | } |
| 3797 | } | 3795 | } |
| 3796 | |||
| 3797 | windows_or_buffers_changed++; | ||
| 3798 | } | 3798 | } |
| 3799 | 3799 | ||
| 3800 | 3800 | ||
| @@ -4208,6 +4208,7 @@ grow_mini_window (struct window *w, int delta) | |||
| 4208 | w->last_modified = 0; | 4208 | w->last_modified = 0; |
| 4209 | w->last_overlay_modified = 0; | 4209 | w->last_overlay_modified = 0; |
| 4210 | 4210 | ||
| 4211 | windows_or_buffers_changed++; | ||
| 4211 | adjust_glyphs (f); | 4212 | adjust_glyphs (f); |
| 4212 | unblock_input (); | 4213 | unblock_input (); |
| 4213 | } | 4214 | } |
| @@ -4245,6 +4246,7 @@ shrink_mini_window (struct window *w) | |||
| 4245 | w->last_modified = 0; | 4246 | w->last_modified = 0; |
| 4246 | w->last_overlay_modified = 0; | 4247 | w->last_overlay_modified = 0; |
| 4247 | 4248 | ||
| 4249 | windows_or_buffers_changed++; | ||
| 4248 | adjust_glyphs (f); | 4250 | adjust_glyphs (f); |
| 4249 | unblock_input (); | 4251 | unblock_input (); |
| 4250 | } | 4252 | } |