2011-08-08 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (forward_to_next_line_start): Allow to use the
- no-display-properties-and-no-overlays under bidi display.
+ no-display-properties-and-no-overlays under bidi display. Set
+ disp_pos in the bidi iterator to avoid searches for display
+ properties and overlays.
2011-08-08 Chong Yidong <cyd@stupidchicken.com>
{
struct bidi_it bprev;
+ /* Help bidi.c avoid expensive searches for display
+ properties and overlays, by telling it that there are
+ none up to `limit'. */
+ if (it->bidi_it.disp_pos < limit)
+ {
+ it->bidi_it.disp_pos = limit;
+ it->bidi_it.disp_prop_p = 0;
+ }
do {
bprev = it->bidi_it;
bidi_move_to_visually_next (&it->bidi_it);