help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: window-width, the terminal and linum-mode


From: Eli Zaretskii
Subject: Re: window-width, the terminal and linum-mode
Date: Tue, 25 Dec 2012 19:39:15 +0200

> From: Hans-Peter Deifel <hpdeifel@gmx.de>
> Date: Tue, 25 Dec 2012 11:33:33 +0100
> 
> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]