aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/net
diff options
context:
space:
mode:
authorMichael Albinus2014-06-02 11:58:50 +0200
committerMichael Albinus2014-06-02 11:58:50 +0200
commitc8291a36aaa6f4e7bce388f32bc7f724d826bd8a (patch)
tree39e166fa7e633077222c9211fdbb25ca8fbab327 /lisp/net
parent84dbe84b9f87e49b2307e63859529f0a9f2ad5b9 (diff)
downloademacs-c8291a36aaa6f4e7bce388f32bc7f724d826bd8a.tar.gz
emacs-c8291a36aaa6f4e7bce388f32bc7f724d826bd8a.zip
* lisp/net/tramp.el (tramp-call-process): Add traces.
Diffstat (limited to 'lisp/net')
-rw-r--r--lisp/net/tramp.el21
1 files changed, 15 insertions, 6 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 6cc8275b327..29a7b95357c 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -4122,12 +4122,21 @@ This is needed because for some Emacs flavors Tramp has
4122defadvised `call-process' to behave like `process-file'. The 4122defadvised `call-process' to behave like `process-file'. The
4123Lisp error raised when PROGRAM is nil is trapped also, returning 1. 4123Lisp error raised when PROGRAM is nil is trapped also, returning 1.
4124Furthermore, traces are written with verbosity of 6." 4124Furthermore, traces are written with verbosity of 6."
4125 (tramp-message 4125 (let ((v (vector tramp-current-method tramp-current-user tramp-current-host
4126 (vector tramp-current-method tramp-current-user tramp-current-host nil nil) 4126 nil nil))
4127 6 "`%s %s' %s %s" program (mapconcat 'identity args " ") infile destination) 4127 (result 1))
4128 (if (executable-find program) 4128 (tramp-message
4129 (apply 'call-process program infile destination display args) 4129 v 6 "`%s %s' %s %s"
4130 1)) 4130 program (mapconcat 'identity args " ") infile destination)
4131 (when (executable-find program)
4132 (with-temp-buffer
4133 (setq result
4134 (apply
4135 'call-process program infile (or destination t) display args))
4136 (with-current-buffer
4137 (if (bufferp destination) destination (current-buffer))
4138 (tramp-message v 6 "%d\n%s" result (buffer-string)))))
4139 result))
4131 4140
4132;;;###tramp-autoload 4141;;;###tramp-autoload
4133(defun tramp-read-passwd (proc &optional prompt) 4142(defun tramp-read-passwd (proc &optional prompt)