aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/tramp.el21
2 files changed, 19 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f6999abd68c..54ecd84e08b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12014-06-02 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-call-process): Add traces.
4
12014-06-02 Wilson Snyder <wsnyder@wsnyder.org> 52014-06-02 Wilson Snyder <wsnyder@wsnyder.org>
2 6
3 Sync with upstream verilog-mode revision 3cd8144. 7 Sync with upstream verilog-mode revision 3cd8144.
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)