diff options
| author | Michael Albinus | 2014-06-02 11:58:50 +0200 |
|---|---|---|
| committer | Michael Albinus | 2014-06-02 11:58:50 +0200 |
| commit | c8291a36aaa6f4e7bce388f32bc7f724d826bd8a (patch) | |
| tree | 39e166fa7e633077222c9211fdbb25ca8fbab327 | |
| parent | 84dbe84b9f87e49b2307e63859529f0a9f2ad5b9 (diff) | |
| download | emacs-c8291a36aaa6f4e7bce388f32bc7f724d826bd8a.tar.gz emacs-c8291a36aaa6f4e7bce388f32bc7f724d826bd8a.zip | |
* lisp/net/tramp.el (tramp-call-process): Add traces.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 21 |
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 @@ | |||
| 1 | 2014-06-02 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-call-process): Add traces. | ||
| 4 | |||
| 1 | 2014-06-02 Wilson Snyder <wsnyder@wsnyder.org> | 5 | 2014-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 | |||
| 4122 | defadvised `call-process' to behave like `process-file'. The | 4122 | defadvised `call-process' to behave like `process-file'. The |
| 4123 | Lisp error raised when PROGRAM is nil is trapped also, returning 1. | 4123 | Lisp error raised when PROGRAM is nil is trapped also, returning 1. |
| 4124 | Furthermore, traces are written with verbosity of 6." | 4124 | Furthermore, 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) |