diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2020-06-18 20:00:26 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2020-06-18 20:00:26 +0200 |
commit | 7a37460f929a5ea3c9ea7b7ca8d5cc1575dea686 (patch) | |
tree | f4f488b06e3353b1bc833d47d34f764ef6e34ac7 /lisp/net/tramp-rclone.el | |
parent | 363d981811ef828606c0344a9d525b444551c7de (diff) | |
download | emacs-7a37460f929a5ea3c9ea7b7ca8d5cc1575dea686.tar.gz |
Some Tramp cleanups, mainly in tramp-crypt.el
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
Add `add-name-to-file', `make-directory-internal',
`make-nearby-temp-file', `temporary-file-directory' and
`unhandled-file-name-directory'.
(tramp-crypt-file-name-for-operation):
Use `tramp-compat-temporary-file-directory'.
(tramp-crypt-do-encrypt-or-decrypt-file-name)
(tramp-crypt-do-encrypt-or-decrypt-file): Fix syntax error in
`tramp-error'.
* lisp/net/tramp.el (tramp-autoload-file-name-handler):
* lisp/net/tramp-rclone.el (tramp-rclone-mounted-p)
(tramp-rclone-flush-directory-cache):
Use `tramp-compat-temporary-file-directory'.
Diffstat (limited to 'lisp/net/tramp-rclone.el')
-rw-r--r-- | lisp/net/tramp-rclone.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/net/tramp-rclone.el b/lisp/net/tramp-rclone.el index f635d3cbb68..3701bfc22c9 100644 --- a/lisp/net/tramp-rclone.el +++ b/lisp/net/tramp-rclone.el @@ -459,7 +459,7 @@ file names." ;; to cache a nil result. (or (tramp-get-connection-property (tramp-get-connection-process vec) "mounted" nil) - (let* ((default-directory temporary-file-directory) + (let* ((default-directory (tramp-compat-temporary-file-directory)) (mount (shell-command-to-string "mount -t fuse.rclone"))) (tramp-message vec 6 "%s" "mount -t fuse.rclone") (tramp-message vec 6 "\n%s" mount) @@ -485,7 +485,8 @@ file names." ;; crash Emacs for some processes. So we use ;; "pidof", which might not work everywhere. (if (<= emacs-major-version 25) - (let ((default-directory temporary-file-directory)) + (let ((default-directory + (tramp-compat-temporary-file-directory))) (mapcar #'string-to-number (split-string |