diff options
| author | Juanma Barranquero | 2011-04-13 16:27:41 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-04-13 16:27:41 +0200 |
| commit | 06641a4768b86697dc495459a01431c0f61041d3 (patch) | |
| tree | 0407eff23d319ac98f76bb918996ca4f819e90b7 | |
| parent | 9ec6a31795c97fa05c268d297ff39fbb278ead96 (diff) | |
| download | emacs-06641a4768b86697dc495459a01431c0f61041d3.tar.gz emacs-06641a4768b86697dc495459a01431c0f61041d3.zip | |
lisp/autorevert.el: Use `remote-file-name-inhibit-cache'.
* autorevert.el (auto-revert-handler):
Bind `remote-file-name-inhibit-cache', not `tramp-cache-inhibit-cache',
which was removed in 2010-10-02T13:21:43Z!michael.albinus@gmx.de.
Don't quote lambda.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/autorevert.el | 14 |
2 files changed, 12 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5f04d5a2f11..e18f562eaf3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2011-04-13 Juanma Barranquero <lekktu@gmail.com> | 1 | 2011-04-13 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 2 | ||
| 3 | * autorevert.el (auto-revert-handler): | ||
| 4 | Bind `remote-file-name-inhibit-cache', not `tramp-cache-inhibit-cache', | ||
| 5 | which was removed in 2010-10-02T13:21:43Z!michael.albinus@gmx.de. | ||
| 6 | Don't quote lambda. | ||
| 7 | |||
| 3 | * image-mode.el (image-transform-set-scale): | 8 | * image-mode.el (image-transform-set-scale): |
| 4 | Fix change in 2011-04-09T20:28:01Z!cyd@stupidchicken.com. | 9 | Fix change in 2011-04-09T20:28:01Z!cyd@stupidchicken.com. |
| 5 | 10 | ||
diff --git a/lisp/autorevert.el b/lisp/autorevert.el index 2bc7310d7e5..c67b6663bd0 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el | |||
| @@ -434,9 +434,9 @@ This is an internal function used by Auto-Revert Mode." | |||
| 434 | (file-readable-p buffer-file-name) | 434 | (file-readable-p buffer-file-name) |
| 435 | (if auto-revert-tail-mode | 435 | (if auto-revert-tail-mode |
| 436 | ;; Tramp caches the file attributes. Setting | 436 | ;; Tramp caches the file attributes. Setting |
| 437 | ;; `tramp-cache-inhibit' forces Tramp to | 437 | ;; `remote-file-name-inhibit-cache' forces Tramp |
| 438 | ;; reread the values. | 438 | ;; to reread the values. |
| 439 | (let ((tramp-cache-inhibit-cache t)) | 439 | (let ((remote-file-name-inhibit-cache t)) |
| 440 | (/= auto-revert-tail-pos | 440 | (/= auto-revert-tail-pos |
| 441 | (setq size | 441 | (setq size |
| 442 | (nth 7 (file-attributes | 442 | (nth 7 (file-attributes |
| @@ -460,10 +460,10 @@ This is an internal function used by Auto-Revert Mode." | |||
| 460 | (when buffer-file-name | 460 | (when buffer-file-name |
| 461 | (setq eob (eobp)) | 461 | (setq eob (eobp)) |
| 462 | (walk-windows | 462 | (walk-windows |
| 463 | #'(lambda (window) | 463 | (lambda (window) |
| 464 | (and (eq (window-buffer window) buffer) | 464 | (and (eq (window-buffer window) buffer) |
| 465 | (= (window-point window) (point-max)) | 465 | (= (window-point window) (point-max)) |
| 466 | (push window eoblist))) | 466 | (push window eoblist))) |
| 467 | 'no-mini t)) | 467 | 'no-mini t)) |
| 468 | (if auto-revert-tail-mode | 468 | (if auto-revert-tail-mode |
| 469 | (auto-revert-tail-handler size) | 469 | (auto-revert-tail-handler size) |