[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xdisp.c,v
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/src/xdisp.c,v |
Date: |
Sat, 05 Jul 2008 18:22:58 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 08/07/05 18:22:57
Index: xdisp.c
===================================================================
RCS file: /sources/emacs/emacs/src/xdisp.c,v
retrieving revision 1.1229
retrieving revision 1.1230
diff -u -b -r1.1229 -r1.1230
--- xdisp.c 5 Jul 2008 09:45:56 -0000 1.1229
+++ xdisp.c 5 Jul 2008 18:22:56 -0000 1.1230
@@ -14534,9 +14534,10 @@
int yb = window_text_bottom_y (w);
/* Find the last row displaying unchanged text. */
- row = MATRIX_FIRST_TEXT_ROW (w->current_matrix);
- while (MATRIX_ROW_DISPLAYS_TEXT_P (row)
- && MATRIX_ROW_START_CHARPOS (row) < first_changed_pos)
+ for (row = MATRIX_FIRST_TEXT_ROW (w->current_matrix);
+ MATRIX_ROW_DISPLAYS_TEXT_P (row)
+ && MATRIX_ROW_START_CHARPOS (row) < first_changed_pos;
+ ++row)
{
if (/* If row ends before first_changed_pos, it is unchanged,
except in some case. */
@@ -14555,8 +14556,6 @@
/* Stop if last visible row. */
if (MATRIX_ROW_BOTTOM_Y (row) >= yb)
break;
-
- ++row;
}
return row_found;
@@ -14872,6 +14871,12 @@
if (overlay_arrows_changed_p ())
GIVE_UP (12);
+ /* When word-wrap is on, adding a space to the first word of a
+ wrapped line can change the wrap position, altering the line
+ above it. It might be worthwhile to handle this more
+ intelligently, but for now just redisplay from scratch. */
+ if (!NILP (XBUFFER (w->buffer)->word_wrap))
+ GIVE_UP (21);
/* Make sure beg_unchanged and end_unchanged are up to date. Do it
only if buffer has really changed. The reason is that the gap is
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Miles Bader, 2008/07/01
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Jason Rumney, 2008/07/02
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Chong Yidong, 2008/07/05
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Andreas Schwab, 2008/07/05
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v,
Chong Yidong <=
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Chong Yidong, 2008/07/10
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Adrian Robert, 2008/07/15
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Jason Rumney, 2008/07/15
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Adrian Robert, 2008/07/15
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Chong Yidong, 2008/07/16
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Adrian Robert, 2008/07/17
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Jason Rumney, 2008/07/23
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Dan Nicolaescu, 2008/07/27
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Andreas Schwab, 2008/07/28
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v, Chong Yidong, 2008/07/28