bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#28454: RTL HTML causes *Article* buffer to be stuck in RTL mode


From: Tim Landscheidt
Subject: bug#28454: RTL HTML causes *Article* buffer to be stuck in RTL mode
Date: Tue, 19 Sep 2017 08:22:50 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

tags 28454 + patch
thanks

The attached patch against emacs-25 seems to work for me.
Due to Gnus's undocumentedness, it's a big stab in the dark,
but it resets bidi-paragraph-direction for all test cases in
my inbox :-).
>From b4f2640d28769abdd6d6ea7380818ddf986bfb5d Mon Sep 17 00:00:00 2001
From: Tim Landscheidt <address@hidden>
Date: Sun, 17 Sep 2017 05:20:21 +0000
Subject: [PATCH] Reset bidi-paragraph-direction on article rendering

* lisp/gnus/gnus-art.el: Reset bidi-paragraph-direction on article rendering
(Bug#28454).
---
 lisp/gnus/gnus-art.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 60b6a371..d7c7391 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -7052,6 +7052,7 @@ gnus-request-article-this-buffer
        (save-excursion
          (erase-buffer)
          (gnus-kill-all-overlays)
+         (setq bidi-paragraph-direction nil)
          (setq group (or group gnus-newsgroup-name))
 
          ;; Using `gnus-request-article' directly will insert the article into
@@ -7159,6 +7160,7 @@ gnus-request-article-this-buffer
              (while (not result)
                (erase-buffer)
                (gnus-kill-all-overlays)
+               (setq bidi-paragraph-direction nil)
                (let ((gnus-newsgroup-name group))
                  (gnus-check-group-server))
                (cond
-- 
2.9.5


reply via email to

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