From: Eli Zaretskii <eliz@gnu.org>
Date: Mon, 25 Jul 2011 15:36:47 +0000 (+0300)
Subject: Fix logic of caching display string positions for bidi display.
X-Git-Tag: emacs-pretest-24.0.90~104^2~163^2
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2238127283d703f38765f9b3f6a64f799d18e9e5;p=emacs.git

Fix logic of caching display string positions for bidi display.

 src/xdisp.c (compute_display_string_pos): Fix logic of caching
 previous display string position.  Initialize cached_prev_pos to -1.
 Fixes slow-down at the beginning of a buffer.
---

2238127283d703f38765f9b3f6a64f799d18e9e5
diff --cc src/ChangeLog
index e537848ea41,8aa1237f693..b3d2f64bcc7
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@@ -1,18 -1,11 +1,24 @@@
 -2011-07-24  Eli Zaretskii  <eliz@gnu.org>
++2011-07-25  Eli Zaretskii  <eliz@gnu.org>
+ 
+ 	* xdisp.c (compute_display_string_pos): Fix logic of caching
+ 	previous display string position.  Initialize cached_prev_pos to
+ 	-1.  Fixes slow-down at the beginning of a buffer.
+ 
 +2011-07-24  Eli Zaretskii  <eliz@gnu.org>
 +
 +	* xfaces.c (check_lface_attrs) [HAVE_WINDOW_SYSTEM]: Allow `nil'
 +	for attrs[LFACE_FONTSET_INDEX].
 +
 +2011-07-23  Paul Eggert  <eggert@cs.ucla.edu>
 +
 +	* xml.c (parse_region): Remove unused local
 +	that was recently introduced.
 +
  2011-07-23  Eli Zaretskii  <eliz@gnu.org>
  
 +	* xfns.c (unwind_create_frame) [GLYPH_DEBUG]: Adapt to changes in
 +	2008-02-22T17:42:09Z!monnier@iro.umontreal.ca.
 +
  	* xdisp.c (move_it_in_display_line_to): Record the best matching
  	position for TO_CHARPOS while scanning the line, and restore it on
  	exit if none of the characters scanned was an exact match.  Fixes