diff options
| author | Michael Albinus | 2009-10-11 13:59:28 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-10-11 13:59:28 +0000 |
| commit | 46bcd78cc0470c3ff5447573a87b804ec46078a2 (patch) | |
| tree | 4b93cf12510307c1523518da8551a876c27e1271 | |
| parent | 3b77302a4da5576bb4bf746527a135a4dd132e19 (diff) | |
| download | emacs-46bcd78cc0470c3ff5447573a87b804ec46078a2.tar.gz emacs-46bcd78cc0470c3ff5447573a87b804ec46078a2.zip | |
* net/tramp.el (tramp-local-host-p): Function shall return nil for
connection methods like smb.
| -rw-r--r-- | lisp/net/tramp.el | 5 |
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." | |||
| 7480 | (and | 7480 | (and |
| 7481 | (stringp host) | 7481 | (stringp host) |
| 7482 | (string-match tramp-local-host-regexp host) | 7482 | (string-match tramp-local-host-regexp host) |
| 7483 | ;; The method shall be applied to one of the shell file name | ||
| 7484 | ;; handler. `tramp-local-host-p' is also called for "smb" and | ||
| 7485 | ;; alike, where it must fail. | ||
| 7486 | (tramp-get-method-parameter | ||
| 7487 | (tramp-file-name-method vec) 'tramp-login-program) | ||
| 7483 | ;; The local temp directory must be writable for the other user. | 7488 | ;; The local temp directory must be writable for the other user. |
| 7484 | (file-writable-p | 7489 | (file-writable-p |
| 7485 | (tramp-make-tramp-file-name | 7490 | (tramp-make-tramp-file-name |