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 17:43:45 +0300 Message-ID: <838uaoax9a.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> <83pp40blcq.fsf@gnu.org> <874mlcgoka.fsf@web.de> <83bnfkb1rs.fsf@gnu.org> <87pp40nlnj.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1436539465 11519 80.91.229.3 (10 Jul 2015 14:44:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jul 2015 14:44:25 +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 16:44: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 1ZDZX8-000332-T8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jul 2015 16:44:11 +0200 Original-Received: from localhost ([::1]:44907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDZX8-0004EP-1w for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 Jul 2015 10:44:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDZX3-0004EK-Uj for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2015 10:44:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDZX1-0007pL-8H for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2015 10:44:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDZX1-0007pH-4R for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2015 10:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZDZX0-0004H3-JZ for bug-gnu-emacs@gnu.org; Fri, 10 Jul 2015 10:44: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: Fri, 10 Jul 2015 14:44: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.143653943716403 (code B ref 21012); Fri, 10 Jul 2015 14:44:02 +0000 Original-Received: (at 21012) by debbugs.gnu.org; 10 Jul 2015 14:43:57 +0000 Original-Received: from localhost ([127.0.0.1]:46318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDZWu-0004GS-Od for submit@debbugs.gnu.org; Fri, 10 Jul 2015 10:43:57 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:34097) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDZWr-0004G0-KM for 21012@debbugs.gnu.org; Fri, 10 Jul 2015 10:43:55 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NRA00L000OPG500@a-mtaout23.012.net.il> for 21012@debbugs.gnu.org; Fri, 10 Jul 2015 17:43:47 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NRA00LCZ0WYFU10@a-mtaout23.012.net.il>; Fri, 10 Jul 2015 17:43:47 +0300 (IDT) In-reply-to: <87pp40nlnj.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:104890 Archived-At: > From: Michael Heerdegen > Cc: 21012@debbugs.gnu.org > Date: Fri, 10 Jul 2015 16:16:00 +0200 > > Eli Zaretskii writes: > > > > FWIW, the whole thing is already displayed > > > > Then please try this change and see if it gives good results: > > > > --- lisp/net/shr.el~0 2015-05-10 07:23:55 +0300 > > +++ lisp/net/shr.el 2015-07-09 19:24:11 +0300 > > Unfortunately it doesn't work. Rendering now fails with an error: > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) That's exactly what I expected. > because `posn-at-point' returns nil as soon as point moves past > `window-end'. Yes, that's what I meant by "the relevant portion of the buffer [has] to be displayed in some window". If point is not visible, posn-at-point will return nil. It is easy to make the code fail gracefully in those cases, but that would mean the problems this is trying to solve will be solved only in some part of the buffer. Which I think is worse than leaving them as they are now. > Obviously it's not as simple as I thought, not the whole buffer is > "already displayed". My bad. So how about trying to take one more column from the width available for filling? Does that produce reasonable results?