aboutsummaryrefslogtreecommitdiffstats
path: root/src/dispextern.h
diff options
context:
space:
mode:
authorEli Zaretskii2011-06-09 17:39:27 +0300
committerEli Zaretskii2011-06-09 17:39:27 +0300
commitbb269206f6ee49b68bb23cf955c531a7fc6ba140 (patch)
treead52055d982ccc8fd2d1a2ce17059d3df1bfefcb /src/dispextern.h
parentd9334cb76854ba87934792b929d6ab68e70433ae (diff)
downloademacs-bb269206f6ee49b68bb23cf955c531a7fc6ba140.tar.gz
emacs-bb269206f6ee49b68bb23cf955c531a7fc6ba140.zip
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.
Diffstat (limited to 'src/dispextern.h')
-rw-r--r--src/dispextern.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 0f7089d7916..979cb43e98f 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -1814,7 +1814,8 @@ struct bidi_stack {
1814 1814
1815/* Data type for storing information about a string being iterated on. */ 1815/* Data type for storing information about a string being iterated on. */
1816struct bidi_string_data { 1816struct bidi_string_data {
1817 const unsigned char *s; /* the string, or NULL if reordering buffer */ 1817 Lisp_Object lstring; /* Lisp string to reorder, or nil */
1818 const unsigned char *s; /* string data, or NULL if reordering buffer */
1818 EMACS_INT schars; /* the number of characters in the string, 1819 EMACS_INT schars; /* the number of characters in the string,
1819 excluding the terminating null */ 1820 excluding the terminating null */
1820 unsigned from_disp_str : 1; /* 1 means the string comes from a 1821 unsigned from_disp_str : 1; /* 1 means the string comes from a