From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 10:52:54 2018 Received: (at submit) by debbugs.gnu.org; 17 Apr 2018 14:52:54 +0000 Received: from localhost ([127.0.0.1]:57656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8RyX-0001l5-Rb for submit@debbugs.gnu.org; Tue, 17 Apr 2018 10:52:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38729) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8RyW-0001ks-BR for submit@debbugs.gnu.org; Tue, 17 Apr 2018 10:52:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8RyQ-0004Va-Fd for submit@debbugs.gnu.org; Tue, 17 Apr 2018 10:52:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f8RyQ-0004VH-CW for submit@debbugs.gnu.org; Tue, 17 Apr 2018 10:52:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8RyP-0008B5-4W for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 10:52:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8RyL-0004QL-61 for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 10:52:45 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:49633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8RyK-0004PZ-VH for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 10:52:41 -0400 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 1f8RyH-0006kj-Gm for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 16:52:39 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f8RyB-0000ya-Fh for bug-gnu-emacs@gnu.org; Tue, 17 Apr 2018 16:52:31 +0200 From: Lars Ingebrigtsen To: bug-gnu-emacs@gnu.org Subject: 27.0.50; shr sometimes doesn't break lines as it should Date: Tue, 17 Apr 2018 16:52:31 +0200 Message-ID: <87sh7trikw.fsf@mouse.gnus.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) With the following HTML, on this laptop with whatever font Emacs is using right now, 80 characters wide, the following is one pixel too wide:

