summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2009-10-11 13:59:28 +0000
committerMichael Albinus <michael.albinus@gmx.de>2009-10-11 13:59:28 +0000
commit46bcd78cc0470c3ff5447573a87b804ec46078a2 (patch)
tree4b93cf12510307c1523518da8551a876c27e1271
parent3b77302a4da5576bb4bf746527a135a4dd132e19 (diff)
downloademacs-46bcd78cc0470c3ff5447573a87b804ec46078a2.tar.gz
* net/tramp.el (tramp-local-host-p): Function shall return nil for
connection methods like smb.
-rw-r--r--lisp/net/tramp.el5
1 files changed, 5 insertions, 0 deletions
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