aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/tramp-archive.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/net/tramp-archive.el b/lisp/net/tramp-archive.el
index cfd68fb8361..d3b2712fb39 100644
--- a/lisp/net/tramp-archive.el
+++ b/lisp/net/tramp-archive.el
@@ -245,7 +245,7 @@ It must be supported by libarchive(3).")
245 (shell-command . tramp-archive-handle-not-implemented) 245 (shell-command . tramp-archive-handle-not-implemented)
246 (start-file-process . tramp-archive-handle-not-implemented) 246 (start-file-process . tramp-archive-handle-not-implemented)
247 ;; `substitute-in-file-name' performed by default handler. 247 ;; `substitute-in-file-name' performed by default handler.
248 ;; `temporary-file-directory' performed by default handler. 248 (temporary-file-directory . tramp-archive-handle-temporary-file-directory)
249 (unhandled-file-name-directory . ignore) 249 (unhandled-file-name-directory . ignore)
250 (vc-registered . ignore) 250 (vc-registered . ignore)
251 (verify-visited-file-modtime . tramp-handle-verify-visited-file-modtime) 251 (verify-visited-file-modtime . tramp-handle-verify-visited-file-modtime)
@@ -530,6 +530,14 @@ offered."
530 (load 530 (load
531 (tramp-archive-gvfs-file-name file) noerror nomessage nosuffix must-suffix)) 531 (tramp-archive-gvfs-file-name file) noerror nomessage nosuffix must-suffix))
532 532
533(defun tramp-archive-handle-temporary-file-directory ()
534 "Like `temporary-file-directory' for Tramp files."
535 ;; If the default directory, the file archive, is located on a
536 ;; mounted directory, it is returned as it. Not what we want.
537 (with-parsed-tramp-archive-file-name default-directory nil
538 (let ((default-directory (file-name-directory archive)))
539 (temporary-file-directory))))
540
533(defun tramp-archive-handle-not-implemented (operation &rest args) 541(defun tramp-archive-handle-not-implemented (operation &rest args)
534 "Generic handler for operations not implemented for file archives." 542 "Generic handler for operations not implemented for file archives."
535 (let ((v (ignore-errors 543 (let ((v (ignore-errors