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

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

bug#6763: 24.0.50.1; Doc string of `window-line-height'


From: IRIE Shinsuke
Subject: bug#6763: 24.0.50.1; Doc string of `window-line-height'
Date: Fri, 30 Jul 2010 22:55:17 +0900
User-agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Goj$(D+W(B) APEL/10.7 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

Hi,

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.

However, using `pos-visible-in-window-p' seems ineffectual.
In fact, the following expression often returns nil:

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

So I use `redisplay' instead of `pos-visible-in-window-p' as:

  (or (window-line-height)
      (and (redisplay t)
           (window-line-height)))

and it correctly works.

Please correct the doc string.

IRIE Shinsuke





reply via email to

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