emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/backports-25.2 e1e768e 01/46: Default web pages to


From: Noam Postavsky
Subject: [Emacs-diffs] scratch/backports-25.2 e1e768e 01/46: Default web pages to right-to-left
Date: Sun, 2 Oct 2016 14:04:47 +0000 (UTC)

branch: scratch/backports-25.2
commit e1e768e90429207eadccc8e11ff1209cf661526c
Author: Lars Ingebrigtsen <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Default web pages to right-to-left
    
    * eww.el (eww-mode): Most web pages are left-to-right, so make
    that the default (bug#19801).
    
    * shr.el (shr-tag-html): Respect "dir" attributes
    (left-to-right, right-to-left).
    
    (cherry picked from commit 9e089ec8a380ec3758fcf1564c5f86dc92c68c2a)
---
 lisp/net/eww.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 620a8a5..8bf62c3 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -764,7 +764,8 @@ the like."
   (setq-local desktop-save-buffer #'eww-desktop-misc-data)
   ;; multi-page isearch support
   (setq-local multi-isearch-next-buffer-function #'eww-isearch-next-buffer)
-  (setq truncate-lines t)
+  (setq truncate-lines t
+        bidi-paragraph-direction 'left-to-right)
   (buffer-disable-undo)
   (setq buffer-read-only t))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]