aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorRichard M. Stallman1996-09-16 06:29:40 +0000
committerRichard M. Stallman1996-09-16 06:29:40 +0000
commit3cd21523668c9b7fd627e4aa4953d13ca8034f60 (patch)
tree9fee8f9b5c9ac3e7bf4c45d27358ad7e102a2f34 /src/window.c
parent21876236fadf4539a6930747627e48a6f389e13f (diff)
downloademacs-3cd21523668c9b7fd627e4aa4953d13ca8034f60.tar.gz
emacs-3cd21523668c9b7fd627e4aa4953d13ca8034f60.zip
(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.")
227 height = XFASTINT (w->height) - ! MINI_WINDOW_P (w); 227 height = XFASTINT (w->height) - ! MINI_WINDOW_P (w);
228 228
229 buf = XBUFFER (w->buffer); 229 buf = XBUFFER (w->buffer);
230 if (XFASTINT (w->last_modified) >= BUF_MODIFF (buf)) 230 if (XFASTINT (w->last_modified) >= BUF_MODIFF (buf)
231 && XFASTINT (w->last_overlay_modified) >= BUF_OVERLAY_MODIFF (buf))
231 { 232 {
232 /* If frame is up to date, 233 /* If frame is up to date,
233 use the info recorded about how much text fit on it. */ 234 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.")
601 w->force_start = Qt; 602 w->force_start = Qt;
602 w->update_mode_line = Qt; 603 w->update_mode_line = Qt;
603 XSETFASTINT (w->last_modified, 0); 604 XSETFASTINT (w->last_modified, 0);
605 XSETFASTINT (w->last_overlay_modified, 0);
604 if (!EQ (window, selected_window)) 606 if (!EQ (window, selected_window))
605 windows_or_buffers_changed++; 607 windows_or_buffers_changed++;
606 return pos; 608 return pos;
@@ -1700,6 +1702,7 @@ set_window_height (window, height, nodelete)
1700 } 1702 }
1701 1703
1702 XSETFASTINT (w->last_modified, 0); 1704 XSETFASTINT (w->last_modified, 0);
1705 XSETFASTINT (w->last_overlay_modified, 0);
1703 windows_or_buffers_changed++; 1706 windows_or_buffers_changed++;
1704 FRAME_WINDOW_SIZES_CHANGED (XFRAME (WINDOW_FRAME (w))) = 1; 1707 FRAME_WINDOW_SIZES_CHANGED (XFRAME (WINDOW_FRAME (w))) = 1;
1705 1708
@@ -1763,6 +1766,7 @@ set_window_width (window, width, nodelete)
1763 } 1766 }
1764 1767
1765 XSETFASTINT (w->last_modified, 0); 1768 XSETFASTINT (w->last_modified, 0);
1769 XSETFASTINT (w->last_overlay_modified, 0);
1766 windows_or_buffers_changed++; 1770 windows_or_buffers_changed++;
1767 FRAME_WINDOW_SIZES_CHANGED (XFRAME (WINDOW_FRAME (w))) = 1; 1771 FRAME_WINDOW_SIZES_CHANGED (XFRAME (WINDOW_FRAME (w))) = 1;
1768 1772
@@ -1861,6 +1865,7 @@ BUFFER can be a buffer or buffer name.")
1861 w->start_at_line_beg = Qnil; 1865 w->start_at_line_beg = Qnil;
1862 w->force_start = Qnil; 1866 w->force_start = Qnil;
1863 XSETFASTINT (w->last_modified, 0); 1867 XSETFASTINT (w->last_modified, 0);
1868 XSETFASTINT (w->last_overlay_modified, 0);
1864 windows_or_buffers_changed++; 1869 windows_or_buffers_changed++;
1865 1870
1866 /* We must select BUFFER for running the window-scroll-functions. 1871 /* We must select BUFFER for running the window-scroll-functions.
@@ -2553,6 +2558,7 @@ change_window_height (delta, widthflag)
2553 } 2558 }
2554 2559
2555 XSETFASTINT (p->last_modified, 0); 2560 XSETFASTINT (p->last_modified, 0);
2561 XSETFASTINT (p->last_overlay_modified, 0);
2556} 2562}
2557#undef MINSIZE 2563#undef MINSIZE
2558#undef CURBEG 2564#undef CURBEG
@@ -2659,6 +2665,7 @@ window_scroll (window, n, noerror)
2659 w->start_at_line_beg = bolp; 2665 w->start_at_line_beg = bolp;
2660 w->update_mode_line = Qt; 2666 w->update_mode_line = Qt;
2661 XSETFASTINT (w->last_modified, 0); 2667 XSETFASTINT (w->last_modified, 0);
2668 XSETFASTINT (w->last_overlay_modified, 0);
2662 if (pos > opoint) 2669 if (pos > opoint)
2663 SET_PT (pos); 2670 SET_PT (pos);
2664 if (n < 0) 2671 if (n < 0)
@@ -3114,6 +3121,7 @@ by `current-window-configuration' (which see).")
3114 w->hscroll = p->hscroll; 3121 w->hscroll = p->hscroll;
3115 w->display_table = p->display_table; 3122 w->display_table = p->display_table;
3116 XSETFASTINT (w->last_modified, 0); 3123 XSETFASTINT (w->last_modified, 0);
3124 XSETFASTINT (w->last_overlay_modified, 0);
3117 3125
3118 /* Reinstall the saved buffer and pointers into it. */ 3126 /* Reinstall the saved buffer and pointers into it. */
3119 if (NILP (p->buffer)) 3127 if (NILP (p->buffer))