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: Thu, 13 May 2004 21:31:09 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200405140231.i4E2V9A15362@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> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084502884 6389 80.91.224.253 (14 May 2004 02:48:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 May 2004 02:48:04 +0000 (UTC) Cc: kai@emptydomain.de, emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 14 04:47:58 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 1BOSju-0007fA-00 for ; Fri, 14 May 2004 04:47:58 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BOSju-0000C6-00 for ; Fri, 14 May 2004 04:47:58 +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 1BOSgt-0003j1-Oq for emacs-devel@quimby.gnus.org; Thu, 13 May 2004 22:44:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BOSgj-0003hI-2e for emacs-devel@gnu.org; Thu, 13 May 2004 22:44:41 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BOSba-0002Mi-Jv for emacs-devel@gnu.org; Thu, 13 May 2004 22:39:53 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BOSba-0001wj-8X for emacs-devel@gnu.org; Thu, 13 May 2004 22:39:22 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by mx20.gnu.org with esmtp (Exim 4.34) id 1BOSTs-0002z0-4q for emacs-devel@gnu.org; Thu, 13 May 2004 22:31:24 -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 i4E2VGTS001386; Thu, 13 May 2004 21:31:16 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i4E2V9A15362; Thu, 13 May 2004 21:31:09 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: monnier@iro.umontreal.ca In-reply-to: <871xln4xmc.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on 13 May 2004 21:17:26 -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:23372 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23372 I plan to commit the following shortly. The problems with auto-reverting remote files can occasionally become so bad as to make Emacs unusable. The crash is not the only problem. Maybe one could discuss setting the default back to t. But people with a slow connection definitely need a way to disable auto-reverting of remote files. So the option seems to be definitely needed. ===File ~/auto-revert-diff================================== *** autorevert.el 04 Apr 2004 19:50:59 -0500 1.29 --- autorevert.el 13 May 2004 20:45:22 -0500 *************** *** 185,190 **** --- 185,199 ---- :group 'auto-revert :type 'boolean) + (defcustom global-auto-revert-remote-files nil + "When non-nil, Global Auto-Revert Mode reverts remote files. + Setting this non-nil can be dangerous. If you have a slow + connection, or are not permanently on-line, freezes and other + problems can result." + :group 'auto-revert + :type 'boolean + :version "21.4") + (defcustom global-auto-revert-ignore-modes '() "List of major modes Global Auto-Revert Mode should not check." :group 'auto-revert *************** *** 311,316 **** --- 320,326 ---- (unless (buffer-modified-p) (let ((buffer (current-buffer)) revert eob eoblist) (or (and buffer-file-name + (or auto-revert-mode global-auto-revert-remote-files) (file-readable-p buffer-file-name) (not (verify-visited-file-modtime buffer)) (setq revert t)) ============================================================