From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: window-body-height vs window-text-height Date: Tue, 28 Oct 2008 10:12:41 -0400 Message-ID: References: <4906E78C.7050207@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225203646 13808 80.91.229.12 (28 Oct 2008 14:20:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2008 14:20:46 +0000 (UTC) Cc: martin rudalics , emacs-devel To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 28 15:21:47 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 1KupRr-0003jw-4F for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 15:21:31 +0100 Original-Received: from localhost ([127.0.0.1]:58860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KupQk-0002Eu-V0 for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2008 10:20:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KupQg-0002EQ-9W for emacs-devel@gnu.org; Tue, 28 Oct 2008 10:20:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KupQe-0002EC-Bp for emacs-devel@gnu.org; Tue, 28 Oct 2008 10:20:17 -0400 Original-Received: from [199.232.76.173] (port=57959 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KupQe-0002E9-6v for emacs-devel@gnu.org; Tue, 28 Oct 2008 10:20:16 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:62495) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KupQb-0005tm-7S; Tue, 28 Oct 2008 10:20:13 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhAFAMu6BklMCqyo/2dsb2JhbACBdsgRg0+BDQ X-IronPort-AV: E=Sophos;i="4.33,499,1220241600"; d="scan'208";a="28957237" Original-Received: from 76-10-172-168.dsl.teksavvy.com (HELO pastel.home) ([76.10.172.168]) by ironport2-out.teksavvy.com with ESMTP; 28 Oct 2008 10:12:41 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 7B4B28E6F; Tue, 28 Oct 2008 10:12:41 -0400 (EDT) In-Reply-To: (Miles Bader's message of "Tue, 28 Oct 2008 20:11:50 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:105072 Archived-At: >> 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.] Now I'm confused. IIUC window sizes can only be multiples of the default face size, so the number of lines (assuming the default face) can only be a whole number and can never include partial lines, no? Stefan