aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2025-06-05 16:29:18 +0200
committerMichael Albinus2025-06-05 16:29:18 +0200
commit7393d7419e97272fbca6323cf374ec021dbe82e2 (patch)
treeae114239d2f1e93e69d01fccd9b0dd89a173e027
parentb15743d71399ed44fb431adb149f98c6ac86d26f (diff)
downloademacs-7393d7419e97272fbca6323cf374ec021dbe82e2.tar.gz
emacs-7393d7419e97272fbca6323cf374ec021dbe82e2.zip
Fix Tramp connection property
* lisp/net/tramp-gvfs.el (tramp-gvfs-maybe-open-connection): * lisp/net/tramp-rclone.el (tramp-rclone-maybe-open-connection): Set "connected" property in time.
-rw-r--r--lisp/net/tramp-gvfs.el8
-rw-r--r--lisp/net/tramp-rclone.el8
2 files changed, 8 insertions, 8 deletions
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index 65a1595c29e..3dba7b1bad6 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -2347,11 +2347,11 @@ connection if a previous connection has died for some reason."
2347 ;; Save the password. 2347 ;; Save the password.
2348 (ignore-errors 2348 (ignore-errors
2349 (and (functionp tramp-password-save-function) 2349 (and (functionp tramp-password-save-function)
2350 (funcall tramp-password-save-function))) 2350 (funcall tramp-password-save-function))))))
2351 2351
2352 ;; Mark it as connected. 2352 ;; Mark it as connected.
2353 (tramp-set-connection-property 2353 (tramp-set-connection-property
2354 (tramp-get-connection-process vec) "connected" t)))))) 2354 (tramp-get-connection-process vec) "connected" t)))
2355 2355
2356(defun tramp-gvfs-gio-tool-p (vec) 2356(defun tramp-gvfs-gio-tool-p (vec)
2357 "Check, whether the gio tool is available." 2357 "Check, whether the gio tool is available."
diff --git a/lisp/net/tramp-rclone.el b/lisp/net/tramp-rclone.el
index 5ad5c8f5c27..e4008c197fb 100644
--- a/lisp/net/tramp-rclone.el
+++ b/lisp/net/tramp-rclone.el
@@ -412,11 +412,11 @@ connection if a previous connection has died for some reason."
412 (tramp-get-method-parameter vec 'tramp-mount-args)) 412 (tramp-get-method-parameter vec 'tramp-mount-args))
413 (while (not (file-exists-p (tramp-make-tramp-file-name vec 'noloc))) 413 (while (not (file-exists-p (tramp-make-tramp-file-name vec 'noloc)))
414 (tramp-cleanup-connection vec 'keep-debug 'keep-password)) 414 (tramp-cleanup-connection vec 'keep-debug 'keep-password))
415 (add-to-list 'tramp-fuse-mount-points (tramp-file-name-unify vec)))
415 416
416 ;; Mark it as connected. 417 ;; Mark it as connected.
417 (add-to-list 'tramp-fuse-mount-points (tramp-file-name-unify vec)) 418 (tramp-set-connection-property
418 (tramp-set-connection-property 419 (tramp-get-connection-process vec) "connected" t)))
419 (tramp-get-connection-process vec) "connected" t))))
420 420
421 ;; In `tramp-check-cached-permissions', the connection properties 421 ;; In `tramp-check-cached-permissions', the connection properties
422 ;; "{uid,gid}-{integer,string}" are used. We set them to proper values. 422 ;; "{uid,gid}-{integer,string}" are used. We set them to proper values.