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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Kangas <stefan <at> marxist.se>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#37020: closed (27.0.50; (window-body-width) returns the wrong
 value with display-line-numbers-mode on)
Date: Fri, 23 Aug 2019 06:56:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 23 Aug 2019 08:54:47 +0200
with message-id <CADwFkmn1Z-4s7iihfjNABVMu_YiUAb_jE3f4rEE9AJQxKR-ZpA <at> mail.gmail.com>
and subject line bug#37020: 27.0.50; (window-body-width) returns the wrong value with display-line-numbers-mode on
has caused the debbugs.gnu.org bug report #37020,
regarding 27.0.50; (window-body-width) returns the wrong value with display-line-numbers-mode on
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
37020: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37020
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.


[Message part 3 (message/rfc822, inline)]
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


This bug report was last modified 5 years and 277 days ago.

Previous Next


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