From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans-Peter Deifel Newsgroups: gmane.emacs.help Subject: Re: window-width, the terminal and linum-mode Date: Thu, 27 Dec 2012 17:22:37 +0100 Organization: A noiseless patient Spider Message-ID: <87623njwhe.fsf@hpdeifel.de> References: <871ueezaiq.fsf@hpdeifel.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356625512 6007 80.91.229.3 (27 Dec 2012 16:25:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2012 16:25:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 27 17:25:28 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ToGGt-00079V-F2 for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Dec 2012 17:25:27 +0100 Original-Received: from localhost ([::1]:44948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToGGe-00086x-VH for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Dec 2012 11:25:12 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Injection-Info: mx04.eternal-september.org; posting-host="dccdecb40e7852f85031f73af0afe9fa"; logging-data="785"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8PqeLtx31g9s6lw7tUv6539hEhrrSVxc=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:H9Zvmm4bgvLPRPE3JJCsaBvfv0k= sha1:5pzzN7cG5/rUGTQdmL6R/KupcVw= Original-Xref: usenet.stanford.edu gnu.emacs.help:196013 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88327 Archived-At: 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