From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.bugs Subject: bug#28454: RTL HTML causes *Article* buffer to be stuck in RTL mode Date: Tue, 19 Sep 2017 08:22:50 +0000 Organization: http://www.tim-landscheidt.de/ Message-ID: <87r2v3nllx.fsf@passepartout.tim-landscheidt.de> References: <87vakmqcpy.fsf@passepartout.tim-landscheidt.de> <838thhns9d.fsf@gnu.org> <87zi9vb9vz.fsf@passepartout.tim-landscheidt.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1505809392 11559 195.159.176.226 (19 Sep 2017 08:23:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 19 Sep 2017 08:23:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: 28454@debbugs.gnu.org To: control@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 19 10:23:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duDoC-0002dK-7m for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 10:23:08 +0200 Original-Received: from localhost ([::1]:40739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duDoG-0002oh-IB for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Sep 2017 04:23:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duDoA-0002nj-W5 for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duDo7-0002kl-Qd for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:23:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38529) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duDo7-0002kd-M3 for bug-gnu-emacs@gnu.org; Tue, 19 Sep 2017 04:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duDo6-00068G-D8; Tue, 19 Sep 2017 04:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tim Landscheidt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Tue, 19 Sep 2017 08:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28454 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 28454-submit@debbugs.gnu.org id=B28454.150580937923542 (code B ref 28454); Tue, 19 Sep 2017 08:23:02 +0000 Original-Received: (at 28454) by debbugs.gnu.org; 19 Sep 2017 08:22:59 +0000 Original-Received: from localhost ([127.0.0.1]:47206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duDo2-00067d-N9 for submit@debbugs.gnu.org; Tue, 19 Sep 2017 04:22:58 -0400 Original-Received: from mezzogiorno.tim-landscheidt.de ([78.47.87.37]:49254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duDo1-00067S-83; Tue, 19 Sep 2017 04:22:57 -0400 Original-Received: from x4e369dc7.dyn.telefonica.de ([78.54.157.199]:33914 helo=passepartout.tim-landscheidt.de) by mezzogiorno.tim-landscheidt.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1duDnz-000522-Qc; Tue, 19 Sep 2017 08:22:55 +0000 In-Reply-To: <87zi9vb9vz.fsf@passepartout.tim-landscheidt.de> (Tim Landscheidt's message of "Sat, 16 Sep 2017 03:27:44 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137112 Archived-At: --=-=-= Content-Type: text/plain 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 :-). --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=emacs-gnus-bidi-paragraph-direction.patch >From b4f2640d28769abdd6d6ea7380818ddf986bfb5d Mon Sep 17 00:00:00 2001 From: Tim Landscheidt 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 --=-=-=--