summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2019-06-15 11:46:04 +0200
committerMichael Albinus <michael.albinus@gmx.de>2019-06-15 11:46:04 +0200
commite1867056ae7ef3ffce90d4b2564a9e81b54818ba (patch)
tree045b77b2be9f3c720c3349ef621cafabfc92d77d /lisp
parent55cdebcf63644dbd8cd53618438b96fe9b70022b (diff)
downloademacs-e1867056ae7ef3ffce90d4b2564a9e81b54818ba.tar.gz
Let tramp-archive unmount clean
* lisp/net/tramp-archive.el (tramp-archive-cleanup-hash): Don't check for a proper method.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/tramp-archive.el24
1 files changed, 13 insertions, 11 deletions
diff --git a/lisp/net/tramp-archive.el b/lisp/net/tramp-archive.el
index e6ae73aae61..d7f99667f45 100644
--- a/lisp/net/tramp-archive.el
+++ b/lisp/net/tramp-archive.el
@@ -475,17 +475,19 @@ name is kept in slot `hop'"
(defun tramp-archive-cleanup-hash ()
"Remove local copies of archives, used by GVFS."
- (maphash
- (lambda (key value)
- ;; Unmount local copy.
- (ignore-errors
- (tramp-message (car value) 3 "Unmounting %s" (or (cdr value) key))
- (tramp-gvfs-unmount (car value)))
- ;; Delete local copy.
- (ignore-errors (delete-file (cdr value)))
- (remhash key tramp-archive-hash))
- tramp-archive-hash)
- (clrhash tramp-archive-hash))
+ ;; Don't check for a proper method.
+ (let ((non-essential t))
+ (maphash
+ (lambda (key value)
+ ;; Unmount local copy.
+ (ignore-errors
+ (tramp-message (car value) 3 "Unmounting %s" (or (cdr value) key))
+ (tramp-gvfs-unmount (car value)))
+ ;; Delete local copy.
+ (ignore-errors (delete-file (cdr value)))
+ (remhash key tramp-archive-hash))
+ tramp-archive-hash)
+ (clrhash tramp-archive-hash)))
(add-hook 'tramp-cleanup-all-connections-hook #'tramp-archive-cleanup-hash)
(add-hook 'kill-emacs-hook #'tramp-archive-cleanup-hash)