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

Previous Next

Package: emacs;

Reported by: Lukas Fürmetz <fuermetz <at> mailbox.org>

Date: Tue, 13 Aug 2019 20:22:02 UTC

Severity: normal

Tags: notabug

Found in version 27.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37020 in the body.
You can then email your comments to 37020 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37020; Package emacs. (Tue, 13 Aug 2019 20:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lukas Fürmetz <fuermetz <at> mailbox.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 13 Aug 2019 20:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lukas Fürmetz <fuermetz <at> mailbox.org>
To: bug-gnu-emacs <at> 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
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#37020; Package emacs. (Wed, 14 Aug 2019 02:35:02 GMT) Full text and rfc822 format available.

Message #8 received at 37020 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lukas Fürmetz <fuermetz <at> mailbox.org>
Cc: 37020 <at> debbugs.gnu.org
Subject: Re: bug#37020: 27.0.50;
 (window-body-width) returns the wrong value with
 display-line-numbers-mode on
Date: Wed, 14 Aug 2019 05:34:23 +0300
tags 37020 notabug
thanks

> From: Lukas Fürmetz <fuermetz <at> mailbox.org>
> 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.




Added tag(s) notabug. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 14 Aug 2019 02:35:03 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Fri, 23 Aug 2019 06:56:02 GMT) Full text and rfc822 format available.

Notification sent to Lukas Fürmetz <fuermetz <at> mailbox.org>:
bug acknowledged by developer. (Fri, 23 Aug 2019 06:56:02 GMT) Full text and rfc822 format available.

Message #15 received at 37020-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 37020-done <at> debbugs.gnu.org,
 Lukas Fürmetz <fuermetz <at> mailbox.org>
Subject: bug#37020: 27.0.50; (window-body-width) returns the wrong value with
 display-line-numbers-mode on
Date: Fri, 23 Aug 2019 08:54:47 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> tags 37020 notabug
> thanks
>
>> From: Lukas Fürmetz <fuermetz <at> mailbox.org>
>> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 20 Sep 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 192 days ago.

Previous Next


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