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:30:30 +0100 Message-ID: <87bn97ptll.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> <87io3fptzl.fsf@justinian.turtle-trading.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1451507480 8019 80.91.229.3 (30 Dec 2015 20:31:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Dec 2015 20:31:20 +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:31:11 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 1aENOp-0007Su-4E for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Dec 2015 21:31:11 +0100 Original-Received: from localhost ([::1]:53709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aENOn-0003cp-TU for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Dec 2015 15:31:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aENOk-0003ci-BD for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2015 15:31:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aENOg-000614-BE for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2015 15:31:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aENOg-000610-7i for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2015 15:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aENOg-0007mP-41 for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2015 15:31: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:31: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.145150743929870 (code B ref 22250); Wed, 30 Dec 2015 20:31:02 +0000 Original-Received: (at 22250) by debbugs.gnu.org; 30 Dec 2015 20:30:39 +0000 Original-Received: from localhost ([127.0.0.1]:50674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aENOI-0007li-RQ for submit@debbugs.gnu.org; Wed, 30 Dec 2015 15:30:39 -0500 Original-Received: from odoacer.turtle-trading.net ([217.91.34.180]:51497) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aENOG-0007lM-Lt for 22250@debbugs.gnu.org; Wed, 30 Dec 2015 15:30:36 -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 1aENOA-0003Nj-PW; Wed, 30 Dec 2015 21:30:30 +0100 Original-Received: from benny by justinian.turtle-trading.net with local (Exim 4.84) (envelope-from ) id 1aENOA-0002ZH-Ln; Wed, 30 Dec 2015 21:30:30 +0100 In-Reply-To: <87io3fptzl.fsf@justinian.turtle-trading.net> (Benjamin Riefenstahl's message of "Wed, 30 Dec 2015 21:22:06 +0100") 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:111046 Archived-At: --=-=-= Content-Type: text/plain Benjamin Riefenstahl writes: > Try the attached patch. I mean this one :-( --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=wrap.patch diff --git a/lisp/net/eww.el b/lisp/net/eww.el index e8fdc97..3d9d39c 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -401,7 +401,7 @@ eww-display-html (source (and (null document) (buffer-substring (point) (point-max))))) (with-current-buffer buffer - (setq bidi-paragraph-direction 'left-to-right) + ;(setq bidi-paragraph-direction 'left-to-right) (plist-put eww-data :source source) (plist-put eww-data :dom document) (let ((inhibit-read-only t) @@ -562,7 +562,7 @@ eww-setup-buffer (let ((inhibit-read-only t)) (remove-overlays) (erase-buffer)) - (setq bidi-paragraph-direction 'left-to-right) + ;(setq bidi-paragraph-direction 'left-to-right) (unless (eq major-mode 'eww-mode) (eww-mode))) diff --git a/lisp/net/shr.el b/lisp/net/shr.el index 330f7b5..4eee425 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el @@ -245,6 +245,7 @@ shr-insert-document (not (shr--have-one-fringe-p))) (* (frame-char-width) 2) 0))))) + ;bidi-paragraph-direction bidi-display-reordering) (shr-descend dom) (shr-fill-lines start (point)) @@ -591,6 +592,10 @@ shr-fill-lines (goto-char (point-max))))) (defun shr-vertical-motion (column) + (message "bpd: %s pt: %d hscroll: %d" + bidi-paragraph-direction + (point) + (window-hscroll)) (if (not shr-use-fonts) (move-to-column column) (unless (eolp) --=-=-=--