* lisp/net/ange-ftp.el (ange-ftp-file-remote-p): Handle CONNECTED properly.

This commit is contained in:
Michael Albinus
2023-08-23 11:00:56 +02:00
parent e4dc0d6c7e
commit 74eed03bc2

View File

@@ -4233,7 +4233,7 @@ directory, so that Emacs will know its current contents."
(host (nth 0 parsed))
(user (nth 1 parsed))
(localname (nth 2 parsed)))
(and (or (not connected)
(and (or (memq connected '(nil never))
(let ((proc (get-process (ange-ftp-ftp-process-buffer host user))))
(and proc (processp proc)
(memq (process-status proc) '(run open)))))