unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 37020-done@debbugs.gnu.org, "Lukas Fürmetz" <fuermetz@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	[thread overview]
Message-ID: <CADwFkmn1Z-4s7iihfjNABVMu_YiUAb_jE3f4rEE9AJQxKR-ZpA@mail.gmail.com> (raw)
In-Reply-To: <874l2kn7vr.fsf@mailbox.org>

Eli Zaretskii <eliz@gnu.org> writes:

> tags 37020 notabug
> thanks
>
>> From: Lukas Fürmetz <fuermetz@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





      parent reply	other threads:[~2019-08-23  6:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-13 20:11 bug#37020: 27.0.50; (window-body-width) returns the wrong value with display-line-numbers-mode on Lukas Fürmetz
2019-08-14  2:34 ` Eli Zaretskii
2019-08-23  6:54 ` Stefan Kangas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmn1Z-4s7iihfjNABVMu_YiUAb_jE3f4rEE9AJQxKR-ZpA@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=37020-done@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=fuermetz@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).