unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Lukas Fürmetz" <fuermetz@mailbox.org>
Cc: 37020@debbugs.gnu.org
Subject: 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	[thread overview]
Message-ID: <83a7ccsceo.fsf@gnu.org> (raw)
In-Reply-To: <874l2kn7vr.fsf@mailbox.org> (message from Lukas Fürmetz on Tue, 13 Aug 2019 22:11:04 +0200)

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.





  reply	other threads:[~2019-08-14  2:34 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 [this message]
2019-08-23  6:54 ` Stefan Kangas

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=83a7ccsceo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=37020@debbugs.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).