From: Eli Zaretskii Date: Thu, 28 Jul 2011 17:18:25 +0000 (+0300) Subject: Turn on bidi-display-reordering by default. X-Git-Tag: emacs-pretest-24.0.90~104^2~157^2~13 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4cc60b9b857810d8229c600b96f440d5b798345a;p=emacs.git Turn on bidi-display-reordering by default. src/buffer.c (init_buffer_once, syms_of_buffer): Set bidi-display-reordering to t by default. doc/emacs/mule.texi (Bidirectional Editing): Document the fact that bidi-display-reordering is t by default. lispref/display.texi (Bidirectional Display): Document the fact that bidi-display-reordering is t by default. --- diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index e10b9a83a43..794771e24d3 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,3 +1,8 @@ +2011-07-28 Eli Zaretskii + + * mule.texi (Bidirectional Editing): Document the fact that + bidi-display-reordering is t by default. + 2011-07-15 Lars Magne Ingebrigtsen * help.texi (Misc Help): Mention `describe-prefix-bindings' diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi index 3c970ecb12c..4f1683ef5ea 100644 --- a/doc/emacs/mule.texi +++ b/doc/emacs/mule.texi @@ -1703,7 +1703,7 @@ Annex #9, for reordering of bidirectional text for display. whether text in the buffer is reordered for display. If its value is non-@code{nil}, Emacs reorders characters that have right-to-left directionality when they are displayed. The default value is -@code{nil}. +@code{t}. Each paragraph of bidirectional text can have its own @dfn{base direction}, either right-to-left or left-to-right. (Paragraph diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index d59bbf87bce..f08ee3a227c 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,8 @@ +2011-07-28 Eli Zaretskii + + * display.texi (Bidirectional Display): Document the fact that + bidi-display-reordering is t by default. + 2011-07-23 Eli Zaretskii * display.texi (Bidirectional Display): New section. diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 903232bcbda..077d0992232 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -6007,7 +6007,7 @@ a ``Full bidirectionality'' class implementation of the @acronym{UBA}. whether text in the buffer is reordered for display. If its value is non-@code{nil}, Emacs reorders characters that have right-to-left directionality when they are displayed. The default value is -@code{nil}. Text in overlay strings (@pxref{Overlay +@code{t}. Text in overlay strings (@pxref{Overlay Properties,,before-string}), display strings (@pxref{Overlay Properties,,display}), and @code{display} text properties (@pxref{Display Property}) is also reordered if the buffer whose text diff --git a/etc/NEWS b/etc/NEWS index ffce9da51e4..7b5d81b613f 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -173,8 +173,11 @@ in your ~/.authinfo file instead. See the node "Bidirectional Editing" in the Emacs Manual for some additional documentation. -To turn this on in any given buffer, set the buffer-local variable -`bidi-display-reordering' to a non-nil value. The default is nil. +To turn this off in any given buffer, set the buffer-local variable +`bidi-display-reordering' to a nil value. The default is t. For text +that includes no right-to-left characters, the result of reordering +looks exactly as it did in previous versions, i.e. there's no +reordering at all. The buffer-local variable `bidi-paragraph-direction', if non-nil, forces each paragraph in the buffer to have its base direction diff --git a/src/ChangeLog b/src/ChangeLog index eef9cede561..8c24a1f4741 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-07-28 Eli Zaretskii + + * buffer.c (init_buffer_once, syms_of_buffer): Set + bidi-display-reordering to t by default. + 2011-07-28 Paul Eggert * alloc.c (memory_full) [!SYNC_INPUT]: Fix signal-related race. diff --git a/src/buffer.c b/src/buffer.c index a40275db8de..79800490fd1 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4926,7 +4926,7 @@ init_buffer_once (void) BVAR (&buffer_defaults, truncate_lines) = Qnil; BVAR (&buffer_defaults, word_wrap) = Qnil; BVAR (&buffer_defaults, ctl_arrow) = Qt; - BVAR (&buffer_defaults, bidi_display_reordering) = Qnil; + BVAR (&buffer_defaults, bidi_display_reordering) = Qt; BVAR (&buffer_defaults, bidi_paragraph_direction) = Qnil; BVAR (&buffer_defaults, cursor_type) = Qt; BVAR (&buffer_defaults, extra_line_spacing) = Qnil; @@ -5500,7 +5500,7 @@ The variable `coding-system-for-write', if non-nil, overrides this variable. This variable is never applied to a way of decoding a file while reading it. */); DEFVAR_PER_BUFFER ("bidi-display-reordering", - &BVAR (current_buffer, bidi_display_reordering), Qnil, + &BVAR (current_buffer, bidi_display_reordering), Qt, doc: /* Non-nil means reorder bidirectional text for display in the visual order. */); DEFVAR_PER_BUFFER ("bidi-paragraph-direction",