aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/autorevert.el18
2 files changed, 30 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ea810df92f7..5e7debbd7ad 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
12009-08-02 Julian Scheid <julians37@googlemail.com> (tiny change)
2
3 * net/tramp.el (tramp-debug-message): Print also microseconds.
4
52009-08-02 Michael Albinus <michael.albinus@gmx.de>
6
7 * net/tramp.el (tramp-handle-insert-file-contents): Optimize, when BEG
8 or END is non-nil.
9 (tramp-handle-vc-registered): Use `tramp-cache-inhibit-cache'.
10 (tramp-get-debug-buffer): Change `outline-regexp' according to new
11 format.
12
13 * net/tramp-cache.el (tramp-cache-inhibit-cache ): New defvar.
14 (tramp-get-file-property): Use it.
15
16 * autorevert.el (auto-revert-handler): Allow
17 `auto-revert-tail-mode' for remote files.
18
12009-08-02 Jason Rumney <jasonr@gnu.org> 192009-08-02 Jason Rumney <jasonr@gnu.org>
2 20
3 * minibuffer.el (read-file-name): Treat confirm options to 21 * minibuffer.el (read-file-name): Treat confirm options to
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index ab133af00f1..81d9fbf55c0 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -66,6 +66,7 @@
66;; change by growing at the end. It only appends the new output, 66;; change by growing at the end. It only appends the new output,
67;; instead of reverting the entire buffer. It does so even if the 67;; instead of reverting the entire buffer. It does so even if the
68;; buffer contains unsaved changes. (Because they will not be lost.) 68;; buffer contains unsaved changes. (Because they will not be lost.)
69;; Auto Revert Tail Mode works also for remote files.
69 70
70;; Usage: 71;; Usage:
71;; 72;;
@@ -432,13 +433,18 @@ This is an internal function used by Auto-Revert Mode."
432 (let* ((buffer (current-buffer)) size 433 (let* ((buffer (current-buffer)) size
433 (revert 434 (revert
434 (or (and buffer-file-name 435 (or (and buffer-file-name
435 (not (file-remote-p buffer-file-name))
436 (file-readable-p buffer-file-name) 436 (file-readable-p buffer-file-name)
437 (if auto-revert-tail-mode 437 (if auto-revert-tail-mode
438 (/= auto-revert-tail-pos 438 ;; Tramp caches the file attributes. Setting
439 (setq size 439 ;; `tramp-cache-inhibit' forces Tramp to
440 (nth 7 (file-attributes buffer-file-name)))) 440 ;; reread the values.
441 (not (verify-visited-file-modtime buffer)))) 441 (let ((tramp-cache-inhibit-cache t))
442 (/= auto-revert-tail-pos
443 (setq size
444 (nth 7 (file-attributes
445 buffer-file-name)))))
446 (and (not (file-remote-p buffer-file-name))
447 (not (verify-visited-file-modtime buffer)))))
442 (and (or auto-revert-mode 448 (and (or auto-revert-mode
443 global-auto-revert-non-file-buffers) 449 global-auto-revert-non-file-buffers)
444 revert-buffer-function 450 revert-buffer-function
@@ -477,7 +483,7 @@ This is an internal function used by Auto-Revert Mode."
477 (when (or revert auto-revert-check-vc-info) 483 (when (or revert auto-revert-check-vc-info)
478 (vc-find-file-hook))))) 484 (vc-find-file-hook)))))
479 485
480(defun auto-revert-tail-handler (size) 486(defun auto-revert-tail-handler (size)
481 (let ((modified (buffer-modified-p)) 487 (let ((modified (buffer-modified-p))
482 (inhibit-read-only t) ; Ignore. 488 (inhibit-read-only t) ; Ignore.
483 (file buffer-file-name) 489 (file buffer-file-name)