From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: window-body-height vs window-text-height Date: Tue, 28 Oct 2008 20:11:50 +0900 Message-ID: References: <4906E78C.7050207@gmx.at> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225193197 8304 80.91.229.12 (28 Oct 2008 11:26:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 11:26:37 +0000 (UTC) Cc: emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 28 12:27:36 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KumjN-0007pD-SL for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 12:27:26 +0100 Original-Received: from localhost ([127.0.0.1]:46233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KumiH-0006J7-2q for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 07:26:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KumUT-0005Js-I8 for emacs-devel@gnu.org; Tue, 28 Oct 2008 07:12:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KumUR-0005IW-Co for emacs-devel@gnu.org; Tue, 28 Oct 2008 07:12:00 -0400 Original-Received: from [199.232.76.173] (port=50913 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KumUR-0005ID-0M for emacs-devel@gnu.org; Tue, 28 Oct 2008 07:11:59 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:46732) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KumUO-000702-Q0; Tue, 28 Oct 2008 07:11:57 -0400 Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m9SBBpF4002317; Tue, 28 Oct 2008 20:11:51 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay21.aps.necel.com with ESMTP; Tue, 28 Oct 2008 20:11:51 +0900 Original-Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay21.aps.necel.com with ESMTP; Tue, 28 Oct 2008 20:11:51 +0900 Original-Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id BC85F19; Tue, 28 Oct 2008 20:11:50 +0900 (JST) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <4906E78C.7050207@gmx.at> (martin rudalics's message of "Tue, 28 Oct 2008 11:21:00 +0100") Original-Lines: 18 X-detected-operating-system: by monty-python.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:105065 Archived-At: martin rudalics writes: > Can someone tell me the difference between `window-body-height' and > `window-text-height'? It seems a bit confusing having two function do > more or less the same thing - but maybe the partial-height lines make > the difference. If there is a partial line at the bottom of the window, window-text-height rounds down, and window-body-height rounds up. If there are no fractional lines, both return the same value. [In both cases, the number of lines assumes the default face -- neither measures what's actually displayed.] -Miles -- "I distrust a research person who is always obviously busy on a task." --Robert Frosch, VP, GM Research