GNU bug report logs - #41537
26.3; window-body-width wrong return value when display-line-numbers-mode is on

Previous Next

Package: emacs;

Reported by: "Matsievskiy S.V." <seregaxvm.main <at> gmail.com>

Date: Tue, 26 May 2020 13:02:01 UTC

Severity: normal

Tags: notabug

Found in version 26.3

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

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 41537-done <at> debbugs.gnu.org, "Matsievskiy S.V." <seregaxvm.main <at> gmail.com>
Subject: Re: bug#41537: 26.3; window-body-width wrong return value when
 display-line-numbers-mode is on
Date: Wed, 12 Aug 2020 18:12:40 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> This is not wrong, since these functions measure the body without the
> line numbers.  This is not a bug, but the intended behavior.
>
>> This breaks some packages that rely on `window-body-width` and
>> `window-width` to align strings.
>
> Those packages should adapt to display-line-numbers-mode by taking
> into account the value returned by line-number-display-width.

I'm therefore closing this bug report.

Best regards,
Stefan Kangas




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

Previous Next


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