From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#31196: 27.0.50; shr sometimes doesn't break lines as it should Date: Tue, 17 Apr 2018 20:32:57 +0200 Message-ID: <87y3hlisyu.fsf@mouse.gnus.org> References: <87sh7trikw.fsf@mouse.gnus.org> <87muy1rcid.fsf@mouse.gnus.org> <837ep53fdj.fsf@gnu.org> <87604praor.fsf@mouse.gnus.org> <834lk93d28.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523989937 7609 195.159.176.226 (17 Apr 2018 18:32:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2018 18:32:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 31196@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 17 20:32:12 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8VOk-0001on-FM for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2018 20:32:10 +0200 Original-Received: from localhost ([::1]:55076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8VQp-0003qV-A6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Apr 2018 14:34:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8VQf-0003oI-4c for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 14:34:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8VQa-0004tX-4H for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 14:34:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8VQa-0004tP-0F for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 14:34:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f8VQY-0002Vd-2R for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 14:34:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Apr 2018 18:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31196-submit@debbugs.gnu.org id=B31196.15239899919586 (code B ref 31196); Tue, 17 Apr 2018 18:34:02 +0000 Original-Received: (at 31196) by debbugs.gnu.org; 17 Apr 2018 18:33:11 +0000 Original-Received: from localhost ([127.0.0.1]:57836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8VPi-0002UY-Ui for submit@debbugs.gnu.org; Tue, 17 Apr 2018 14:33:11 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:36445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8VPh-0002UO-El for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 14:33:10 -0400 Original-Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f8VPc-0004k1-0F; Tue, 17 Apr 2018 20:33:08 +0200 Original-Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f8VPW-00023C-Au; Tue, 17 Apr 2018 20:32:58 +0200 In-Reply-To: <834lk93d28.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 17 Apr 2018 21:25:35 +0300") 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" Xref: news.gmane.org gmane.emacs.bugs:145510 Archived-At: Eli Zaretskii writes: > The metric is indeed easily available: that's what window-body-width > returns. But how can it know what will you do with the metric? The > fact that you want to account for one or two fringes etc. is something > specific to the application, no? Well, I think the common use case when you're asking how wide a window is is that you're going to put something in that window and you want to scale it to that window somehow. Since the fringes aren't part of that area, it's weird that you have to dig deeply into those obscure matters to find the area, I think. Perhaps `window-body-width' should have a parameter that makes it return what you'd thing it should return? (By "you" I mean "I", of course.) >> And it seems to be 1 pixel wrong. :-) > > Is it wrong, or are you counting pixels as in 0, 1, ... N, assuming > that the Nth pixel is still in the window? It's possible that there's an off-by-one error somewhere. I'll just fix this by putting a -1 into the form and leave it be. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no