diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2019-02-06 09:07:39 +0100 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2019-02-06 09:07:39 +0100 |
commit | 19fbef549a94ccf733367d29438204e94a00e911 (patch) | |
tree | 10aebb1165418dc807dfbc38fab5ddf298561296 /lisp/autorevert.el | |
parent | d087dcf140ed1dafff4d64aee75d8becc621b848 (diff) | |
download | emacs-19fbef549a94ccf733367d29438204e94a00e911.tar.gz emacs-19fbef549a94ccf733367d29438204e94a00e911.tar.bz2 emacs-19fbef549a94ccf733367d29438204e94a00e911.zip |
Fix Bug#34196
* lisp/autorevert.el (auto-revert-buffers): Handle buffers with a
remote default-directory only, when they are connected. (Bug#34196)
* lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection):
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-maybe-open-connection):
Set "connected" property.
* lisp/net/tramp.el (tramp-process-actions): Revert change from
2019-02-04. Bug#34196 will be solved in autorevert.el.
Diffstat (limited to 'lisp/autorevert.el')
-rw-r--r-- | lisp/autorevert.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/autorevert.el b/lisp/autorevert.el index 16a742a458f..150693baf13 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el @@ -767,6 +767,16 @@ the timer when no buffers need to be checked." (buffer-list) auto-revert-buffer-list)) remaining new) + ;; Buffers with remote contents shall be reverted only if the + ;; connection is established already. + (setq bufs (delq nil + (mapcar + (lambda (buf) + (with-current-buffer buf + (and (or (not (file-remote-p default-directory)) + (file-remote-p default-directory nil t)) + buf))) + bufs))) ;; Partition `bufs' into two halves depending on whether or not ;; the buffers are in `auto-revert-remaining-buffers'. The two ;; halves are then re-joined with the "remaining" buffers at the |