From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: special-display-buffer-names and vc-diff displays wrong result Date: Mon, 03 Oct 2005 01:09:31 -0400 Message-ID: References: <20051002055458.1473025A144@gaia.local> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1128318162 27523 80.91.229.2 (3 Oct 2005 05:42:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2005 05:42:42 +0000 (UTC) Cc: spiegel@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 03 07:42:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EMJ5o-00083W-1T for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 07:42:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMJ5m-0003Ca-UK for ged-emacs-devel@m.gmane.org; Mon, 03 Oct 2005 01:42:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EMJ06-00021P-Mi for emacs-devel@gnu.org; Mon, 03 Oct 2005 01:36:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EMJ04-00020S-9x for emacs-devel@gnu.org; Mon, 03 Oct 2005 01:36:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EMIxw-0000tl-Lu for emacs-devel@gnu.org; Mon, 03 Oct 2005 01:34:20 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EMIZv-0005L5-LF for emacs-devel@gnu.org; Mon, 03 Oct 2005 01:09:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1EMIZv-0005fm-0s; Mon, 03 Oct 2005 01:09:31 -0400 Original-To: Harald Maier In-reply-to: <20051002055458.1473025A144@gaia.local> (message from Harald Maier on Sun, 2 Oct 2005 07:54:58 +0200 (CEST)) 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:43479 Archived-At: I am using `special-display-buffer-names' for the *vc-diff* buffer. If the special-display-buffer frame does not exist then the *vc-diff* buffer reports sometimes "No differences found.". This seems to due the fact that the 'vc-diff-internal' function has not written yet any bytes into the *vc-diff* buffer. How would the fact that the buffer is empty have such an effect? Can you work out the chain of events? The strange part is that this only happens if the background process ends up very fast. For example a diff with the cvs.gnu.org server finishes always successfully, but a diff with the local cvs server fails. I don't know how to fix this. As a workaround I put after the vc-diff-internal function a (sit-for 1) statement. Then it seems to work. If you can deduce how this change has the effect of preventing the problem, then we would understand the problem, and then we could look for the right fix.