From unknown Sun Jun 22 20:55:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37020 <37020@debbugs.gnu.org> To: bug#37020 <37020@debbugs.gnu.org> Subject: Status: 27.0.50; (window-body-width) returns the wrong value with display-line-numbers-mode on Reply-To: bug#37020 <37020@debbugs.gnu.org> Date: Mon, 23 Jun 2025 03:55:52 +0000 retitle 37020 27.0.50; (window-body-width) returns the wrong value with dis= play-line-numbers-mode on reassign 37020 emacs submitter 37020 Lukas F=C3=BCrmetz severity 37020 normal tag 37020 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 13 16:21:57 2019 Received: (at submit) by debbugs.gnu.org; 13 Aug 2019 20:21:57 +0000 Received: from localhost ([127.0.0.1]:48680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hxdIp-0007e6-M2 for submit@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 ) id 1hxd78-0007JS-OC for submit@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 ) id 1hxd77-0008Tq-TV for bug-gnu-emacs@gnu.org; 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 ) id 1hxd76-0000Cm-Rr for bug-gnu-emacs@gnu.org; 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 ) id 1hxd76-00007N-DK for bug-gnu-emacs@gnu.org; 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 ; 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 ; 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?= To: bug-gnu-emacs@gnu.org 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@mailbox.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] 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@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: -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. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 13 22:34:43 2019 Received: (at 37020) by debbugs.gnu.org; 14 Aug 2019 02:34:43 +0000 Received: from localhost ([127.0.0.1]:48812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hxj7b-00021j-9g for submit@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 ) 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 ) 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 ) 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@gnu.org> From: Eli Zaretskii To: Lukas =?iso-8859-1?Q?F=FCrmetz?= In-reply-to: <874l2kn7vr.fsf@mailbox.org> (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@mailbox.org> 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@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: -3.3 (---) tags 37020 notabug thanks > From: Lukas Fürmetz > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 02:55:07 2019 Received: (at 37020-done) by debbugs.gnu.org; 23 Aug 2019 06:55:07 +0000 Received: from localhost ([127.0.0.1]:38999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i13TX-00062g-1t for submit@debbugs.gnu.org; Fri, 23 Aug 2019 02:55:07 -0400 Received: from mail-pg1-f172.google.com ([209.85.215.172]:36643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i13TU-00061y-NM for 37020-done@debbugs.gnu.org; Fri, 23 Aug 2019 02:55:05 -0400 Received: by mail-pg1-f172.google.com with SMTP id l21so5236768pgm.3 for <37020-done@debbugs.gnu.org>; Thu, 22 Aug 2019 23:55:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc :content-transfer-encoding; bh=qMyo9GmOjKl9fhzJgWKZvLDEOrcDLulQnD6bJPFXQ9g=; b=JGdNxVcV0Xg4nMmYOEueR6YS85PSr3zOdV6U7URZIB90kHVV4E0I9MIkKX82w487Pv EY97lGKW++871sOqEzENnjQES2/XKrfBhEyIjWf0mGpblHB6RrNIKWMoH+BoV/Hsc/iu gsuBVm6rrcso70EjscVvQGrHWsF+CxLlHX9fDNpTEhT2lgsJhs0vOIqcBrITjTsjQKta Mbeoyop/TvbDHU0fdQxXH50whh+94m18EZgFA0/VHNP6W3rvNesBSryT0eyurR66qWjy X+uvlmkdXO3K8YDB+GBShYiQYAWHpAaasj+GKb7KzWXQnbtlLaV2cuD6mU7b7U7CwtCi ybjw== X-Gm-Message-State: APjAAAU3W2rNIzR6srD3P7LQtDU0zCasnH6053Ubz/q+stmwAJx7srd/ Uw8MP5X/dwaG7nnQL9fPx0yIWxOFd/8At9MBkSQ= X-Google-Smtp-Source: APXvYqx6IQKhB8kEzYUKWuKs4xrFrdw5Cmr+1m2XW1Cjm/wL2LexGT+Cklr6RebV/cGco6sxC7VZGA6SGNJUXRGEMnc= X-Received: by 2002:aa7:9552:: with SMTP id w18mr3393916pfq.107.1566543298858; Thu, 22 Aug 2019 23:54:58 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Fri, 23 Aug 2019 08:54:47 +0200 Message-ID: Subject: bug#37020: 27.0.50; (window-body-width) returns the wrong value with display-line-numbers-mode on To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 37020-done Cc: 37020-done@debbugs.gnu.org, =?UTF-8?Q?Lukas_F=C3=BCrmetz?= 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: -0.5 (/) Eli Zaretskii writes: > tags 37020 notabug > thanks > >> From: Lukas F=C3=BCrmetz >> 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. In addition to the tag notabug, I'm now also closing this bug report. Thanks, Stefan Kangas From unknown Sun Jun 22 20:55:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Sep 2019 11:24:06 +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