From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Tramp with global-auto-revert-mode. Date: 15 May 2004 01:00:05 +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> <200405140132.i4E1WaH15085@raven.dms.auburn.edu> <87vfiz3fez.fsf-monnier+emacs@gnu.org> <200405140308.i4E38b415540@raven.dms.auburn.edu> <87pt973b7y.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084577882 8532 80.91.224.253 (14 May 2004 23:38:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 May 2004 23:38:02 +0000 (UTC) Cc: kai@emptydomain.de, Luc Teirlinck , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 15 01:37:56 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 1BOmFX-0005D0-00 for ; Sat, 15 May 2004 01:37:55 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOmFX-0002fL-00 for ; Sat, 15 May 2004 01:37:55 +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 1BOlzb-00063T-O1 for emacs-devel@quimby.gnus.org; Fri, 14 May 2004 19:21:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOlwA-0005Ez-6v for emacs-devel@gnu.org; Fri, 14 May 2004 19:17:54 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOlf0-0001cq-Rw for emacs-devel@gnu.org; Fri, 14 May 2004 19:00:43 -0400 Original-Received: from [195.41.46.237] (helo=pfepc.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BOlez-0001cH-Ql for emacs-devel@gnu.org; Fri, 14 May 2004 19:00:10 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepc.post.tele.dk (Postfix) with SMTP id 5796D262826; Sat, 15 May 2004 01:00:08 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: <87pt973b7y.fsf-monnier+emacs@gnu.org> Original-Lines: 25 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:23450 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23450 Stefan Monnier writes: > > I believe that the freezes are not an Emacs or Tramp bug, but the > > inevitable result of a slow connection. Hence we need a user option > > to deal with them. > > If C-g does not get you out of the hang, it's a bug. > As I said, the with-local-quit should be put in Tramp. > You might be right that auto-reverting remote files needs to be turned off > or customizable, but the problems you're experiencing could also be > triggered by other packages than auto-revert, so we should fix them. > > Among all the problems, one of them is actually in autorevert.el: > the auto-revert timer should not be re-run if it hasn't finished running > yet. One way to do that is to not use a repeating timer, but instead to > reset the timer manually at the end of auto-revert-buffers. Another is to > bind auto-revert-running to t in auto-revert-buffers and check it before > running, as in the patch below. A third option is to do this kind of > re-entrance-check directly in the C code. The C code actually does this, but the lisp handler breaks this. I will install a patch shortly. -- Kim F. Storm http://www.cua.dk