aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2011-07-28 20:18:25 +0300
committerEli Zaretskii2011-07-28 20:18:25 +0300
commit4cc60b9b857810d8229c600b96f440d5b798345a (patch)
tree722ba06db078048e09c50ada5ea290f74c83c30f
parent66606eea1f69d1b35dfc006c2901f2c7ca08d487 (diff)
downloademacs-4cc60b9b857810d8229c600b96f440d5b798345a.tar.gz
emacs-4cc60b9b857810d8229c600b96f440d5b798345a.zip
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.
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/mule.texi2
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/display.texi2
-rw-r--r--etc/NEWS7
-rw-r--r--src/ChangeLog5
-rw-r--r--src/buffer.c4
7 files changed, 24 insertions, 6 deletions
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 @@
12011-07-28 Eli Zaretskii <eliz@gnu.org>
2
3 * mule.texi (Bidirectional Editing): Document the fact that
4 bidi-display-reordering is t by default.
5
12011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org> 62011-07-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 7
3 * help.texi (Misc Help): Mention `describe-prefix-bindings' 8 * 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.
1703whether text in the buffer is reordered for display. If its value is 1703whether text in the buffer is reordered for display. If its value is
1704non-@code{nil}, Emacs reorders characters that have right-to-left 1704non-@code{nil}, Emacs reorders characters that have right-to-left
1705directionality when they are displayed. The default value is 1705directionality when they are displayed. The default value is
1706@code{nil}. 1706@code{t}.
1707 1707
1708 Each paragraph of bidirectional text can have its own @dfn{base 1708 Each paragraph of bidirectional text can have its own @dfn{base
1709direction}, either right-to-left or left-to-right. (Paragraph 1709direction}, 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 @@
12011-07-28 Eli Zaretskii <eliz@gnu.org>
2
3 * display.texi (Bidirectional Display): Document the fact that
4 bidi-display-reordering is t by default.
5
12011-07-23 Eli Zaretskii <eliz@gnu.org> 62011-07-23 Eli Zaretskii <eliz@gnu.org>
2 7
3 * display.texi (Bidirectional Display): New section. 8 * 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}.
6007whether text in the buffer is reordered for display. If its value is 6007whether text in the buffer is reordered for display. If its value is
6008non-@code{nil}, Emacs reorders characters that have right-to-left 6008non-@code{nil}, Emacs reorders characters that have right-to-left
6009directionality when they are displayed. The default value is 6009directionality when they are displayed. The default value is
6010@code{nil}. Text in overlay strings (@pxref{Overlay 6010@code{t}. Text in overlay strings (@pxref{Overlay
6011Properties,,before-string}), display strings (@pxref{Overlay 6011Properties,,before-string}), display strings (@pxref{Overlay
6012Properties,,display}), and @code{display} text properties 6012Properties,,display}), and @code{display} text properties
6013(@pxref{Display Property}) is also reordered if the buffer whose text 6013(@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.
173See the node "Bidirectional Editing" in the Emacs Manual for some 173See the node "Bidirectional Editing" in the Emacs Manual for some
174additional documentation. 174additional documentation.
175 175
176To turn this on in any given buffer, set the buffer-local variable 176To turn this off in any given buffer, set the buffer-local variable
177`bidi-display-reordering' to a non-nil value. The default is nil. 177`bidi-display-reordering' to a nil value. The default is t. For text
178that includes no right-to-left characters, the result of reordering
179looks exactly as it did in previous versions, i.e. there's no
180reordering at all.
178 181
179The buffer-local variable `bidi-paragraph-direction', if non-nil, 182The buffer-local variable `bidi-paragraph-direction', if non-nil,
180forces each paragraph in the buffer to have its base direction 183forces 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 @@
12011-07-28 Eli Zaretskii <eliz@gnu.org>
2
3 * buffer.c (init_buffer_once, syms_of_buffer): Set
4 bidi-display-reordering to t by default.
5
12011-07-28 Paul Eggert <eggert@cs.ucla.edu> 62011-07-28 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 * alloc.c (memory_full) [!SYNC_INPUT]: Fix signal-related race. 8 * 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)
4926 BVAR (&buffer_defaults, truncate_lines) = Qnil; 4926 BVAR (&buffer_defaults, truncate_lines) = Qnil;
4927 BVAR (&buffer_defaults, word_wrap) = Qnil; 4927 BVAR (&buffer_defaults, word_wrap) = Qnil;
4928 BVAR (&buffer_defaults, ctl_arrow) = Qt; 4928 BVAR (&buffer_defaults, ctl_arrow) = Qt;
4929 BVAR (&buffer_defaults, bidi_display_reordering) = Qnil; 4929 BVAR (&buffer_defaults, bidi_display_reordering) = Qt;
4930 BVAR (&buffer_defaults, bidi_paragraph_direction) = Qnil; 4930 BVAR (&buffer_defaults, bidi_paragraph_direction) = Qnil;
4931 BVAR (&buffer_defaults, cursor_type) = Qt; 4931 BVAR (&buffer_defaults, cursor_type) = Qt;
4932 BVAR (&buffer_defaults, extra_line_spacing) = Qnil; 4932 BVAR (&buffer_defaults, extra_line_spacing) = Qnil;
@@ -5500,7 +5500,7 @@ The variable `coding-system-for-write', if non-nil, overrides this variable.
5500This variable is never applied to a way of decoding a file while reading it. */); 5500This variable is never applied to a way of decoding a file while reading it. */);
5501 5501
5502 DEFVAR_PER_BUFFER ("bidi-display-reordering", 5502 DEFVAR_PER_BUFFER ("bidi-display-reordering",
5503 &BVAR (current_buffer, bidi_display_reordering), Qnil, 5503 &BVAR (current_buffer, bidi_display_reordering), Qt,
5504 doc: /* Non-nil means reorder bidirectional text for display in the visual order. */); 5504 doc: /* Non-nil means reorder bidirectional text for display in the visual order. */);
5505 5505
5506 DEFVAR_PER_BUFFER ("bidi-paragraph-direction", 5506 DEFVAR_PER_BUFFER ("bidi-paragraph-direction",