+2011-08-24 Eli Zaretskii <eliz@gnu.org>
+
+ * display.texi (Bidirectional Display): Document return value in
+ buffers that are not bidi-reordered for display, and in unibyte
+ buffers.
+
2011-08-23 Eli Zaretskii <eliz@gnu.org>
* nonascii.texi (Character Properties): Document the values for
buffer-local value of the variable @code{bidi-paragraph-direction} is
non-@code{nil}, the returned value will be identical to that value;
otherwise, the returned value reflects the paragraph direction
-determined dynamically by Emacs.
+determined dynamically by Emacs. For buffers whose value of
+@code{bidi-display-reordering} is @code{nil} as well as unibyte
+buffers, this function always returns @code{left-to-right}.
@end defun
@cindex layout on display, and bidirectional text
2011-08-24 Eli Zaretskii <eliz@gnu.org>
+ * xdisp.c (Fcurrent_bidi_paragraph_direction): For unibyte
+ buffers, return left-to-right.
+
* bidi.c (bidi_check_type): Use xassert.
(bidi_cache_iterator_state): Update the disp_pos and disp_prop_p
members.
buf = XBUFFER (buffer);
}
- if (NILP (BVAR (buf, bidi_display_reordering)))
+ if (NILP (BVAR (buf, bidi_display_reordering))
+ || NILP (BVAR (buf, enable_multibyte_characters)))
return Qleft_to_right;
else if (!NILP (BVAR (buf, bidi_paragraph_direction)))
return BVAR (buf, bidi_paragraph_direction);