From xemacs-m  Mon Dec 16 14:34:30 1996
Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with SMTP id OAA26269 for <xemacs-beta@xemacs.org>; Mon, 16 Dec 1996 14:34:28 -0600 (CST)
Received: from proletcult.slip.ifi.uio.no (root@ppp13.larris.ifi.uio.no [129.240.68.113]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) 
	id <VAA12632@ifi.uio.no> ; Mon, 16 Dec 1996 21:34:26 +0100
Received: (from larsi@localhost) by proletcult.slip.ifi.uio.no (8.8.2/8.8.2) id NAA03857; Mon, 16 Dec 1996 13:49:17 +0100
Sender: larsi@proletcult.slip.ifi.uio.no
To: Hrvoje Niksic <hniksic@srce.hr>
Cc: xemacs-beta@xemacs.org
Subject: Re: Bug in window-displayed-height?
References: <kig4thnbvpr.fsf@jagor.srce.hr>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
From: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
Date: 16 Dec 1996 13:49:15 +0100
In-Reply-To: Hrvoje Niksic's message of 15 Dec 1996 17:47:44 +0100
Message-ID: <m220cqlkms.fsf@proletcult.slip.ifi.uio.no>
Lines: 45
X-Mailer: Red Gnus v0.76/Emacs 19.34
X-Face: &w!^oO<W.WBH]FsTP:P0f9X6M-ygaADlA_)eF$<UwQzj7:C=Gi<a?/_4$LX^@$Qq7-O&XHp
 lDARi8e8iT<(A$LWAZD*xjk^')/wI5nG;1cNB>~dS|}-P0~ge{$c!h\<y

Hrvoje Niksic <hniksic@srce.hr> writes:

> What exactly bug is this?  I am refering to the docstring of
> gnus-xmas-force-redisplay:
> 
>   If non-nil, force a redisplay before recentering the summary buffer.
>   This is ugly, but it works around a bug in `window-displayed-height'.
> 
> I've had this set to nil for quite awhile, and have observed no
> incorrect behaviour.  How exactly does this bug manifest, and in what
> way is window-displayed-height incorrect?

It's a bit tricky to reproduce, but I was able to reproduce it
consistently with XEmacs 19.14 using a particular Gnus window config.

Let's say you have:

----
Win1
----
Win2
----
Win3
----

And then you change the window config to:

----
Win2


----
Win3
----

Before the redisplay, `window-displayed-height' would report the
previous Win2 window height.  A `(sit-for 0)' before the
`window-displayed-height' would result in the right value being
returned. 

I haven't tried any of this with the new betas.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@ifi.uio.no * Lars Ingebrigtsen

