* bug#37020: 27.0.50; (window-body-width) returns the wrong value with display-line-numbers-mode on
@ 2019-08-13 20:11 Lukas Fürmetz
2019-08-14 2:34 ` Eli Zaretskii
2019-08-23 6:54 ` Stefan Kangas
0 siblings, 2 replies; 3+ messages in thread
From: Lukas Fürmetz @ 2019-08-13 20:11 UTC (permalink / raw)
To: 37020
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#37020: 27.0.50; (window-body-width) returns the wrong value with display-line-numbers-mode on
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
1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2019-08-14 2:34 UTC (permalink / raw)
To: Lukas Fürmetz; +Cc: 37020
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#37020: 27.0.50; (window-body-width) returns the wrong value with display-line-numbers-mode on
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
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2019-08-23 6:54 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 37020-done, Lukas Fürmetz
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-23 6:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.