From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Tramp with global-auto-revert-mode. Date: 14 May 2004 14:06:32 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200405122254.i4CMsUj29445@raven.dms.auburn.edu> <200405122326.i4CNQk929511@raven.dms.auburn.edu> <200405132324.i4DNOBs14811@raven.dms.auburn.edu> <200405140008.i4E08lb14858@raven.dms.auburn.edu> <871xln4xmc.fsf-monnier+emacs@gnu.org> <87oeorb5pq.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084542336 23903 80.91.224.253 (14 May 2004 13:45:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 May 2004 13:45:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 14 15:45:27 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOd0B-0006O4-00 for ; Fri, 14 May 2004 15:45:27 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOd0B-0005pv-00 for ; Fri, 14 May 2004 15:45:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOcHo-0007zm-BR for emacs-devel@quimby.gnus.org; Fri, 14 May 2004 08:59:36 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOboX-0002t3-7a for emacs-devel@gnu.org; Fri, 14 May 2004 08:29:22 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BObc8-00013s-H3 for emacs-devel@gnu.org; Fri, 14 May 2004 08:17:03 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BObSU-00080J-8X for emacs-devel@gnu.org; Fri, 14 May 2004 08:06:34 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1BObST-0007QA-M6; Fri, 14 May 2004 08:06:34 -0400 Original-To: Kai Grossjohann In-Reply-To: <87oeorb5pq.fsf@emptyhost.emptydomain.de> Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23402 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23402 Kai Grossjohann writes: > Stefan Monnier writes: > > >> I do not see why global-auto-revert-mode should increase the > >> probability of Tramp being recalled recursively. It certainly > > > > Because it runs Tramp from a timer. Timers can be run whenever Emacs is > > waiting, i.e. it can happen when Tramp is waiting for the other end's > > prompt to come up. > > Eeek. > > There is nothing in Tramp that anticipates such reentrant calls. > > What should Tramp do with such calls? Work properly if they are on a different connection. Queue them if they are on the same connection. You don't need an explicit queue for that, you can just sleep with accept-process-output and get woken up at a time when there might nothing else be pending anymore. I don't think a timer gets rerun while it is sleeping on that. When the code continues, you probably should check whether something else that was scheduled beforehand has already done the job. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum