From 46bcd78cc0470c3ff5447573a87b804ec46078a2 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 11 Oct 2009 13:59:28 +0000 Subject: [PATCH] * net/tramp.el (tramp-local-host-p): Function shall return nil for connection methods like smb. --- lisp/net/tramp.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index f266d314b67..e227de57df4 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -7480,6 +7480,11 @@ necessary only. This function will be used in file name completion." (and (stringp host) (string-match tramp-local-host-regexp host) + ;; The method shall be applied to one of the shell file name + ;; handler. `tramp-local-host-p' is also called for "smb" and + ;; alike, where it must fail. + (tramp-get-method-parameter + (tramp-file-name-method vec) 'tramp-login-program) ;; The local temp directory must be writable for the other user. (file-writable-p (tramp-make-tramp-file-name -- 2.39.2