From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof Newsgroups: gmane.emacs.bugs Subject: bug#14636: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer Date: Sun, 16 Jun 2013 17:44:07 +0100 Message-ID: References: <83ip1et3ni.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf3074b5f642e80c04df483028 X-Trace: ger.gmane.org 1371401113 23003 80.91.229.3 (16 Jun 2013 16:45:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Jun 2013 16:45:13 +0000 (UTC) Cc: 14636-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 18:45:12 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UoG4l-0000dp-Dm for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2013 18:45:11 +0200 Original-Received: from localhost ([::1]:36948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoG4k-0007MY-U5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2013 12:45:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoG4f-0007JY-P4 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 12:45:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoG4d-0005tY-2G for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 12:45:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoG4c-0005sk-Us for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 12:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UoG4b-0007G0-SQ for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 12:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: E Sabof Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2013 16:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14636 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14636-done@debbugs.gnu.org id=D14636.137140105527816 (code D ref 14636); Sun, 16 Jun 2013 16:45:01 +0000 Original-Received: (at 14636-done) by debbugs.gnu.org; 16 Jun 2013 16:44:15 +0000 Original-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 Original-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 Original-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== X-Received: by 10.224.72.203 with SMTP id n11mr12791083qaj.13.1371401047171; Sun, 16 Jun 2013 09:44:07 -0700 (PDT) Original-Received: by 10.49.96.226 with HTTP; Sun, 16 Jun 2013 09:44:07 -0700 (PDT) In-Reply-To: <83ip1et3ni.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75220 Archived-At: --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--