summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-09-16 06:29:40 +0000
committerRichard M. Stallman <rms@gnu.org>1996-09-16 06:29:40 +0000
commit1e78bb3a755277dc8d6e6e25a2ad579cb305f7d8 (patch)
tree8d23f854f70d0802832780a57e5fd512abc82fa8 /src/window.c
parenta003f716e57acf89b62fc2b90a6ec43bd90744a2 (diff)
downloademacs-1e78bb3a755277dc8d6e6e25a2ad579cb305f7d8.tar.gz
(Fset_window_start): Clear last_overlay_modified field.
(set_window_height, set_window_width, Fset_window_buffer) (change_window_height, window_scroll, Fset_window_configuration): Clear last_overlay_modified field. (Fpos_visible_in_window_p): Test last_overlay_modified field.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 925b4d6aed9..5695152c1ff 100644
--- a/src/window.c
+++ b/src/window.c
@@ -227,7 +227,8 @@ POS defaults to point; WINDOW, to the selected window.")
height = XFASTINT (w->height) - ! MINI_WINDOW_P (w);
buf = XBUFFER (w->buffer);
- if (XFASTINT (w->last_modified) >= BUF_MODIFF (buf))
+ if (XFASTINT (w->last_modified) >= BUF_MODIFF (buf)
+ && XFASTINT (w->last_overlay_modified) >= BUF_OVERLAY_MODIFF (buf))
{
/* If frame is up to date,
use the info recorded about how much text fit on it. */
@@ -601,6 +602,7 @@ from overriding motion of point in order to display at this exact start.")
w->force_start = Qt;
w->update_mode_line = Qt;
XSETFASTINT (w->last_modified, 0);
+ XSETFASTINT (w->last_overlay_modified, 0);
if (!EQ (window, selected_window))
windows_or_buffers_changed++;
return pos;
@@ -1700,6 +1702,7 @@ set_window_height (window, height, nodelete)
}
XSETFASTINT (w->last_modified, 0);
+ XSETFASTINT (w->last_overlay_modified, 0);
windows_or_buffers_changed++;
FRAME_WINDOW_SIZES_CHANGED (XFRAME (WINDOW_FRAME (w))) = 1;
@@ -1763,6 +1766,7 @@ set_window_width (window, width, nodelete)
}
XSETFASTINT (w->last_modified, 0);
+ XSETFASTINT (w->last_overlay_modified, 0);
windows_or_buffers_changed++;
FRAME_WINDOW_SIZES_CHANGED (XFRAME (WINDOW_FRAME (w))) = 1;
@@ -1861,6 +1865,7 @@ BUFFER can be a buffer or buffer name.")
w->start_at_line_beg = Qnil;
w->force_start = Qnil;
XSETFASTINT (w->last_modified, 0);
+ XSETFASTINT (w->last_overlay_modified, 0);
windows_or_buffers_changed++;
/* We must select BUFFER for running the window-scroll-functions.
@@ -2553,6 +2558,7 @@ change_window_height (delta, widthflag)
}
XSETFASTINT (p->last_modified, 0);
+ XSETFASTINT (p->last_overlay_modified, 0);
}
#undef MINSIZE
#undef CURBEG
@@ -2659,6 +2665,7 @@ window_scroll (window, n, noerror)
w->start_at_line_beg = bolp;
w->update_mode_line = Qt;
XSETFASTINT (w->last_modified, 0);
+ XSETFASTINT (w->last_overlay_modified, 0);
if (pos > opoint)
SET_PT (pos);
if (n < 0)
@@ -3114,6 +3121,7 @@ by `current-window-configuration' (which see).")
w->hscroll = p->hscroll;
w->display_table = p->display_table;
XSETFASTINT (w->last_modified, 0);
+ XSETFASTINT (w->last_overlay_modified, 0);
/* Reinstall the saved buffer and pointers into it. */
if (NILP (p->buffer))