]> git.eshelyaron.com Git - emacs.git/commitdiff
Prevent sluggish bidi redisplay in small windows.
authorEli Zaretskii <eliz@gnu.org>
Sat, 10 Sep 2011 15:23:25 +0000 (18:23 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 10 Sep 2011 15:23:25 +0000 (18:23 +0300)
 src/xdisp.c (MAX_DISP_SCAN): Decrease to 250.  Prevents sluggish
 redisplay in small windows.

src/ChangeLog
src/xdisp.c

index 97a70e87fcdbf3407eb86a48b5594a76a579ce54..78ef2c1c56bc6d805ace1ae1d93ce63b8b91da66 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-10  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (MAX_DISP_SCAN): Decrease to 250.  Prevents sluggish
+       redisplay in small windows.
+
 2011-09-09  Eli Zaretskii  <eliz@gnu.org>
 
        * frame.c (x_report_frame_params): Cast to avoid compiler warnings.
index 52d88e89521057dc6e0a8d26f9d57f1811c74f58..4d6f7a81cd73867f668cf8aa1d4ce72108666eef 100644 (file)
@@ -3132,9 +3132,9 @@ next_overlay_change (EMACS_INT pos)
 }
 
 /* How many characters forward to search for a display property or
-   display string.  Enough for a screenful of 100 lines x 50
-   characters in a line.  */
-#define MAX_DISP_SCAN 5000
+   display string.  Searching too far forward makes the bidi display
+   sluggish, especially in small windows.  */
+#define MAX_DISP_SCAN 250
 
 /* Return the character position of a display string at or after
    position specified by POSITION.  If no display string exists at or