[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: |
Fri, 14 May 2004 00:32:06 -0500 (CDT) |
My proposed patch had an obvious bug. Here is a corrected version,
although we will probably need additional or different changes.
===File ~/auto-revert-diff==================================
*** autorevert.el 04 Apr 2004 19:50:59 -0500 1.29
--- autorevert.el 14 May 2004 00:12:18 -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,328 ----
(unless (buffer-modified-p)
(let ((buffer (current-buffer)) revert eob eoblist)
(or (and buffer-file-name
+ (or (not (file-remote-p buffer-file-name))
+ auto-revert-mode
+ global-auto-revert-remote-files)
(file-readable-p buffer-file-name)
(not (verify-visited-file-modtime buffer))
(setq revert t))
============================================================
- Re: Tramp with global-auto-revert-mode., (continued)
- Re: Tramp with global-auto-revert-mode., Luc Teirlinck, 2004/05/15
- Re: Tramp with global-auto-revert-mode., Eli Zaretskii, 2004/05/15
- Re: Tramp with global-auto-revert-mode., Luc Teirlinck, 2004/05/14
- Re: Tramp with global-auto-revert-mode., Luc Teirlinck, 2004/05/15
- Re: Tramp with global-auto-revert-mode., Richard Stallman, 2004/05/14
- Re: Tramp with global-auto-revert-mode., Luc Teirlinck, 2004/05/13
- Re: Tramp with global-auto-revert-mode.,
Luc Teirlinck <=
- Re: Tramp with global-auto-revert-mode., Kai Grossjohann, 2004/05/14
- Re: Tramp with global-auto-revert-mode., David Kastrup, 2004/05/14
- Re: Tramp with global-auto-revert-mode., Stefan Monnier, 2004/05/14
- Re: Tramp with global-auto-revert-mode., David Kastrup, 2004/05/14
- Re: Tramp with global-auto-revert-mode., Kim F. Storm, 2004/05/14
- Re: Tramp with global-auto-revert-mode., David Kastrup, 2004/05/14
- Re: Tramp with global-auto-revert-mode., Kim F. Storm, 2004/05/14
- Re: Tramp with global-auto-revert-mode., David Kastrup, 2004/05/14
- Re: Tramp with global-auto-revert-mode., Kim F. Storm, 2004/05/14
- Re: Tramp with global-auto-revert-mode., Stefan Monnier, 2004/05/14