diff options
| author | Michael Albinus | 2006-12-31 15:03:51 +0000 |
|---|---|---|
| committer | Michael Albinus | 2006-12-31 15:03:51 +0000 |
| commit | 496f830892de1e0700b9b334d0748cdaa1e8a129 (patch) | |
| tree | 5e056266de54a2b3cd8eb6b8b7333a9dd94052bd /lisp/net | |
| parent | f57cdb50a7d11aec40238bfe8687eaaf403e1b17 (diff) | |
| download | emacs-496f830892de1e0700b9b334d0748cdaa1e8a129.tar.gz emacs-496f830892de1e0700b9b334d0748cdaa1e8a129.zip | |
* net/tramp.el (tramp-default-method): Don't call `symbol-function'.
Apply `funcall' directly on 'executable-find.
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/tramp.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 1835599a1c6..822a995230e 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -693,20 +693,18 @@ various functions for details." | |||
| 693 | ;; another good choice because of the "ControlMaster" option, but | 693 | ;; another good choice because of the "ControlMaster" option, but |
| 694 | ;; this is a more modern alternative in OpenSSH 4, which cannot be | 694 | ;; this is a more modern alternative in OpenSSH 4, which cannot be |
| 695 | ;; taken as default. | 695 | ;; taken as default. |
| 696 | (let ((e-f (and (fboundp 'executable-find) | 696 | (let ((e-f (fboundp 'executable-find))) |
| 697 | (symbol-function 'executable-find)))) | ||
| 698 | (cond | 697 | (cond |
| 699 | ;; PuTTY is installed. | 698 | ;; PuTTY is installed. |
| 700 | ((and e-f (funcall e-f "pscp")) | 699 | ((and e-f (funcall 'executable-find "pscp")) |
| 701 | (if (or (fboundp 'password-read) | 700 | (if (or (fboundp 'password-read) |
| 702 | ;; Pageant is running. | 701 | ;; Pageant is running. |
| 703 | (and (fboundp 'w32-window-exists-p) | 702 | (and (fboundp 'w32-window-exists-p) |
| 704 | (funcall (symbol-function 'w32-window-exists-p) | 703 | (funcall 'w32-window-exists-p "Pageant" "Pageant"))) |
| 705 | "Pageant" "Pageant"))) | ||
| 706 | "pscp" | 704 | "pscp" |
| 707 | "plink")) | 705 | "plink")) |
| 708 | ;; There is an ssh installation. | 706 | ;; There is an ssh installation. |
| 709 | ((and e-f (funcall e-f "scp")) | 707 | ((and e-f (funcall 'executable-find "scp")) |
| 710 | (if (or (fboundp 'password-read) | 708 | (if (or (fboundp 'password-read) |
| 711 | ;; ssh-agent is running. | 709 | ;; ssh-agent is running. |
| 712 | (getenv "SSH_AUTH_SOCK") | 710 | (getenv "SSH_AUTH_SOCK") |