[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tramp with global-auto-revert-mode.

From: Luc Teirlinck
Subject: Re: Tramp with global-auto-revert-mode.
Date: Thu, 13 May 2004 21:31:09 -0500 (CDT)

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))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]