GNU bug report logs - #37020
27.0.50; (window-body-width) returns the wrong value with display-line-numbers-mode on

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Lukas F├╝rmetz <fuermetz@HIDDEN>; Keywords: notabug; dated Tue, 13 Aug 2019 20:22:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) notabug. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 37020 <at> debbugs.gnu.org:


Received: (at 37020) by debbugs.gnu.org; 14 Aug 2019 02:34:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 13 22:34:43 2019
Received: from localhost ([127.0.0.1]:48812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hxj7b-00021j-9g
	for submit <at> debbugs.gnu.org; Tue, 13 Aug 2019 22:34:43 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42375)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1hxj7Z-00021M-1a; Tue, 13 Aug 2019 22:34:41 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:49529)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1hxj7T-00066e-2A; Tue, 13 Aug 2019 22:34:35 -0400
Received: from [176.228.60.248] (port=1723 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1hxj7S-0007WA-5D; Tue, 13 Aug 2019 22:34:34 -0400
Date: Wed, 14 Aug 2019 05:34:23 +0300
Message-Id: <83a7ccsceo.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Lukas =?iso-8859-1?Q?F=FCrmetz?= <fuermetz@HIDDEN>
In-reply-to: <874l2kn7vr.fsf@HIDDEN> (message from Lukas
 =?iso-8859-1?Q?F=FCrmetz?= on Tue, 13 Aug 2019 22:11:04 +0200)
Subject: Re: bug#37020: 27.0.50;
 (window-body-width) returns the wrong value with
 display-line-numbers-mode on
References: <874l2kn7vr.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 37020
Cc: 37020 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 37020 notabug
thanks

> From: Lukas FŘrmetz <fuermetz@HIDDEN>
> Date: Tue, 13 Aug 2019 22:11:04 +0200
> 
> The title says it all. The function `window-body-width' says in it's
> description, it returns the columns purely of the text window, without
> any margin, fringes etc. But if you turn on display-line-numbers-mode,
> it takes up a lot of space in the margin, but `window-body-width' will
> return the same value as without it.

This is not a bug: the line numbers are part of the text area, and
thus part of the window's body.  If you need to account for the width
taken by the line numbers, you can use the line-number-display-width
function.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#37020; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Aug 2019 20:21:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 13 16:21:57 2019
Received: from localhost ([127.0.0.1]:48680 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hxdIp-0007e6-M2
	for submit <at> debbugs.gnu.org; Tue, 13 Aug 2019 16:21:57 -0400
Received: from lists.gnu.org ([209.51.188.17]:56806)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <fuermetz@HIDDEN>) id 1hxd78-0007JS-OC
 for submit <at> debbugs.gnu.org; Tue, 13 Aug 2019 16:09:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56258)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <fuermetz@HIDDEN>) id 1hxd77-0008Tq-TV
 for bug-gnu-emacs@HIDDEN; Tue, 13 Aug 2019 16:09:50 -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.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <fuermetz@HIDDEN>) id 1hxd76-0000Cm-Rr
 for bug-gnu-emacs@HIDDEN; Tue, 13 Aug 2019 16:09:49 -0400
Received: from mx2.mailbox.org ([80.241.60.215]:60904)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <fuermetz@HIDDEN>)
 id 1hxd76-00007N-DK
 for bug-gnu-emacs@HIDDEN; Tue, 13 Aug 2019 16:09:48 -0400
Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241])
 (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits))
 (No client certificate requested)
 by mx2.mailbox.org (Postfix) with ESMTPS id D4B23A1735
 for <bug-gnu-emacs@HIDDEN>; Tue, 13 Aug 2019 22:09:36 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h=
 content-type:content-type:mime-version:message-id:date:date
 :subject:subject:from:from:received:received; s=mail20150812; t=
 1565726975; bh=eL3vXxzIuoszhYW2OXzKDO769xa9+jK9fXiqxcMhG+A=; b=d
 8rrkf5ivLA8iXKHmNUr2FCReop/noRBXmwa/P81HiAJ0VhEtvq2t86i03hb5poYz
 V7H6X+wo2TUgHMZ7C/L0Ok52+gSPJa8a6bOYHNIRF510lB+9lhF5dkYV+9ef46Vv
 yayFls/huj3EZnBeE8Q+mEjojXTBwEKnsnt/EUpLJOrtqXZxu7rHI5QzdpuNItZz
 j7j+bRmly3Ehp6A6HAKi9LKCTsWg2UHLC0CgFpZ6+So5xkNh99jgg4a53+qUajMj
 PdAChfOzpNZWettgK1tZpoGWYpq0tHGeo+ZH8I1bkqolf0lKRt69MyYRd3Dn8AwG
 XdWY86dOg0Rbm4XYwcoUw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org;
 s=mail20150812; t=1565726976;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=eL3vXxzIuoszhYW2OXzKDO769xa9+jK9fXiqxcMhG+A=;
 b=sOGvdxackzlDfCc/2ayjA03dZZ3aT1IkBJ0d9VncD21tHhrk0/4jmMaDOwJAEA44eBLPb3
 oWSQCRK14A4uq+whwMZOreNE7XMLjAlcwUpljFvczWgPdOK7zlBcr9EggNiofRYgMm2PYZ
 OwKotsxsPoED02IxaAIHy25Yk0oJVyiXtRRs6LJdgZgcYGPAtjWD/Xjl3KugvLCKHQqheX
 HR33vGY3znA9Hioj05a3tFWVeNNqzNBUtBEdcPaJghZo6uVaNr3ZywjeMS/P+41sji8kb1
 waHp/GMkQEfpkCjPhfJUzpcJ9eZfkfDFF1hehMa/K7DiWoKKppNc7EaH58xMWg==
X-Virus-Scanned: amavisd-new at heinlein-support.de
Received: from smtp2.mailbox.org ([80.241.60.241])
 by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de
 [80.241.56.122]) (amavisd-new, port 10030)
 with ESMTP id JnbpOZEuBzij for <bug-gnu-emacs@HIDDEN>;
 Tue, 13 Aug 2019 22:09:35 +0200 (CEST)
Received: by smtp.mailbox.org (Postfix, from userid 1000)
 id 8BF2DDE7E62; Tue, 13 Aug 2019 22:11:04 +0200 (CEST)
From: =?utf-8?Q?Lukas_F=C3=BCrmetz?= <fuermetz@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; (window-body-width) returns the wrong value with
 display-line-numbers-mode on
Date: Tue, 13 Aug 2019 22:11:04 +0200
Message-ID: <874l2kn7vr.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 80.241.60.215
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 13 Aug 2019 16:21:54 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

The title says it all. The function `window-body-width' says in it's
description, it returns the columns purely of the text window, without
any margin, fringes etc. But if you turn on display-line-numbers-mode,
it takes up a lot of space in the margin, but `window-body-width' will
return the same value as without it.




Acknowledgement sent to Lukas F├╝rmetz <fuermetz@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37020; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 14 Aug 2019 02:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.