GNU bug report logs - #14636
24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer

Previous Next

Package: emacs;

Reported by: E Sabof <esabof <at> gmail.com>

Date: Sun, 16 Jun 2013 15:26:01 UTC

Severity: normal

Found in version 24.3.50.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: E Sabof <esabof <at> gmail.com>
Subject: bug#14636: closed (Re: 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 16:37:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#14636: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 14636 <at> debbugs.gnu.org.

-- 
14636: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14636
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: E Sabof <esabof <at> gmail.com>
Cc: 14636-done <at> debbugs.gnu.org
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
Date: Sun, 16 Jun 2013 19:35:13 +0300
> Date: Sun, 16 Jun 2013 16:24:43 +0100
> From: E Sabof <esabof <at> gmail.com>
> 
> 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.

[Message part 3 (message/rfc822, inline)]
From: E Sabof <esabof <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 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 16:24:43 +0100
[Message part 4 (text/plain, inline)]
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))
[Message part 5 (text/html, inline)]

This bug report was last modified 12 years and 38 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.