aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2006-12-31 15:03:51 +0000
committerMichael Albinus2006-12-31 15:03:51 +0000
commit496f830892de1e0700b9b334d0748cdaa1e8a129 (patch)
tree5e056266de54a2b3cd8eb6b8b7333a9dd94052bd
parentf57cdb50a7d11aec40238bfe8687eaaf403e1b17 (diff)
downloademacs-496f830892de1e0700b9b334d0748cdaa1e8a129.tar.gz
emacs-496f830892de1e0700b9b334d0748cdaa1e8a129.zip
* net/tramp.el (tramp-default-method): Don't call `symbol-function'.
Apply `funcall' directly on 'executable-find.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp.el10
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1c1070b040b..5658c878479 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-12-31 Romain Francoise <romain@orebokech.com>
2
3 * net/tramp.el (tramp-default-method): Don't call `symbol-function'.
4 Apply `funcall' directly on 'executable-find.
5
12006-12-31 Kim F. Storm <storm@cua.dk> 62006-12-31 Kim F. Storm <storm@cua.dk>
2 7
3 * files.el (auto-mode-case-fold): New defcustom. 8 * files.el (auto-mode-case-fold): New defcustom.
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")