aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2016-03-01 11:31:37 +1100
committerLars Ingebrigtsen2016-03-01 11:31:52 +1100
commitcb1e3da12eb1fcacbf9933ca49a85b6f4116878c (patch)
treec9ae9a8161a6c99caf219d337e0121cd8717d300
parentbbe8a899ac91f93bcdb14fec8c200cd3f2256987 (diff)
downloademacs-cb1e3da12eb1fcacbf9933ca49a85b6f4116878c.tar.gz
emacs-cb1e3da12eb1fcacbf9933ca49a85b6f4116878c.zip
Also allow setting the paragraph direction to nil
* lisp/net/eww.el (eww-toggle-paragraph-direction): Also allow setting the paragraph direction to nil ("auto").
-rw-r--r--lisp/net/eww.el16
1 files changed, 11 insertions, 5 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 886b4b9a503..620a8a5f9ac 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -608,13 +608,19 @@ Currently this means either text/html or application/xhtml+xml."
608 (view-buffer buf))) 608 (view-buffer buf)))
609 609
610(defun eww-toggle-paragraph-direction () 610(defun eww-toggle-paragraph-direction ()
611 "Toggle the paragraphs direction between left-to-right and right-to-left." 611 "Cycle the paragraph direction between left-to-right, right-to-left and auto."
612 (interactive) 612 (interactive)
613 (setq bidi-paragraph-direction 613 (setq bidi-paragraph-direction
614 (if (eq bidi-paragraph-direction 'left-to-right) 614 (cond ((eq bidi-paragraph-direction 'left-to-right)
615 'right-to-left 615 nil)
616 'left-to-right)) 616 ((eq bidi-paragraph-direction 'right-to-left)
617 (message "The paragraph direction is now %s" bidi-paragraph-direction)) 617 'left-to-right)
618 (t
619 'right-to-left)))
620 (message "The paragraph direction is now %s"
621 (if (null bidi-paragraph-direction)
622 "automatic"
623 bidi-paragraph-direction)))
618 624
619(defun eww-readable () 625(defun eww-readable ()
620 "View the main \"readable\" parts of the current web page. 626 "View the main \"readable\" parts of the current web page.