From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: [Stephen.Berman@gmx.net: Re: redisplay] Date: Wed, 18 Mar 2009 17:56:43 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <87mz0z5dux.fsf@stupidchicken.com> <462D059B.7020001@swipnet.se> <462F1593.6030601@swipnet.se> <462F6ABA.6030808@swipnet.se> <462F9E30.4000702@swipnet.se> <87vdq9xzqj.fsf@cyd.mit.edu> <87d4cgbxzn.fsf@cyd.mit.edu> <87tz5sxjwh.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1237366713 17691 80.91.229.12 (18 Mar 2009 08:58:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2009 08:58:33 +0000 (UTC) Cc: David Reitter , Jan =?ISO-8859-1?Q?Dj=E4rv?= , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 18 09:59:49 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ljrco-0003Ym-M3 for ged-emacs-devel@m.gmane.org; Wed, 18 Mar 2009 09:59:47 +0100 Original-Received: from localhost ([127.0.0.1]:55267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjrbR-0003LS-Pl for ged-emacs-devel@m.gmane.org; Wed, 18 Mar 2009 04:58:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ljra1-0002PA-2H for emacs-devel@gnu.org; Wed, 18 Mar 2009 04:56:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjrZu-0002L8-Na for emacs-devel@gnu.org; Wed, 18 Mar 2009 04:56:51 -0400 Original-Received: from [199.232.76.173] (port=58962 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjrZu-0002L5-B3 for emacs-devel@gnu.org; Wed, 18 Mar 2009 04:56:46 -0400 Original-Received: from ntp.math.s.chiba-u.ac.jp ([133.82.132.2]:54597 helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LjrZt-0003My-Kg for emacs-devel@gnu.org; Wed, 18 Mar 2009 04:56:46 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 7C1112C40; Wed, 18 Mar 2009 17:56:43 +0900 (JST) In-Reply-To: <87tz5sxjwh.fsf@cyd.mit.edu> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by monty-python.gnu.org: NetBSD 3.0 (DF) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109672 Archived-At: >>>>> On Tue, 17 Mar 2009 11:13:02 -0400, Chong Yidong said: > The failure seems to happen more often with the earlier Fredisplay > call position. This is not surprising: the Fredisplay call is an > attempt to update the display of the frames, which depends on X > server timings that Emacs cannot affect directly. Since the goal is > to perform the update just before opening the dialog, calling > Fredisplay earlier makes this hack less reliable. > Your analysis, however, makes it clear that this hack is > problematic. However, I don't see any good solution right now. So, > please go ahead and move the Fredisplay call to an earlier, safe > position. Done. Also, I traced both good and bad cases and observed the following: Good case (exposed area is redrawn) * For the "*vc-diff*" frame, xg_frame_resized is called twice before the Fredisplay call. * The height of the "*vc-diff*" window becomes 12. Bad case (exposed are is not redrawn) * For the "*vc-diff*" frame, xg_frame_resized is called once before and once after the Fredisplay call. (The second one does SET_FRAME_GARBAGED and that prevents subsequent expose_frame calls from redrawing the contents until the next redisplay.) * The height of the "*vc-diff*" window becomes 10. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp