From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22250: 25.0.50; Eww fails to break RTL paragraph Date: Tue, 29 Dec 2015 23:03:20 +0200 Message-ID: <83poxpc6hz.fsf@gnu.org> References: <8760zj3dvr.fsf@justinian.i-did-not-set--mail-host-address--so-tickle-me> <83twn3g0ac.fsf@gnu.org> <8760zjbi9s.fsf@justinian.turtle-trading.net> <83k2nzfdt9.fsf@gnu.org> <87twn2il10.fsf@justinian.turtle-trading.net> <83bn9afqfz.fsf@gnu.org> <87k2nyigmh.fsf@justinian.turtle-trading.net> <8360zifmsk.fsf@gnu.org> <8737umi7xw.fsf@justinian.turtle-trading.net> <83io3hdwwg.fsf@gnu.org> <87a8ot9dqb.fsf@justinian.turtle-trading.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1451423002 15536 80.91.229.3 (29 Dec 2015 21:03:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Dec 2015 21:03:22 +0000 (UTC) Cc: 22250@debbugs.gnu.org, larsi@gnus.org To: Benjamin Riefenstahl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 29 22:03:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aE1QF-0004S0-Mo for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Dec 2015 22:03:11 +0100 Original-Received: from localhost ([::1]:50147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aE1QF-0006wy-4K for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Dec 2015 16:03:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aE1QA-0006wp-8q for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2015 16:03:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aE1Q6-0004te-Iy for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2015 16:03:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aE1Q6-0004ta-Fc for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2015 16:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aE1Q6-0003xh-9f for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2015 16:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Dec 2015 21:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22250 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 22250-submit@debbugs.gnu.org id=B22250.145142297415207 (code B ref 22250); Tue, 29 Dec 2015 21:03:02 +0000 Original-Received: (at 22250) by debbugs.gnu.org; 29 Dec 2015 21:02:54 +0000 Original-Received: from localhost ([127.0.0.1]:48977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aE1Pw-0003xB-Lk for submit@debbugs.gnu.org; Tue, 29 Dec 2015 16:02:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37138) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aE1Pr-0003ww-P2 for 22250@debbugs.gnu.org; Tue, 29 Dec 2015 16:02:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aE1Pj-0004rT-AM for 22250@debbugs.gnu.org; Tue, 29 Dec 2015 16:02:42 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aE1PY-0004qC-AD; Tue, 29 Dec 2015 16:02:28 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4710 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aE1PX-0003UV-HS; Tue, 29 Dec 2015 16:02:27 -0500 In-reply-to: <87a8ot9dqb.fsf@justinian.turtle-trading.net> (message from Benjamin Riefenstahl on Tue, 29 Dec 2015 21:55:24 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:110985 Archived-At: > From: Benjamin Riefenstahl > Cc: 22250@debbugs.gnu.org, larsi@gnus.org > Date: Tue, 29 Dec 2015 21:55:24 +0100 > > Benjamin Riefenstahl writes: > >> I have uploaded this now to my private webserver as > >> . > >> This URL reproduces the problem for me after "G RET". > > > Eli Zaretskii writes: > > Not for me, it doesn't. I tried "G RET" quite a few times, it always > > displays correctly. > > You're right it works now, since > > 03dbfb9 * (eww-setup-buffer): Restore left-to-right defaults > > Yesterday I had still been on the earlier f9d87dd. Oh the joy of moving > targets ;-) > > But that's ok, so this case and my script text case are solved in > practice. I'm still concerned about the behaviour of vertical-motion in > this, though. > > On practical level, there is still the matter of paragraphs using > diacritics. Is that the only remaining problem? Reading the rest of your message, I'm not sure. > Do you have an idea how to fix those? A general idea, yes. I need to look into the details. > I was starting from the doc on window.hscroll in window.h and the > docstring for window-hscroll. The docstring says > > Return the number of columns by which WINDOW is scrolled from left > margin. > > But with bidi-paragraph-direction set to RTL window-hscroll works with > respect to the right margin. I just verified again. That's a bug in the documentation, I will fix that. Thanks for pointing this out. > >> Note that at the point when vertical-motion is called and gives > >> different answers, bidi-paragraph-direction is always right-to-left, so > >> it looks like some window parameter that depends on > >> bidi-paragraph-direction is cached somewhere? > > > > The value of bidi-paragraph-direction shouldn't matter when > > bidi-display-reordering is nil (I've just went through the entire code > > and didn't see any place where we use that value when > > bidi-display-reordering is nil). But just in case I missed something, > > try bindings bidi-paragraph-direction to nil or left-to-right where I > > bind bidi-display-reordering, and see if that helps. > > With both variables set in shr-insert-document, I consistently get a > seemingly correctly wrapped but left justified (LTR) paragraph, > regardless which version I use, I tried in 5049827 (the one before > 03dbfb9) and with the current 88e2de2. This is with the above mentioned > URL. Does this mean there's one more problem? Or does this mean my suggestion didn't work, and is not required, as the only remaining issue is with composed characters? Thanks.