aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-09-10 18:23:25 +0300
committerEli Zaretskii2011-09-10 18:23:25 +0300
commit80ad64f4f513abc0d35bdf18f3a9a68df770ad1a (patch)
tree5cd31f57496f97778816ee76b0d26b1134925bf3 /src
parent251730002e4397d4badc5eed330dcec08d2b5280 (diff)
downloademacs-80ad64f4f513abc0d35bdf18f3a9a68df770ad1a.tar.gz
emacs-80ad64f4f513abc0d35bdf18f3a9a68df770ad1a.zip
Prevent sluggish bidi redisplay in small windows.
src/xdisp.c (MAX_DISP_SCAN): Decrease to 250. Prevents sluggish redisplay in small windows.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 97a70e87fcd..78ef2c1c56b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-09-10 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (MAX_DISP_SCAN): Decrease to 250. Prevents sluggish
4 redisplay in small windows.
5
12011-09-09 Eli Zaretskii <eliz@gnu.org> 62011-09-09 Eli Zaretskii <eliz@gnu.org>
2 7
3 * frame.c (x_report_frame_params): Cast to avoid compiler warnings. 8 * frame.c (x_report_frame_params): Cast to avoid compiler warnings.
diff --git a/src/xdisp.c b/src/xdisp.c
index 52d88e89521..4d6f7a81cd7 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3132,9 +3132,9 @@ next_overlay_change (EMACS_INT pos)
3132} 3132}
3133 3133
3134/* How many characters forward to search for a display property or 3134/* How many characters forward to search for a display property or
3135 display string. Enough for a screenful of 100 lines x 50 3135 display string. Searching too far forward makes the bidi display
3136 characters in a line. */ 3136 sluggish, especially in small windows. */
3137#define MAX_DISP_SCAN 5000 3137#define MAX_DISP_SCAN 250
3138 3138
3139/* Return the character position of a display string at or after 3139/* Return the character position of a display string at or after
3140 position specified by POSITION. If no display string exists at or 3140 position specified by POSITION. If no display string exists at or