[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xdisp.c
From: |
Kim F. Storm |
Subject: |
[Emacs-diffs] Changes to emacs/src/xdisp.c |
Date: |
Wed, 19 Apr 2006 23:20:21 +0000 |
Index: emacs/src/xdisp.c
diff -u emacs/src/xdisp.c:1.1086 emacs/src/xdisp.c:1.1087
--- emacs/src/xdisp.c:1.1086 Thu Apr 13 01:21:48 2006
+++ emacs/src/xdisp.c Wed Apr 19 23:20:21 2006
@@ -12860,6 +12860,33 @@
|| (XFASTINT (w->last_modified) >= MODIFF
&& XFASTINT (w->last_overlay_modified) >= OVERLAY_MODIFF)))
{
+
+ /* If first window line is a continuation line, and window start
+ is inside the modified region, but the first change is before
+ current window start, we must select a new window start.*/
+ if (NILP (w->start_at_line_beg))
+ {
+ /* Make sure beg_unchanged and end_unchanged are up to date.
+ Do it only if buffer has really changed. This may or may
+ not have been done by try_window_id (see which) already. */
+ if (MODIFF > SAVE_MODIFF
+ /* This seems to happen sometimes after saving a buffer. */
+ || BEG_UNCHANGED + END_UNCHANGED > Z_BYTE)
+ {
+ if (GPT - BEG < BEG_UNCHANGED)
+ BEG_UNCHANGED = GPT - BEG;
+ if (Z - GPT < END_UNCHANGED)
+ END_UNCHANGED = Z - GPT;
+ }
+
+ if (CHARPOS (startp) > BEG + BEG_UNCHANGED
+ && CHARPOS (startp) <= Z - END_UNCHANGED)
+ {
+ centering_position = 0;
+ goto recenter;
+ }
+ }
+
#if GLYPH_DEBUG
debug_method_add (w, "same window start");
#endif
- [Emacs-diffs] Changes to emacs/src/xdisp.c, YAMAMOTO Mitsuharu, 2006/04/12
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Nick Roberts, 2006/04/12
- [Emacs-diffs] Changes to emacs/src/xdisp.c,
Kim F. Storm <=
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Kim F. Storm, 2006/04/20
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Nick Roberts, 2006/04/20
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Kim F. Storm, 2006/04/21
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Kim F. Storm, 2006/04/23
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Kim F. Storm, 2006/04/23
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Kim F. Storm, 2006/04/23
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Kim F. Storm, 2006/04/23
- [Emacs-diffs] Changes to emacs/src/xdisp.c, YAMAMOTO Mitsuharu, 2006/04/30