[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: window-width, the terminal and linum-mode
From: |
Hans-Peter Deifel |
Subject: |
Re: window-width, the terminal and linum-mode |
Date: |
Thu, 27 Dec 2012 17:22:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
On Di, Dez 25 2012, Eli Zaretskii wrote:
>> I was looking in "(elisp) Window Sizes" for a function to give me the
>> width of the text area of a window and found `window-body-width'.
>> However, this function gives me different results in terminal and GUI
>> modes, when linum-mode is enabled.
>>
>> In terminal emacs, `window-body-width' includes the width of the line
>> number, while in gui emacs it doesn't. In both cases, the line number
>> width is returned correctly by `(window-margins)'.
>
> It's a bug in window-body-width, now fixed in the development sources,
> thanks to your report. It should exclude the display margins from the
> width calculation on TTYs as well.
Very cool. Thank you very much.
HP