From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Tramp with global-auto-revert-mode. Date: Fri, 14 May 2004 17:02:45 -0400 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> <200405140132.i4E1WaH15085@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084570705 27303 80.91.224.253 (14 May 2004 21:38:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 May 2004 21:38:25 +0000 (UTC) Cc: kai@emptydomain.de, monnier@iro.umontreal.ca, storm@cua.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 14 23:38:18 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 1BOkNm-0007VX-00 for ; Fri, 14 May 2004 23:38:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOkNm-0000Ro-00 for ; Fri, 14 May 2004 23:38:18 +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 1BOkIJ-0005wN-46 for emacs-devel@quimby.gnus.org; Fri, 14 May 2004 17:32:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOkEC-00038u-B3 for emacs-devel@gnu.org; Fri, 14 May 2004 17:28:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOjpO-0004rH-Ny for emacs-devel@gnu.org; Fri, 14 May 2004 17:03:24 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOjpO-0004r8-E1 for emacs-devel@gnu.org; Fri, 14 May 2004 17:02:46 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BOjpN-000786-UJ; Fri, 14 May 2004 17:02:46 -0400 Original-To: Luc Teirlinck In-reply-to: <200405140132.i4E1WaH15085@raven.dms.auburn.edu> (message from Luc Teirlinck on Thu, 13 May 2004 20:32:36 -0500 (CDT)) 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:23429 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23429 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. So is this sufficient of a problem to just disable auto-reverting of remote files completely? The problem I am experiencing now is definitely bad enough that it should be disabled by default. I think that calling Tramp from within a timer is in itself a bug. One way to prevent that is not to auto-revert remote files. That might the right thing. But it is not the only way to avoid this problem. The timer could send messages to a subprocess (such as the one that Tramp uses anyway), and when the answers come back, the process handler could take appropriate action. One would probably want a longer interval between rechecking of a remote file, not just a few seconds. A minute, or several minutes, is what I would think of. And while a recheck is in progress, it should know this and avoid starting another recheck of the same file. Just that last change might be enough to prevent this problem. Of course, we suspect there is a bug at the C level and we would like to fix that as well.