This form reports t only on the Emacs instance where the Tramp connection was established but not in sister Emacs sessions that share the connection.
(file-remote-p default-directory nil 'connected)
Perhaps I'm doing something wrong but I expected this to work.
-Stephane