A young Quakers group in Nottingham, England released this 30-minute podcast of a silent meeting, complete with the ambient room sounds. John Cage would be proud. From The Guardian: The "m" in "room" extends too far. I'm just posting this here to remind me to fix it; it'll be difficult for anybody else to reproduce exactly. In GNU Emacs 27.0.50 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2018-04-15 built on corrigan Repository revision: 1c16fbd1b281a46b07028ca78dbaab9a0ec6fd2f Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9 (stretch) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 13:03:59 2018 Received: (at 31196) by debbugs.gnu.org; 17 Apr 2018 17:03:59 +0000 Received: from localhost ([127.0.0.1]:57725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8U1L-0006qk-AW for submit@debbugs.gnu.org; Tue, 17 Apr 2018 13:03:58 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:35286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8U1G-0006qZ-25 for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 13:03:53 -0400 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 1f8U1A-00047t-RA for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 19:03:48 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f8U14-0001bF-JF for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 19:03:38 +0200 From: Lars Ingebrigtsen To: 31196@debbugs.gnu.org Subject: Re: bug#31196: 27.0.50; shr sometimes doesn't break lines as it should References: <87sh7trikw.fsf@mouse.gnus.org> Date: Tue, 17 Apr 2018 19:03:38 +0200 In-Reply-To: <87sh7trikw.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Tue, 17 Apr 2018 16:52:31 +0200") Message-ID: <87muy1rcid.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31196 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > With the following HTML, on this laptop with whatever font Emacs is > using right now, 80 characters wide, the following is one pixel too > wide: This is the problem, I think: (- (window-body-width nil t) (* 2 (frame-char-width)) (if (and (null shr-width) (not (shr--have-one-fringe-p))) (* (frame-char-width) 2) 0)) This kludge is how shr computes how many pixels the window has horizontally. Surely there's a better way to find the practical "inner" width of a window; i.e., the space where we can put text and stuff? Does anybody know? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 13:06:07 2018 Received: (at 31196) by debbugs.gnu.org; 17 Apr 2018 17:06:08 +0000 Received: from localhost ([127.0.0.1]:57729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8U3Q-0006u9-79 for submit@debbugs.gnu.org; Tue, 17 Apr 2018 13:06:07 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:35308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8U3K-0006ta-Iz for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 13:06:02 -0400 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 1f8U3G-0000Qr-5u for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 19:05:58 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f8U3A-0001bQ-89 for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 19:05:48 +0200 From: Lars Ingebrigtsen To: 31196@debbugs.gnu.org Subject: Re: bug#31196: 27.0.50; shr sometimes doesn't break lines as it should References: <87sh7trikw.fsf@mouse.gnus.org> <87muy1rcid.fsf@mouse.gnus.org> Date: Tue, 17 Apr 2018 19:05:47 +0200 In-Reply-To: <87muy1rcid.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Tue, 17 Apr 2018 19:03:38 +0200") Message-ID: <87in8prces.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31196 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Surely there's a better way to find the practical "inner" width of a > window; i.e., the space where we can put text and stuff? Does anybody > know? (If I decrease the width by 1 pixel, then things are filled correctly in my test case.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 13:35:47 2018 Received: (at 31196) by debbugs.gnu.org; 17 Apr 2018 17:35:47 +0000 Received: from localhost ([127.0.0.1]:57757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8UW8-0007aQ-2Z for submit@debbugs.gnu.org; Tue, 17 Apr 2018 13:35:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45341) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8UW2-0007a1-Se for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 13:35:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8UVt-0007es-56 for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 13:35:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8UVt-0007ei-0r; Tue, 17 Apr 2018 13:35:29 -0400 Received: from [176.228.60.248] (port=2699 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f8UVs-0001N9-EX; Tue, 17 Apr 2018 13:35:28 -0400 Date: Tue, 17 Apr 2018 20:35:36 +0300 Message-Id: <837ep53fdj.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87muy1rcid.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Tue, 17 Apr 2018 19:03:38 +0200) Subject: Re: bug#31196: 27.0.50; shr sometimes doesn't break lines as it should References: <87sh7trikw.fsf@mouse.gnus.org> <87muy1rcid.fsf@mouse.gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31196 Cc: 31196@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Lars Ingebrigtsen > Date: Tue, 17 Apr 2018 19:03:38 +0200 > > (- (window-body-width nil t) > (* 2 (frame-char-width)) > (if (and (null shr-width) > (not (shr--have-one-fringe-p))) > (* (frame-char-width) 2) > 0)) > > This kludge is how shr computes how many pixels the window has > horizontally. Why is that a kludge? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 13:43:19 2018 Received: (at 31196) by debbugs.gnu.org; 17 Apr 2018 17:43:19 +0000 Received: from localhost ([127.0.0.1]:57766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8UdP-0007lT-Fx for submit@debbugs.gnu.org; Tue, 17 Apr 2018 13:43:19 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:35774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8UdL-0007lL-9U for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 13:43:14 -0400 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 1f8UdG-0005QO-Bq; Tue, 17 Apr 2018 19:43:10 +0200 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f8UdA-0001ry-E8; Tue, 17 Apr 2018 19:43:00 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#31196: 27.0.50; shr sometimes doesn't break lines as it should References: <87sh7trikw.fsf@mouse.gnus.org> <87muy1rcid.fsf@mouse.gnus.org> <837ep53fdj.fsf@gnu.org> Date: Tue, 17 Apr 2018 19:43:00 +0200 In-Reply-To: <837ep53fdj.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 17 Apr 2018 20:35:36 +0300") Message-ID: <87604praor.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31196 Cc: 31196@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Date: Tue, 17 Apr 2018 19:03:38 +0200 >> >> (- (window-body-width nil t) >> (* 2 (frame-char-width)) >> (if (and (null shr-width) >> (not (shr--have-one-fringe-p))) >> (* (frame-char-width) 2) >> 0)) >> >> This kludge is how shr computes how many pixels the window has >> horizontally. > > Why is that a kludge? Well, perhaps not a kludge, but very complicated for something you'd think would be a metric that's more easily available. And it seems to be 1 pixel wrong. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 14:25:47 2018 Received: (at 31196) by debbugs.gnu.org; 17 Apr 2018 18:25:47 +0000 Received: from localhost ([127.0.0.1]:57812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8VIW-0002Hx-4T for submit@debbugs.gnu.org; Tue, 17 Apr 2018 14:25:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8VIP-0002Hg-KH for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 14:25:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8VIF-00075I-IG for 31196@debbugs.gnu.org; Tue, 17 Apr 2018 14:25:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8VIF-00075C-EY; Tue, 17 Apr 2018 14:25:27 -0400 Received: from [176.228.60.248] (port=2814 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1f8VIE-0005M4-RU; Tue, 17 Apr 2018 14:25:27 -0400 Date: Tue, 17 Apr 2018 21:25:35 +0300 Message-Id: <834lk93d28.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87604praor.fsf@mouse.gnus.org> (message from Lars Ingebrigtsen on Tue, 17 Apr 2018 19:43:00 +0200) Subject: Re: bug#31196: 27.0.50; shr sometimes doesn't break lines as it should References: <87sh7trikw.fsf@mouse.gnus.org> <87muy1rcid.fsf@mouse.gnus.org> <837ep53fdj.fsf@gnu.org> <87604praor.fsf@mouse.gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31196 Cc: 31196@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Lars Ingebrigtsen > Cc: 31196@debbugs.gnu.org > Date: Tue, 17 Apr 2018 19:43:00 +0200 > > >> (- (window-body-width nil t) > >> (* 2 (frame-char-width)) > >> (if (and (null shr-width) > >> (not (shr--have-one-fringe-p))) > >> (* (frame-char-width) 2) > >> 0)) > >> > >> This kludge is how shr computes how many pixels the window has > >> horizontally. > > > > Why is that a kludge? > > Well, perhaps not a kludge, but very complicated for something you'd > think would be a metric that's more easily available. 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? > 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? From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 14:33:11 2018 Received: (at 31196) by debbugs.gnu.org; 17 Apr 2018 18:33:11 +0000 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 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 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 Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f8VPW-00023C-Au; Tue, 17 Apr 2018 20:32:58 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#31196: 27.0.50; shr sometimes doesn't break lines as it should References: <87sh7trikw.fsf@mouse.gnus.org> <87muy1rcid.fsf@mouse.gnus.org> <837ep53fdj.fsf@gnu.org> <87604praor.fsf@mouse.gnus.org> <834lk93d28.fsf@gnu.org> Date: Tue, 17 Apr 2018 20:32:57 +0200 In-Reply-To: <834lk93d28.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 17 Apr 2018 21:25:35 +0300") Message-ID: <87y3hlisyu.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31196 Cc: 31196@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Tue May 01 10:59:51 2018 Received: (at control) by debbugs.gnu.org; 1 May 2018 14:59:51 +0000 Received: from localhost ([127.0.0.1]:45771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDWkw-0002re-QJ for submit@debbugs.gnu.org; Tue, 01 May 2018 10:59:50 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:49013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDWku-0002rU-UP for control@debbugs.gnu.org; Tue, 01 May 2018 10:59:49 -0400 Received: from cm-84.212.221.165.getinternet.no ([84.212.221.165] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fDWkr-0004eN-Kb for control@debbugs.gnu.org; Tue, 01 May 2018 16:59:47 +0200 Date: Tue, 01 May 2018 16:59:45 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #31196 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 31196 fixed close 31196 From unknown Thu Aug 14 22:19:24 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 30 May 2018 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator