From unknown Tue Jun 24 08:48:42 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#3602 <3602@debbugs.gnu.org> To: bug#3602 <3602@debbugs.gnu.org> Subject: Status: 23.0.94; window-line-height problems Reply-To: bug#3602 <3602@debbugs.gnu.org> Date: Tue, 24 Jun 2025 15:48:42 +0000 retitle 3602 23.0.94; window-line-height problems reassign 3602 emacs submitter 3602 "Drew Adams" severity 3602 minor tag 3602 notabug confirmed thanks From drew.adams@oracle.com Wed Jun 17 22:39:51 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Jun 2009 05:39:52 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 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 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 Received: from dradamslap1 (/141.144.73.196) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 17 Jun 2009 22:39:37 -0700 From: "Drew Adams" To: Subject: 23.0.94; window-line-height problems Date: Wed, 17 Jun 2009 22:39:55 -0700 Message-ID: <1AF1CC9F5E1C4E168A7584390EEDC74D@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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) 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)' From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 09 22:35:08 2014 Received: (at 3602) by debbugs.gnu.org; 10 Feb 2014 03:35:08 +0000 Received: from localhost ([127.0.0.1]:33172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCheE-0006ff-Uv for submit@debbugs.gnu.org; Sun, 09 Feb 2014 22:35:07 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:56204) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCheC-0006fW-VK for 3602@debbugs.gnu.org; Sun, 09 Feb 2014 22:35:05 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WChdx-0005AX-UQ; Mon, 10 Feb 2014 04:34:50 +0100 From: Lars Ingebrigtsen To: "Drew Adams" Subject: Re: bug#3602: 23.0.94; window-line-height problems References: <1AF1CC9F5E1C4E168A7584390EEDC74D@us.oracle.com> Date: Sun, 09 Feb 2014 19:33:37 -0800 In-Reply-To: <1AF1CC9F5E1C4E168A7584390EEDC74D@us.oracle.com> (Drew Adams's message of "Wed, 17 Jun 2009 22:39:55 -0700") Message-ID: <8761onhca6.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WChdx-0005AX-UQ X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392608090.92222@4Zcl2stPJW7dDaYEr6YxRQ X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 3602 Cc: 3602@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) "Drew Adams" writes: > 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. (window-line-height 'mode-line) => nil So I can confirm this bug. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 09 22:35:18 2014 Received: (at control) by debbugs.gnu.org; 10 Feb 2014 03:35:18 +0000 Received: from localhost ([127.0.0.1]:33175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCheQ-0006g3-4q for submit@debbugs.gnu.org; Sun, 09 Feb 2014 22:35:18 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:56210) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCheO-0006fu-AX for control@debbugs.gnu.org; Sun, 09 Feb 2014 22:35:16 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WChe7-0005Ai-JO for control@debbugs.gnu.org; Mon, 10 Feb 2014 04:35:00 +0100 Date: Sun, 09 Feb 2014 19:33:47 -0800 Message-Id: <874n47hc9w.fsf@building.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #3602 X-MailScanner-ID: 1WChe7-0005Ai-JO X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392608100.15926@31lvLhv9IS+unuc6pwM8lQ X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 3602 confirmed From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 10 03:15:59 2014 Received: (at 3602) by debbugs.gnu.org; 10 Feb 2014 08:15:59 +0000 Received: from localhost ([127.0.0.1]:33982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm21-0000Bu-OW for submit@debbugs.gnu.org; Mon, 10 Feb 2014 03:15:58 -0500 Received: from mout.gmx.net ([212.227.15.18]:56893) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm0y-000872-5W for 3602@debbugs.gnu.org; Mon, 10 Feb 2014 03:14:52 -0500 Received: from [62.47.34.220] ([62.47.34.220]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MBrCt-1W5w7A1OBb-00AixH for <3602@debbugs.gnu.org>; Mon, 10 Feb 2014 09:14:51 +0100 Message-ID: <52F88A73.4060602@gmx.at> Date: Mon, 10 Feb 2014 09:14:43 +0100 From: martin rudalics MIME-Version: 1.0 To: Lars Ingebrigtsen Subject: Re: bug#3602: 23.0.94; window-line-height problems References: <1AF1CC9F5E1C4E168A7584390EEDC74D@us.oracle.com> <8761onhca6.fsf@building.gnus.org> In-Reply-To: <8761onhca6.fsf@building.gnus.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:nqubOfK6bC3M+JIJKaZGINoZSBmBUXv4EfDQr9nmnUkubMrpIkX Mopy2L2CLUg5j6rdrgW5ag5Az2+vlwCqQAXsz4V49qGB5Oqmiaq9UKsbc3fkS5NtIe6WC6T r+qeyTkUW/PluskiBUev7TSgUrY4/lqnL7/SQgK/Vw5irQc/H6ISw7e3+CXSxOZwpybEJnS b0a+0uFdy2K5AKk4wpUFw== X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 3602 Cc: 3602@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) >> 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. > > (window-line-height 'mode-line) > => nil > > So I can confirm this bug. The doc-string of `window-line-height' says ... Return nil if window display is not up-to-date. In that case, use `pos-visible-in-window-p' to obtain the information. ... and the Elisp manual says ... If the display is not up to date, `window-line-height' returns `nil'. In that case, `pos-visible-in-window-p' may be used to obtain related information. ... so I wonder how you can "confirm this bug" ;-) martin From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 10 03:20:29 2014 Received: (at 3602) by debbugs.gnu.org; 10 Feb 2014 08:20:29 +0000 Received: from localhost ([127.0.0.1]:33989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm6O-0000z9-81 for submit@debbugs.gnu.org; Mon, 10 Feb 2014 03:20:28 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:57066) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm6E-0000yt-Ii for 3602@debbugs.gnu.org; Mon, 10 Feb 2014 03:20:19 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WCm5w-00023Y-UM; Mon, 10 Feb 2014 09:20:01 +0100 From: Lars Ingebrigtsen To: martin rudalics Subject: Re: bug#3602: 23.0.94; window-line-height problems References: <1AF1CC9F5E1C4E168A7584390EEDC74D@us.oracle.com> <8761onhca6.fsf@building.gnus.org> <52F88A73.4060602@gmx.at> Date: Mon, 10 Feb 2014 00:18:47 -0800 In-Reply-To: <52F88A73.4060602@gmx.at> (martin rudalics's message of "Mon, 10 Feb 2014 09:14:43 +0100") Message-ID: <87mwhzxtw8.fsf@building.gnus.org> User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1WCm5w-00023Y-UM X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392625201.84023@i64d1DId9J961jviTS537A X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 3602 Cc: 3602@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) martin rudalics writes: >> (window-line-height 'mode-line) >> => nil >> >> So I can confirm this bug. > > The doc-string of `window-line-height' says ... > > Return nil if window display is not up-to-date. In that case, use > `pos-visible-in-window-p' to obtain the information. > > ... and the Elisp manual says ... > > If the display is not up to date, `window-line-height' returns > `nil'. In that case, `pos-visible-in-window-p' may be used to > obtain related information. > > ... so I wonder how you can "confirm this bug" ;-) Is the window display not up to date when I hit `C-x C-e' after the form up there? Apparently not: (progn (sit-for 1) (window-line-height 'mode-line)) => (22 0 748 0) So this doesn't seem to be a bug. Closing. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 10 03:20:43 2014 Received: (at control) by debbugs.gnu.org; 10 Feb 2014 08:20:43 +0000 Received: from localhost ([127.0.0.1]:33993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm6c-0000zh-9z for submit@debbugs.gnu.org; Mon, 10 Feb 2014 03:20:42 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:57075) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm6P-0000zJ-Sn for control@debbugs.gnu.org; Mon, 10 Feb 2014 03:20:30 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WCm69-00024Z-Qa for control@debbugs.gnu.org; Mon, 10 Feb 2014 09:20:14 +0100 Date: Mon, 10 Feb 2014 00:19:00 -0800 Message-Id: <87lhxjxtvv.fsf@building.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #3602 X-MailScanner-ID: 1WCm69-00024Z-Qa X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392625215.81573@jddGgfB604NBTatsfDP9PQ X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) close 3602 From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 10 03:20:47 2014 Received: (at control) by debbugs.gnu.org; 10 Feb 2014 08:20:47 +0000 Received: from localhost ([127.0.0.1]:33995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm6g-0000zt-HT for submit@debbugs.gnu.org; Mon, 10 Feb 2014 03:20:46 -0500 Received: from hermes.netfonds.no ([80.91.224.195]:57085) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCm6Z-0000zZ-AM for control@debbugs.gnu.org; Mon, 10 Feb 2014 03:20:41 -0500 Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WCm6F-00024p-QA for control@debbugs.gnu.org; Mon, 10 Feb 2014 09:20:20 +0100 Date: Mon, 10 Feb 2014 00:19:06 -0800 Message-Id: <87k3d3xtvp.fsf@building.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #3602 X-MailScanner-ID: 1WCm6F-00024p-QA X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1392625222.16818@CDcbeZQKssF6eMF+3peFVw X-Spam-Status: No X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 3602 notabug close 3602 From unknown Tue Jun 24 08:48:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 10 Mar 2014 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator