diff options
| author | Michael Albinus | 2011-01-10 20:42:46 +0100 |
|---|---|---|
| committer | Michael Albinus | 2011-01-10 20:42:46 +0100 |
| commit | 6a0ecd86d28fd5e5be53e7bf699f8dae242aab81 (patch) | |
| tree | 61929460bac17a91eb6690b85dcabb750c02d989 | |
| parent | 88ecd0a566155169b0c720d45f6978537e2f4a36 (diff) | |
| download | emacs-6a0ecd86d28fd5e5be53e7bf699f8dae242aab81.tar.gz emacs-6a0ecd86d28fd5e5be53e7bf699f8dae242aab81.zip | |
* net/tramp.el (tramp-default-method): Initialize with pscp/plink
only when running under W32.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 19 |
2 files changed, 16 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 688f32e5a72..c0607190341 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-01-10 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-default-method): Initialize with pscp/plink | ||
| 4 | only when running under W32. | ||
| 5 | |||
| 1 | 2011-01-09 Eli Zaretskii <eliz@gnu.org> | 6 | 2011-01-09 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * progmodes/grep.el (grep-compute-defaults): Quote the program | 8 | * progmodes/grep.el (grep-compute-defaults): Quote the program |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 0ac5048ef3b..4fb8d7b7862 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; tramp.el --- Transparent Remote Access, Multiple Protocol | 1 | ;;; tramp.el --- Transparent Remote Access, Multiple Protocol |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
| 4 | ;; 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. | 4 | ;; 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; (copyright statements below in code to be updated with the above notice) | 6 | ;; (copyright statements below in code to be updated with the above notice) |
| 7 | 7 | ||
| @@ -780,8 +780,11 @@ shouldn't return t when it isn't." | |||
| 780 | ;; password caching. "scpc" is chosen if we detect that the user is | 780 | ;; password caching. "scpc" is chosen if we detect that the user is |
| 781 | ;; running OpenSSH 4.0 or newer. | 781 | ;; running OpenSSH 4.0 or newer. |
| 782 | (cond | 782 | (cond |
| 783 | ;; PuTTY is installed. | 783 | ;; PuTTY is installed. We don't take it, if it is installed on a |
| 784 | ((executable-find "pscp") | 784 | ;; non-windows system, or pscp from the pssh (parallel ssh) package |
| 785 | ;; is found. | ||
| 786 | ((and (eq system-type 'windows-nt) | ||
| 787 | (executable-find "pscp")) | ||
| 785 | (if (or (fboundp 'password-read) | 788 | (if (or (fboundp 'password-read) |
| 786 | (fboundp 'auth-source-user-or-password) | 789 | (fboundp 'auth-source-user-or-password) |
| 787 | ;; Pageant is running. | 790 | ;; Pageant is running. |
| @@ -1904,8 +1907,8 @@ on the remote host.") | |||
| 1904 | (defconst tramp-perl-encode | 1907 | (defconst tramp-perl-encode |
| 1905 | "%s -e ' | 1908 | "%s -e ' |
| 1906 | # This script contributed by Juanma Barranquero <lektu@terra.es>. | 1909 | # This script contributed by Juanma Barranquero <lektu@terra.es>. |
| 1907 | # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 1910 | # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
| 1908 | # Free Software Foundation, Inc. | 1911 | # 2011 Free Software Foundation, Inc. |
| 1909 | use strict; | 1912 | use strict; |
| 1910 | 1913 | ||
| 1911 | my %%trans = do { | 1914 | my %%trans = do { |
| @@ -1946,8 +1949,8 @@ This string is passed to `format', so percent characters need to be doubled.") | |||
| 1946 | (defconst tramp-perl-decode | 1949 | (defconst tramp-perl-decode |
| 1947 | "%s -e ' | 1950 | "%s -e ' |
| 1948 | # This script contributed by Juanma Barranquero <lektu@terra.es>. | 1951 | # This script contributed by Juanma Barranquero <lektu@terra.es>. |
| 1949 | # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 | 1952 | # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
| 1950 | # Free Software Foundation, Inc. | 1953 | # 2011 Free Software Foundation, Inc. |
| 1951 | use strict; | 1954 | use strict; |
| 1952 | 1955 | ||
| 1953 | my %%trans = do { | 1956 | my %%trans = do { |