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#21012: 25.0.50; eww: last char of a line sometimes not fully visible Date: Thu, 09 Jul 2015 05:38:29 +0300 Message-ID: <83a8v6ukbe.fsf@gnu.org> References: <87twteh65g.fsf@web.de> <83d202v2m2.fsf@gnu.org> <87wpya5rey.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1436409569 30425 80.91.229.3 (9 Jul 2015 02:39:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2015 02:39:29 +0000 (UTC) Cc: 21012@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 09 04:39:18 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 1ZD1k3-0004sD-EQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Jul 2015 04:39:15 +0200 Original-Received: from localhost ([::1]:37481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD1k1-0006xQ-5R for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jul 2015 22:39:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD1jw-0006xK-B9 for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2015 22:39:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZD1jr-0005fZ-3a for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2015 22:39:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZD1jr-0005fR-0C for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2015 22:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZD1jq-0000pq-Ex for bug-gnu-emacs@gnu.org; Wed, 08 Jul 2015 22:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jul 2015 02:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21012 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21012-submit@debbugs.gnu.org id=B21012.14364095223187 (code B ref 21012); Thu, 09 Jul 2015 02:39:02 +0000 Original-Received: (at 21012) by debbugs.gnu.org; 9 Jul 2015 02:38:42 +0000 Original-Received: from localhost ([127.0.0.1]:44598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZD1jV-0000pL-VR for submit@debbugs.gnu.org; Wed, 08 Jul 2015 22:38:42 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:36838) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZD1jU-0000p7-01 for 21012@debbugs.gnu.org; Wed, 08 Jul 2015 22:38:41 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NR7000008KR1R00@a-mtaout21.012.net.il> for 21012@debbugs.gnu.org; Thu, 09 Jul 2015 05:38:33 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NR70008F8O91F10@a-mtaout21.012.net.il>; Thu, 09 Jul 2015 05:38:33 +0300 (IDT) In-reply-to: <87wpya5rey.fsf@web.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:104842 Archived-At: > From: Michael Heerdegen > Cc: 21012@debbugs.gnu.org > Date: Wed, 08 Jul 2015 22:24:21 +0200 > > > > (- (window-pixel-width) (* (frame-fringe-width) 2)) > > > > > > is not the available width for text, it is a larger value including > > > scroll bars etc. > > > > Do you understand why the value of frame-fringe-width is multiplied by > > 2? > > I guess because the window is assumed to have two fringes. But frame-fringe-width returns the sum of them both, doesn't it? > > > Probably (/ column (frame-char-width)) can be too large if you are > > > unlucky. > > > > Sorry, I don't follow. Can you elaborate on when this could happen? > > Note that in the shr-use-fonts -> t case, COLUMN is in pixels. > > (/ column (frame-char-width)) > > is IMO an estimated value of "real" columns to advance. No, it's the value in pixels expressed in frame's canonical character width. > But if there are many wide characters, this can be too large. No, it cannot. It doesn't depend in the width of individual characters, sine it doesn't count real columns. It's just a coordinate. > I think you looked at the wrong `if' branch...? What I changed was to > use `end-of-visual-line', which I hope is more accurate than > > (vertical-motion (cons (/ column (frame-char-width)) 0)) > > for finding the right point for breaking the line. Maybe, it sounds like I need to take a better look. Thanks.