]> code.delx.au - gnu-emacs/blobdiff - lisp/net/tramp.el
-
[gnu-emacs] / lisp / net / tramp.el
index 4543c0d1a472febecea13308f3d2046b1235f883..6d8ea021ef3f37c619a7e736fd3f2d13538d2008 100644 (file)
@@ -2869,7 +2869,8 @@ User is always nil."
     (when (tramp-tramp-file-p filename)
       (let* ((v (tramp-dissect-file-name filename))
             (p (tramp-get-connection-process v))
-            (c (and p (processp p) (memq (process-status p) '(run open)))))
+            (c (and p (processp p) (memq (process-status p) '(run open))
+                    (tramp-get-connection-property p "connected" nil))))
        ;; We expand the file name only, if there is already a connection.
        (with-parsed-tramp-file-name
            (if c (expand-file-name filename) filename) nil