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: Fri, 10 Jul 2015 09:03:17 +0300 Message-ID: <83pp40blcq.fsf@gnu.org> References: <87twteh65g.fsf@web.de> <83d202v2m2.fsf@gnu.org> <87wpya5rey.fsf@web.de> <83a8v6ukbe.fsf@gnu.org> <834mlduyz8.fsf@gnu.org> <87egkh3xl3.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1436508264 28123 80.91.229.3 (10 Jul 2015 06:04:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jul 2015 06:04:24 +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 Fri Jul 10 08:04:14 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 1ZDRPv-0001mk-BV for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jul 2015 08:04:11 +0200 Original-Received: from localhost ([::1]:43106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDRPt-0000HE-Lj for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jul 2015 02:04:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDRPp-0000Gq-82 for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2015 02:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDRPl-0001tj-UM for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2015 02:04:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDRPl-0001tf-Ra for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2015 02:04:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZDRPl-0001Rx-KN for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2015 02:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Jul 2015 06:04:01 +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.14365082095490 (code B ref 21012); Fri, 10 Jul 2015 06:04:01 +0000 Original-Received: (at 21012) by debbugs.gnu.org; 10 Jul 2015 06:03:29 +0000 Original-Received: from localhost ([127.0.0.1]:45755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDRPE-0001QR-AR for submit@debbugs.gnu.org; Fri, 10 Jul 2015 02:03:28 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:45159) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDRPB-0001Q2-Lc for 21012@debbugs.gnu.org; Fri, 10 Jul 2015 02:03:26 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NR900000CG27S00@a-mtaout22.012.net.il> for 21012@debbugs.gnu.org; Fri, 10 Jul 2015 09:03:19 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NR9000NFCTJ5I40@a-mtaout22.012.net.il>; Fri, 10 Jul 2015 09:03:19 +0300 (IDT) In-reply-to: <87egkh3xl3.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:104874 Archived-At: > From: Michael Heerdegen > Cc: 21012@debbugs.gnu.org > Date: Thu, 09 Jul 2015 22:06:16 +0200 > > The problem described by me (from the screenshot) is however not > completely fixed (recipe follows). > > What I originally posted seems to happen with any text, it is more > likely to happen when you use positive text-scale-mode, and it still > happens. > > If you want a precise recipe (though it's just a random example): emacs > -Q, C-h C-a, click on the first link (named "Gnu Emacs") with mouse-2. > In line 135, the last char is truncated. > > If you hit C-x C-+, you will find more and more partly visible chars the > more you scale up. > > Using `end-of-visual-line' seemed to fix this, but we can't use it. > Is `window-text-pixel-size' useful? The problem here is that shr assumes that the last character on a visual line is always fully visible, which is false when truncate-lines is non-nil. The last call to forward-char in shr-vertical-motion should _not_ be made when the character we ended up at is too wide to be fully visible at the end of a visual line. The problem is that functions we have that can tell if that happens require the relevant portion of the buffer to be displayed in some window, so I think shr.el cannot use them. If the result of what we have now is too annoying, the only way to solve it I could think of is to artificially reduce the available window width by one more column. This would lose us one column in some cases, and will not solve the issue completely (a _very_ wide character will still be partially visible), but it could be a stopgap. Better ideas are welcome.