From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3602: 23.0.94; window-line-height problems Date: Wed, 17 Jun 2009 22:39:55 -0700 Message-ID: <1AF1CC9F5E1C4E168A7584390EEDC74D@us.oracle.com> Reply-To: Drew Adams , 3602@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245304663 29469 80.91.229.12 (18 Jun 2009 05:57:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2009 05:57:43 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 18 07:57:40 2009 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.50) id 1MHAd0-0002H5-Fx for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2009 07:57:38 +0200 Original-Received: from localhost ([127.0.0.1]:51555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHAcz-0004eh-RL for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jun 2009 01:57:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHAcs-0004bZ-00 for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 01:57:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHAcm-0004UL-LH for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 01:57:28 -0400 Original-Received: from [199.232.76.173] (port=51876 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHAcm-0004U9-9M for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 01:57:24 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54201) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHAcl-0005xt-Ix for bug-gnu-emacs@gnu.org; Thu, 18 Jun 2009 01:57:23 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5I5vL7W031814; Wed, 17 Jun 2009 22:57:21 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n5I5j4Oh029645; Wed, 17 Jun 2009 22:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Jun 2009 05:45:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3602 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124530359228799 (code B ref -1); Thu, 18 Jun 2009 05:45:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 18 Jun 2009 05:39:52 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5I5dl43028792 for ; Wed, 17 Jun 2009 22:39:48 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:38586 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MHALj-0001SG-9m for emacs-pretest-bug@gnu.org; Thu, 18 Jun 2009 01:39:47 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MHALf-0003H5-EK for emacs-pretest-bug@gnu.org; Thu, 18 Jun 2009 01:39:44 -0400 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:21287 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHALe-0003Ge-UM for emacs-pretest-bug@gnu.org; Thu, 18 Jun 2009 01:39:43 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n5I5ehuT024376 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Jun 2009 05:40:45 GMT Original-Received: from abhmt006.oracle.com (abhmt006.oracle.com [141.146.116.15]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n5I5evJg010142 for ; Thu, 18 Jun 2009 05:40:58 GMT Original-Received: from dradamslap1 (/141.144.73.196) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 17 Jun 2009 22:39:37 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acnv1zXzmKLKdWSARzCEmvSgAtKMAA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt006.oracle.com [141.146.116.15] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010202.4A39D31A.002E:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 18 Jun 2009 01:57:28 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:28804 gmane.emacs.pretest.bugs:24656 Archived-At: The behavior of this function seems broken, at least for LINE = mode-line or header-line. And the doc is not good. Doc string of `window-line-height' says this: "Return height of current line if LINE is omitted or nil. Return height of header or mode line if LINE is `header-line' and `mode-line'." That seems to say that if you have a header line, then you can get its height in pixels this way (window-line-height 'header-line), and similarly for mode-line. But that doesn't seem to work. emacs -Q (setq Info-use-header-line t) C-h i M-: (window-line-height 'header-line) returns nil M-: (window-line-height 'mode-line) returns nil This part of the doc string is incomprehensible to me: "Return nil if window display is not up-to-date." What does that mean? And then it says "In that case, use `pos-visible-in-window-p' to obtain the information." How to do that? What args to use with `pos-visible-in-window-p', to find out the `window-line-height' for the header-line, for instance? This paragraph is quite unclear to me. Also, the function is called *-height, and the first part of the doc string says that it returns the "height in pixels". But later in the doc string we learn that the value (returned, presumably) is a list (HEIGHT VPOS YPOS OFFBOT). That's contradictory. If the height in pixels is returned, that is presumably an integer, not a list. The Elisp manual repeats all of the confusion and other defects of the doc string. In fact, it is almost verbatim the same text. In GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600) of 2009-05-24 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)'