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 22:10:12 -0600 Message-ID: <4C26CF24.6080908@gmail.com> References: <87d3vdbpfv.fsf@gmx.de> <4C269A94.6070501@gmail.com> <834ogpcguk.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070207070500060406090204" X-Trace: dough.gmane.org 1277612965 5854 80.91.229.12 (27 Jun 2010 04:29:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Jun 2010 04:29:25 +0000 (UTC) Cc: 6518@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 27 06:29:23 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 1OSjUh-0000SE-8P for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Jun 2010 06:29:23 +0200 Original-Received: from localhost ([127.0.0.1]:43658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSjUf-0007EG-Oy for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Jun 2010 00:29:21 -0400 Original-Received: from [140.186.70.92] (port=51274 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OSjUZ-0007EB-Rq for bug-gnu-emacs@gnu.org; Sun, 27 Jun 2010 00:29:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OSjUY-0003Un-MI for bug-gnu-emacs@gnu.org; Sun, 27 Jun 2010 00:29:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50170) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSjUY-0003Uj-Jf for bug-gnu-emacs@gnu.org; Sun, 27 Jun 2010 00:29:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OSjCv-0008J2-Jc; Sun, 27 Jun 2010 00:11:01 -0400 X-Loop: help-debbugs@gnu.org 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 04:11:01 +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.127761182331914 (code B ref 6518); Sun, 27 Jun 2010 04:11:01 +0000 Original-Received: (at 6518) by debbugs.gnu.org; 27 Jun 2010 04:10:23 +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 1OSjCJ-0008Ih-1C for submit@debbugs.gnu.org; Sun, 27 Jun 2010 00:10:23 -0400 Original-Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OSjCH-0008Ic-5i for 6518@debbugs.gnu.org; Sun, 27 Jun 2010 00:10:21 -0400 Original-Received: by gyh4 with SMTP id 4so5675862gyh.3 for <6518@debbugs.gnu.org>; Sat, 26 Jun 2010 21:10:17 -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:cc:subject:references:in-reply-to :content-type; bh=yowSBte16xsoUrvzLO/IZMJkQsnNzsGX9cI+ghLfA7g=; b=j+8zXir1ZDZIqvMzPoxuPom+xd9Kwm/hSadhFf9Tfxz2qGsK1LXzWsTJJI/OnYnfLs RU+W8EI3ikYPbyE9uVOcL+Dt5jr74/HhF71GQIuDOX1fBsbDcyYF7XByDRP62hb8X4l/ IxRpEBsd9PWDuy1JffsGii+zAR0TrKDnVdKIA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=bgZKba+ryWdHYwTyNNhVXTMEoMRuL1GlJouPMczrSeoOtqpglhEFZY7lWtFSqKlbeM NHojihuSwyEAFnuepGhI7qRH8cn2pLQS2qxyHy7gbK2t7UCaV1kr8haLSs2dx7jcYHJz EKo3RTF513qa6dLoeoMDc5CzkU0RFqA+AUR8Q= Original-Received: by 10.100.243.18 with SMTP id q18mr3796160anh.166.1277611817672; Sat, 26 Jun 2010 21:10:17 -0700 (PDT) Original-Received: from [192.168.1.2] (184-96-96-143.hlrn.qwest.net [184.96.96.143]) by mx.google.com with ESMTPS id f6sm29661201anb.26.2010.06.26.21.10.15 (version=SSLv3 cipher=RC4-MD5); Sat, 26 Jun 2010 21:10:16 -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 In-Reply-To: <834ogpcguk.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 27 Jun 2010 00:11:01 -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:38041 Archived-At: This is a multi-part message in MIME format. --------------070207070500060406090204 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 6/26/2010 9:08 PM, Eli Zaretskii wrote: > Yes. I think this is by design, so maybe a doc fix is in order. Sounds good. I attached a doc fix patch proposal. Christoph --------------070207070500060406090204 Content-Type: text/plain; name="bugfix_6518.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bugfix_6518.txt" === modified file 'src/window.c' --- src/window.c 2010-06-12 11:30:48 +0000 +++ src/window.c 2010-06-27 03:49:01 +0000 @@ -517,7 +517,11 @@ doc: /* Return the number of lines in WINDOW. WINDOW defaults to the selected window. -The return value includes WINDOW's mode line and header line, if any. */) +The return value includes WINDOW's mode line and header line, if any. + +Note: The function does not take into account the value of `line-spacing' +when calculating the number of lines in WINDOW. +*/) (window) Lisp_Object window; { --------------070207070500060406090204--