Support bidi reordering of unibyte strings. Fix crash displaying "All" in mode line...
authorEli Zaretskii <eliz@gnu.org>
Fri, 1 Jul 2011 10:53:29 +0000 (13:53 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 1 Jul 2011 10:53:29 +0000 (13:53 +0300)
commitf3014ef5b24ac42ec714b48148b7b604b47f7468
tree98ca5852c241272f7e2d4b5d011e1d1785e650a3
parent7e2ad32c19096fb9a86fbb88f7e7b1ed90a332e9
Support bidi reordering of unibyte strings.  Fix crash displaying "All" in mode line of an empty buffer.

 src/dispextern.h (struct bidi_string_data): New member `unibyte'.
 src/xdisp.c (handle_single_display_spec, next_overlay_string)
 (get_overlay_strings_1, reseat_1, reseat_to_string)
 (push_display_prop): Set up the `unibyte' member of bidi_it.string
 correctly.  Don't assume unibyte strings are not bidi-reordered.
 (compute_display_string_pos)
 (compute_display_string_end): Fix handling the case of C string.
 src/bidi.c (bidi_count_bytes, bidi_char_at_pos): Accept an
 additional argument UNIBYTE, and support unibyte strings.  All
 callers changed.
 (bidi_fetch_char): Support unibyte strings.
src/ChangeLog
src/bidi.c
src/dispextern.h
src/xdisp.c