From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.bugs Subject: bug#22250: 25.0.50; Eww fails to break RTL paragraph Date: Wed, 30 Dec 2015 21:22:06 +0100 Message-ID: <87io3fptzl.fsf@justinian.turtle-trading.net> 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> <83poxpc6hz.fsf@gnu.org> <87y4cc996q.fsf@justinian.turtle-trading.net> <83a8ordg0d.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1451507006 570 80.91.229.3 (30 Dec 2015 20:23:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2015 20:23:26 +0000 (UTC) Cc: 22250@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 30 21:23:15 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 1aENH5-00015R-Td for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Dec 2015 21:23:12 +0100 Original-Received: from localhost ([::1]:53694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aENH5-0002RM-1S for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Dec 2015 15:23:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aENH1-0002RD-M3 for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2015 15:23:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aENGw-00040k-IQ for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2015 15:23:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aENGw-00040Z-FO for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2015 15:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aENGw-0007YH-8u for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2015 15:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Benjamin Riefenstahl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Dec 2015 20:23: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.145150693728951 (code B ref 22250); Wed, 30 Dec 2015 20:23:02 +0000 Original-Received: (at 22250) by debbugs.gnu.org; 30 Dec 2015 20:22:17 +0000 Original-Received: from localhost ([127.0.0.1]:50665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aENGC-0007Wt-OS for submit@debbugs.gnu.org; Wed, 30 Dec 2015 15:22:16 -0500 Original-Received: from odoacer.turtle-trading.net ([217.91.34.180]:51480) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aENGB-0007Wa-2p for 22250@debbugs.gnu.org; Wed, 30 Dec 2015 15:22:15 -0500 Original-Received: from justinian.turtle-trading.net ([192.168.2.118]) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1aENG3-0003N9-6L; Wed, 30 Dec 2015 21:22:07 +0100 Original-Received: from benny by justinian.turtle-trading.net with local (Exim 4.84) (envelope-from ) id 1aENG3-0002Y7-2D; Wed, 30 Dec 2015 21:22:07 +0100 In-Reply-To: <83a8ordg0d.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 30 Dec 2015 19:04:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) 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:111044 Archived-At: Eli Zaretskii writes: >> At this point every problem in my application and test cases that I >> still see involves diacritics. > > I fixed that case now, please try the latest emacs-25 branch. It was > a very subtle problem with shr-vertical-motion (which actually > triggered a bug in vertical-motion). That works. Thanks, that's cool. > I'll need a clear test case to look into this. Try the attached patch. It reverts parts of Lars' fix and adds a debug message to shr-vertical-motion. For a base-line test, execute ./emacs -Q -nw --eval '(eww "https://odoacer.turtle-trading.net/abc-abc-abc-abc-abc-abc-abc-abc-abc-abc-abc-abc-abc-abc-test.html")' Once the page is loaded, press "G RET". This second load reproduces the problem for me. I get this protocol in the message buffer: Contacting host: odoacer.turtle-trading.net:443 bpd: right-to-left pt: 1 hscroll: 0 bpd: right-to-left pt: 97 hscroll: 0 bpd: right-to-left pt: 193 hscroll: 0 bpd: right-to-left pt: 289 hscroll: 0 Contacting host: odoacer.turtle-trading.net:443 bpd: right-to-left pt: 1 hscroll: 57 bpd: right-to-left pt: 153 hscroll: 57 bpd: right-to-left pt: 305 hscroll: 57 The first run is as I expected. The second run has point at 1 and hscroll at 57 (this is in a terminal, that's why the actual number is different from before). According to my logic that should not be possible. When the point is at 1, then hscroll should be 0 otherwise point would not be visible. Unless some intermediate state is permissible. But than shr could not rely on hscroll and therefore not on vertical-motion. Now as a second experiment, remove the ";" from bidi-paragraph-direction in shr-insert-document. Repeat the test. Now the result should look correct. Somehow bidi-paragraph-direction does make a difference.