From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 11:25:05 2013 Received: (at submit) by debbugs.gnu.org; 16 Jun 2013 15:25:06 +0000 Received: from localhost ([127.0.0.1]:48536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoEpE-0004U3-WB for submit@debbugs.gnu.org; Sun, 16 Jun 2013 11:25:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60981) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoEpC-0004TU-Vh for submit@debbugs.gnu.org; Sun, 16 Jun 2013 11:25:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoEp5-0004bx-Ll for submit@debbugs.gnu.org; Sun, 16 Jun 2013 11:24:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoEp5-0004bt-HW for submit@debbugs.gnu.org; Sun, 16 Jun 2013 11:24:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoEoz-0002qV-AE for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 11:24:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoEot-0004ad-SX for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 11:24:49 -0400 Received: from mail-qa0-x22a.google.com ([2607:f8b0:400d:c00::22a]:39863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoEot-0004aT-Om for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 11:24:43 -0400 Received: by mail-qa0-f42.google.com with SMTP id hu16so1012130qab.15 for ; Sun, 16 Jun 2013 08:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=P3YUQeYdluMwVBz5R/N4lC3iqsxONwGm3yQPZWFxyfU=; b=XNfep7sDaiu5E04dyMtJn6ACTs6FBeJ5orWFqwM8An376j7dHqW7tqTNaC8w6gW4pi D7z0b+hxFWke56eTorUo1ok+/qFH+3ASzYMgJEV+IrvZW/CUVrynkctzvd6J9RU1MYSS goiZ4q/ceOFY+x/XcGY6+QYar/emXNZ00beeE6q9NJfyKGyuuH+rEBkQcs/WISd+Msjd bmPNx+7oifBtz1IboncYT0pQvjWfn8J+n6KKm7CP4o/HhrHh8+R89lm0aH91fTLktjys AfcfPP4hsXzmAH2Cjhj0+JJi4m96oaUYn7pkrKX7/ar9GP2puFf1I33x3FKMJOy4P/cu eu4Q== MIME-Version: 1.0 X-Received: by 10.224.34.198 with SMTP id m6mr12565107qad.39.1371396283355; Sun, 16 Jun 2013 08:24:43 -0700 (PDT) Received: by 10.49.96.226 with HTTP; Sun, 16 Jun 2013 08:24:43 -0700 (PDT) Date: Sun, 16 Jun 2013 16:24:43 +0100 Message-ID: Subject: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer From: E Sabof To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=20cf3074b7b050d5b404df47146f X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit 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: -4.3 (----) --20cf3074b7b050d5b404df47146f Content-Type: text/plain; charset=ISO-8859-1 In emacs -Q (window-line-height) C-o C-x C-e Results in nil. Interestingly enough, I can specify line numbers (or not) and it will work, but only as long as (= (point) (point-max)) --20cf3074b7b050d5b404df47146f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
In emacs -Q

(window-line-height)<= div>C-o
C-x C-e

Results in nil.

Interestingly enough, I can specify line numbers (or not) = and it will work,=A0
but only as long as (=3D (point) (point-max))
--20cf3074b7b050d5b404df47146f-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 12:36:02 2013 Received: (at 14636-done) by debbugs.gnu.org; 16 Jun 2013 16:36:02 +0000 Received: from localhost ([127.0.0.1]:48653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoFvt-0006w6-Nr for submit@debbugs.gnu.org; Sun, 16 Jun 2013 12:36:02 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:43680) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoFvq-0006vQ-NT for 14636-done@debbugs.gnu.org; Sun, 16 Jun 2013 12:35:59 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MOH00I00VABRQ00@a-mtaout20.012.net.il> for 14636-done@debbugs.gnu.org; Sun, 16 Jun 2013 19:35:13 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOH00IOJVEOS000@a-mtaout20.012.net.il>; Sun, 16 Jun 2013 19:35:13 +0300 (IDT) Date: Sun, 16 Jun 2013 19:35:13 +0300 From: Eli Zaretskii Subject: Re: bug#14636: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer In-reply-to: X-012-Sender: halo1@inter.net.il To: E Sabof Message-id: <83ip1et3ni.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 14636-done Cc: 14636-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > Date: Sun, 16 Jun 2013 16:24:43 +0100 > From: E Sabof > > In emacs -Q > > (window-line-height) > C-o > C-x C-e > > Results in nil. That's a documented limitation. From the doc string: Return nil if window display is not up-to-date. In that case, use `pos-visible-in-window-p' to obtain the information. > Interestingly enough, I can specify line numbers (or not) and it will work, > but only as long as (= (point) (point-max)) You cannot easily predict when the window display will be up-to-date by the time this function runs. Closing as not-a-bug. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 12:44:15 2013 Received: (at 14636-done) by debbugs.gnu.org; 16 Jun 2013 16:44:15 +0000 Received: from localhost ([127.0.0.1]:48671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoG3q-0007EZ-KK for submit@debbugs.gnu.org; Sun, 16 Jun 2013 12:44:14 -0400 Received: from mail-qa0-f48.google.com ([209.85.216.48]:59485) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoG3o-0007EK-OF for 14636-done@debbugs.gnu.org; Sun, 16 Jun 2013 12:44:13 -0400 Received: by mail-qa0-f48.google.com with SMTP id cm16so1000937qab.7 for <14636-done@debbugs.gnu.org>; Sun, 16 Jun 2013 09:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XoJjlcysfkNAOcxUAEivvWT4Nzv0d4CbR8sz8y1GlHo=; b=KaZZvgAZDEYz3KGpWnmcaMfNa4iMM8d9FwRyTZt4XqUAEJ638xOlyK1BAAmykx/PpU X6IZDAB/Amb/RN8wLifmi1kaskloWJc+0iVSxcuxblJCsEqwEKF+AyI6E6paO1p+/Gpq ItCwO5Q8OoawI3blO4kwXDzGWG/7AbzcLwDrBDZfV3ri+2HH8QFRs3XmqQ0mxbwM3+Rk 77BL0x4QJqJ3qz/KQ39TwG3fxwekvTZe5wyEdVf2ZKOk0vkIxDInMw9Jh6+Obf5JrEQ1 ZBlHHIVPIKa5PT5m4wuxELC77Qu5v0jR2wy0imkfq5wM5r3S/eLpfirm9Rs9a+fJeW/n kEUw== MIME-Version: 1.0 X-Received: by 10.224.72.203 with SMTP id n11mr12791083qaj.13.1371401047171; Sun, 16 Jun 2013 09:44:07 -0700 (PDT) Received: by 10.49.96.226 with HTTP; Sun, 16 Jun 2013 09:44:07 -0700 (PDT) In-Reply-To: <83ip1et3ni.fsf@gnu.org> References: <83ip1et3ni.fsf@gnu.org> Date: Sun, 16 Jun 2013 17:44:07 +0100 Message-ID: Subject: Re: bug#14636: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer From: E Sabof To: Eli Zaretskii Content-Type: multipart/alternative; boundary=20cf3074b5f642e80c04df483028 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14636-done Cc: 14636-done@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.7 (/) --20cf3074b5f642e80c04df483028 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jun 16, 2013 at 5:35 PM, Eli Zaretskii wrote: > > Date: Sun, 16 Jun 2013 16:24:43 +0100 > > From: E Sabof > > > > In emacs -Q > > > > (window-line-height) > > C-o > > C-x C-e > > > > Results in nil. > > That's a documented limitation. From the doc string: > > Return nil if window display is not up-to-date. In that case, use > `pos-visible-in-window-p' to obtain the information. > > > Interestingly enough, I can specify line numbers (or not) and it will > work, > > but only as long as (= (point) (point-max)) > > You cannot easily predict when the window display will be up-to-date > by the time this function runs. > > Closing as not-a-bug. > I have also tried (progn (pos-visible-in-window-p) (window-line-height)) but it didn't seem to make any difference. --20cf3074b5f642e80c04df483028 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Sun, Jun 16, 2013 at 5:35 PM, Eli Zaretskii <eliz@gnu.org= > wrote:
> Date: Sun, 16 Jun 2013 16:24:43 +0100
> From: E Sabof <esabof@gmail.com= >
>
> In emacs -Q
>
> (window-line-height)
> C-o
> C-x C-e
>
> Results in nil.

That's a documented limitation. =A0From the doc string:

=A0 Return nil if window display is not up-to-date. =A0In that case, use =A0 `pos-visible-in-window-p' to obtain the information.

> Interestingly enough, I can specify line numbers (or not) and it will = work,
> but only as long as (=3D (point) (point-max))

You cannot easily predict when the window display will be up-to-date
by the time this function runs.

Closing as not-a-bug.

I have also tried

(progn (pos-visible-in-window-p)
=A0 =A0 =A0 =A0(window-line-height))

but it didn't seem to make any differenc= e.
--20cf3074b5f642e80c04df483028-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 12:53:54 2013 Received: (at 14636) by debbugs.gnu.org; 16 Jun 2013 16:53:54 +0000 Received: from localhost ([127.0.0.1]:48686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoGDA-0007Vn-RU for submit@debbugs.gnu.org; Sun, 16 Jun 2013 12:53:53 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:48425) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoGD6-0007VR-V9 for 14636@debbugs.gnu.org; Sun, 16 Jun 2013 12:53:50 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MOH00I00W1LV200@a-mtaout20.012.net.il> for 14636@debbugs.gnu.org; Sun, 16 Jun 2013 19:53:42 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOH00I7FW9IXE00@a-mtaout20.012.net.il>; Sun, 16 Jun 2013 19:53:42 +0300 (IDT) Date: Sun, 16 Jun 2013 19:53:42 +0300 From: Eli Zaretskii Subject: Re: bug#14636: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer In-reply-to: X-012-Sender: halo1@inter.net.il To: E Sabof Message-id: <83ehc2t2sp.fsf@gnu.org> References: <83ip1et3ni.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 14636 Cc: 14636@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > Date: Sun, 16 Jun 2013 17:44:07 +0100 > From: E Sabof > Cc: 14636-done@debbugs.gnu.org > > > That's a documented limitation. From the doc string: > > > > Return nil if window display is not up-to-date. In that case, use > > `pos-visible-in-window-p' to obtain the information. > > > > > Interestingly enough, I can specify line numbers (or not) and it will > > work, > > > but only as long as (= (point) (point-max)) > > > > You cannot easily predict when the window display will be up-to-date > > by the time this function runs. > > > > Closing as not-a-bug. > > > > I have also tried > > (progn (pos-visible-in-window-p) > (window-line-height)) > > but it didn't seem to make any difference. Why should it? Calling pos-visible-in-window-p does not guarantee that the window will be up-to-date, it just gives you the same information without requiring that the display be up-to-date. Its disadvantage is that it is slower. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 13:19:15 2013 Received: (at 14636) by debbugs.gnu.org; 16 Jun 2013 17:19:15 +0000 Received: from localhost ([127.0.0.1]:48740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoGbi-0008FE-LB for submit@debbugs.gnu.org; Sun, 16 Jun 2013 13:19:15 -0400 Received: from mail-qa0-f41.google.com ([209.85.216.41]:57137) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoGbf-0008Ev-M7 for 14636@debbugs.gnu.org; Sun, 16 Jun 2013 13:19:12 -0400 Received: by mail-qa0-f41.google.com with SMTP id f14so1046161qak.0 for <14636@debbugs.gnu.org>; Sun, 16 Jun 2013 10:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EqkQfOGGzmA2r4RHq+qcaeXu4a8pWm/aqirqOKeezto=; b=InZMOSj/oVFMMfeXQ16e9ePpp6TmzvPuyXGWoWJOqS5N3qN3wk+woxya6GuYoht3dC YwR7822l9nCsovfAVRJ6KfR3WhRGElkNIG2CUPNDa8qh5ZOHaVe0zc1S55gNB9VNX+Kl 6oRMrAsapidF2/AImmDTmcLdMolDBhK2Fk7jYcCsWAw9VgpjRqo7UyqrHWcR5R2y8jMr z2WUHlJPXOJ7eNtjm0zJ2YUPL3dAr4v6xYj6gNSRCCYYUqJCZdxUqZ3OQLmPxTM1psm+ GVOPNhaPny3YLhf1pWlrXLHI2/MhfFGsNMJrCgsteuxDRA9sY0p3xKEQwUeIHumx5bt5 cOjQ== MIME-Version: 1.0 X-Received: by 10.229.165.18 with SMTP id g18mr4423758qcy.84.1371403146099; Sun, 16 Jun 2013 10:19:06 -0700 (PDT) Received: by 10.49.96.226 with HTTP; Sun, 16 Jun 2013 10:19:06 -0700 (PDT) In-Reply-To: <83ehc2t2sp.fsf@gnu.org> References: <83ip1et3ni.fsf@gnu.org> <83ehc2t2sp.fsf@gnu.org> Date: Sun, 16 Jun 2013 18:19:06 +0100 Message-ID: Subject: Re: bug#14636: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer From: E Sabof To: Eli Zaretskii Content-Type: multipart/alternative; boundary=bcaec55552c65e017504df48ada5 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14636 Cc: 14636@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.7 (/) --bcaec55552c65e017504df48ada5 Content-Type: text/plain; charset=ISO-8859-1 > I have also tried > > > > (progn (pos-visible-in-window-p) > > (window-line-height)) > > > > but it didn't seem to make any difference. > > Why should it? Calling pos-visible-in-window-p does not guarantee > that the window will be up-to-date, it just gives you the same > information without requiring that the display be up-to-date. Its > disadvantage is that it is slower. > You might be confusing posn-at-point (which returns the height of the character amoung other things), with pos-visible-in-window-p, which returns t or nil. In any case, the height of the character can be different from the height of the line, so they are not equivalent. So either a) the documentation is incomplete and misleading, or b) there is a bug in the implementation (which I think is more likely, given the arbitrary circumstances under which this function does and doesn't work). --bcaec55552c65e017504df48ada5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
=A0=A0> I have also = tried
>
> (progn (pos-visible-in-window-p)
> =A0 =A0 =A0 =A0(window-line-height))
>
> but it didn't seem to make any difference.

Why should it? =A0Calling pos-visible-in-window-p does not guarantee<= br> that the window will be up-to-date, it just gives you the same
information without requiring that the display be up-to-date. =A0Its
disadvantage is that it is slower.

You might be confus= ing posn-at-point (which returns the hei= ght of the character amoung other things), with=A0pos-visible-in-window-p, which returns t or nil.

In any case= , the height of the character can be different from the height of the line,= so they are not equivalent. So either a) the documentation is incomplete a= nd misleading, or b) there is a bug in the implementation (which I think is= more likely, given the arbitrary circumstances under which this function d= oes and doesn't work).
--bcaec55552c65e017504df48ada5-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 13:33:04 2013 Received: (at 14636) by debbugs.gnu.org; 16 Jun 2013 17:33:04 +0000 Received: from localhost ([127.0.0.1]:48752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoGp6-0000Cj-E4 for submit@debbugs.gnu.org; Sun, 16 Jun 2013 13:33:04 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:65380) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoGp4-0000C9-2q for 14636@debbugs.gnu.org; Sun, 16 Jun 2013 13:33:03 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MOH00900XUZ6700@a-mtaout22.012.net.il> for 14636@debbugs.gnu.org; Sun, 16 Jun 2013 20:32:55 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MOH008IWY2UOW90@a-mtaout22.012.net.il>; Sun, 16 Jun 2013 20:32:55 +0300 (IDT) Date: Sun, 16 Jun 2013 20:32:55 +0300 From: Eli Zaretskii Subject: Re: bug#14636: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer In-reply-to: X-012-Sender: halo1@inter.net.il To: E Sabof Message-id: <83d2rmt0zc.fsf@gnu.org> References: <83ip1et3ni.fsf@gnu.org> <83ehc2t2sp.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 14636 Cc: 14636@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii 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: 1.0 (+) > Date: Sun, 16 Jun 2013 18:19:06 +0100 > From: E Sabof > Cc: 14636@debbugs.gnu.org > > You might be confusing posn-at-point (which returns the height of the > character amoung other things), with pos-visible-in-window-p, which returns > t or nil. I'm not confusing them. And pos-visible-in-window-p can return more than just nil or t, see its doc string. > In any case, the height of the character can be different from the height > of the line, so they are not equivalent. They are not equivalent, in the sense that a single call to pos-visible-in-window-p will not do what window-line-height does. You need to call pos-visible-in-window-p twice, for the line you are interested in and the one after it, to get the same information. > So either a) the documentation is incomplete and misleading, or b) > there is a bug in the implementation (which I think is more likely, > given the arbitrary circumstances under which this function does and > doesn't work). There's no bug. It looks arbitrary to you because whether the window display is up-to-date when window-line-height runs is impossible to predict. Take a look at the source of window-line-height, and you will see it. From unknown Tue Aug 19 14:23:06 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, 15 Jul 2013 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