Add code to initialize bidi iterator for displaying strings.
authorEli Zaretskii <eliz@gnu.org>
Thu, 9 Jun 2011 14:39:27 +0000 (17:39 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 Jun 2011 14:39:27 +0000 (17:39 +0300)
commitbb269206f6ee49b68bb23cf955c531a7fc6ba140
treead52055d982ccc8fd2d1a2ce17059d3df1bfefcb
parentd9334cb76854ba87934792b929d6ab68e70433ae
Add code to initialize bidi iterator for displaying strings.
For now, ifdef'ed away.  Some more testing.

 src/bidi.c (bidi_level_of_next_char): Allow the sentinel "position"
 to pass the test for valid cached positions.
 src/xdisp.c (init_iterator): Call bidi_init_it only of a valid
 buffer position was specified.  Initialize paragraph_embedding to L2R.
 (reseat_to_string): Initialize the bidi iterator (for now ifdef'ed out).
 (display_string): If we need to ignore text properties of
 LISP_STRING, set IT->stop_charpos to IT->end_charpos.  (The
 original value of -1 will not work with bidi.)
 src/dispextern.h (struct bidi_string_data): New member lstring.
src/ChangeLog
src/bidi.c
src/dispextern.h
src/xdisp.c