From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Tramp with global-auto-revert-mode. Date: Mon, 17 May 2004 22:44:43 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200405180344.i4I3ih816240@raven.dms.auburn.edu> 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> <867jvcihnf.fsf@slowfox.dyndns.org> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084852279 25719 80.91.224.253 (18 May 2004 03:51:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 May 2004 03:51:19 +0000 (UTC) Cc: kai.grossjohann@gmx.net, monnier@iro.umontreal.ca, dak@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 18 05:51:11 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 1BPvdH-0007vY-00 for ; Tue, 18 May 2004 05:51:11 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BPvdH-0006Rt-00 for ; Tue, 18 May 2004 05:51:11 +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 1BPvan-0005yY-QH for emacs-devel@quimby.gnus.org; Mon, 17 May 2004 23:48:37 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BPvZ6-0005WE-4b for emacs-devel@gnu.org; Mon, 17 May 2004 23:46:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BPvYX-0005Nn-4k for emacs-devel@gnu.org; Mon, 17 May 2004 23:46:49 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BPvXt-0005JO-4h; Mon, 17 May 2004 23:45:37 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i4I3j2TS023653; Mon, 17 May 2004 22:45:02 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i4I3ih816240; Mon, 17 May 2004 22:44:43 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Mon, 17 May 2004 18:58:42 -0400) 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:23611 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23611 Richard Stallman wrote: We could do that, but we don't want attempts to auto-revert to cause errors. How about turning off auto-revert mode while inside Tramp? Tramp can take a long time on slow connections. It typically takes me 40-45 seconds to visit sequences.texi using Tramp with ssh, when auto-revert-mode is disabled. It sometimes takes longer than that, and sequences.texi is not _that_ long of a file. With a default-value for auto-revert-interval of five seconds the delay in reverting might be confusing to the user. If we turn off auto-reverting of remote files altogether, there is no problem. Then there will be no attempts to auto-revert. If not, then I believe that we at least need an option to disable auto-reverting of remote files, say `global-auto-revert-remote-files'. If we go for the option, then we could also say that auto-reverting of a remote file would be enabled, even if `global-auto-revert-remote-files' is nil, if auto-revert-mode (as opposed to global-auto-revert-mode) is enabled in the buffer (since then the user explicitly asked for it). This would be consistent with `global-auto-revert-non-file-buffers'. If Tramp bound an internal variable `tramp-active' or whatever to t, auto-revert-mode could unconditionally disable auto-reverting of remote files if that variable is non-nil. Sincerely, Luc.