From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Newsgroups: gmane.emacs.bugs Subject: bug#6518: 24.0.50; window-height returns wrong value Date: Sat, 26 Jun 2010 18:25:56 -0600 Message-ID: <4C269A94.6070501@gmail.com> References: <87d3vdbpfv.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277598566 10615 80.91.229.12 (27 Jun 2010 00:29:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Jun 2010 00:29:26 +0000 (UTC) To: 6518@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 27 02:29:25 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OSfkQ-00012k-5e for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Jun 2010 02:29:22 +0200 Original-Received: from localhost ([127.0.0.1]:54219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSfkP-0007RO-7h for geb-bug-gnu-emacs@m.gmane.org; Sat, 26 Jun 2010 20:29:21 -0400 Original-Received: from [140.186.70.92] (port=36554 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSfkI-0007QR-L1 for bug-gnu-emacs@gnu.org; Sat, 26 Jun 2010 20:29:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSfkH-0008Gf-JL for bug-gnu-emacs@gnu.org; Sat, 26 Jun 2010 20:29:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34962) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSfkH-0008Ga-Gn for bug-gnu-emacs@gnu.org; Sat, 26 Jun 2010 20:29:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OSfiA-0006uf-7c; Sat, 26 Jun 2010 20:27:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87d3vdbpfv.fsf@gmx.de> Resent-From: Christoph Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Jun 2010 00:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6518 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6518-submit@debbugs.gnu.org id=B6518.127759836726555 (code B ref 6518); Sun, 27 Jun 2010 00:27:02 +0000 Original-Received: (at 6518) by debbugs.gnu.org; 27 Jun 2010 00:26:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSfhG-0006uG-8c for submit@debbugs.gnu.org; Sat, 26 Jun 2010 20:26:06 -0400 Original-Received: from mail-gx0-f172.google.com ([209.85.161.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSfhD-0006tu-NH for 6518@debbugs.gnu.org; Sat, 26 Jun 2010 20:26:04 -0400 Original-Received: by gxk8 with SMTP id 8so2468401gxk.3 for <6518@debbugs.gnu.org>; Sat, 26 Jun 2010 17:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=1qthdzzSILIglwAT+G1vL58VmXRXdpyes0KaCoGpVmA=; b=qcLv/vON4BmmZsE4YIJuv0N6bT5fDrecKj3ezPZ7TvFGhJHHXe+cEFFrXhjqAEqHOL ub8wooifWqFuZ9/4rObrzkiT+b8i2OwDYnuqOledopwhSbLzzkfck0g/7Le67aqEtlI3 GYPDnQaoeafMMqDUKvoARyV2YT7St9qfBGVTU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=VEShSb51xkFrlhoyQzriYoBYmRYZ8a7KffdZ8fDlGjiix0U4sunLSlnmTXKb/oA++m ssliQmYzua5XL6cdrAJT8BvNeW9HBx+o49Otj+bkiY1goAcyEXhyui+JDsWSwGYmUBWt g5WnUetfikaSfngeqvJRfVWtLmhtvA3UEOA1I= Original-Received: by 10.100.201.16 with SMTP id y16mr243687anf.241.1277598359756; Sat, 26 Jun 2010 17:25:59 -0700 (PDT) Original-Received: from [192.168.1.4] (184-96-96-143.hlrn.qwest.net [184.96.96.143]) by mx.google.com with ESMTPS id y7sm28024336ana.4.2010.06.26.17.25.58 (version=SSLv3 cipher=RC4-MD5); Sat, 26 Jun 2010 17:25:58 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 26 Jun 2010 20:27:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38038 Archived-At: I verified this in GNU Emacs 23.2.1 (i386-mingw-nt6.1.7600) of 2010-05-08 on G41R2F1, on Windows 7. I decreased the window height so that only one line is visible in the buffer. (window-height) function indeed returns 2. But the documenation says: The return value includes WINDOW's mode line and header line, if any. Therefore, the window height of 2 is correct: 1 line in the buffer plus the mode line. If I decrease the window size further that even the mode line disappears, (window-height) reports the correct value of 1. The next test was setting lines-spacing to 5. In decreased the window height so only 1 line was visible, plus the mode line. I checked that going to the next line indeed results in a complete screen scroll. (window-height) now returns 3, which is not correct. Setting line-spacing back to 0 shows that 2 lines are visible, plus the mode line, result in a total of 3 lines. The (window-height) function doesn't seem to take the value of line-spacing into account. Christoph