emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#14636: closed (24.3.50.1; window-line-height doesn


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14636: closed (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:01 +0000

Your message dated Sun, 16 Jun 2013 19:35:13 +0300
with message-id <address@hidden>
and subject line Re: bug#14636: 24.3.50.1; window-line-height doesn't seem to 
work, unless the point is at the  end-of-buffer
has caused the debbugs.gnu.org bug report #14636,
regarding 24.3.50.1; window-line-height doesn't seem to work, unless the point 
is at the end-of-buffer
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14636: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14636
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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
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))

--- End Message ---
--- Begin Message --- 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 <address@hidden>
> 
> 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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]