From: Lars Ingebrigtsen <larsi@gnus.org>
Date: Mon, 29 Feb 2016 23:33:05 +0000 (+1100)
Subject: Default bidi paragraph direction to nil
X-Git-Tag: emacs-26.0.90~2420
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f71dbb30eeb4b9885ae1c9c580f65c956008d0cf;p=emacs.git

Default bidi paragraph direction to nil

* lisp/net/eww.el (eww-display-html): Default bidi rendering
to nil, so that possibly more Arabic web pages render
correctly (bug#22786).
(eww-setup-buffer): Ditto.
---

diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 91a17755244..3c3736ac376 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -418,7 +418,7 @@ Currently this means either text/html or application/xhtml+xml."
 	(source (and (null document)
 		     (buffer-substring (point) (point-max)))))
     (with-current-buffer buffer
-      (setq bidi-paragraph-direction 'left-to-right)
+      (setq bidi-paragraph-direction nil)
       (plist-put eww-data :source source)
       (plist-put eww-data :dom document)
       (let ((inhibit-read-only t)
@@ -580,7 +580,7 @@ Currently this means either text/html or application/xhtml+xml."
   (let ((inhibit-read-only t))
     (remove-overlays)
     (erase-buffer))
-  (setq bidi-paragraph-direction 'left-to-right)
+  (setq bidi-paragraph-direction nil)
   (unless (eq major-mode 'eww-mode)
     (eww-mode)))