]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp.el (tramp-call-process): Add more traces.
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 2 Jun 2014 11:35:40 +0000 (13:35 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 2 Jun 2014 11:35:40 +0000 (13:35 +0200)
lisp/net/tramp.el

index 29a7b95357c191d0fa45cf28a030ad6fccc11a27..5164c4b32bb5a76471610495206ec7deacd1db9c 100644 (file)
@@ -4124,18 +4124,17 @@ Lisp error raised when PROGRAM is nil is trapped also, returning 1.
 Furthermore, traces are written with verbosity of 6."
   (let ((v (vector tramp-current-method tramp-current-user tramp-current-host
                   nil nil))
-       (result 1))
+       result)
     (tramp-message
      v 6 "`%s %s' %s %s"
      program (mapconcat 'identity args " ") infile destination)
-    (when (executable-find program)
-      (with-temp-buffer
-       (setq result
-             (apply
-              'call-process program infile (or destination t) display args))
-       (with-current-buffer
-           (if (bufferp destination) destination (current-buffer))
-         (tramp-message v 6 "%d\n%s" result (buffer-string)))))
+    (with-temp-buffer
+      (setq result
+           (apply
+            'call-process program infile (or destination t) display args))
+      (with-current-buffer
+         (if (bufferp destination) destination (current-buffer))
+       (tramp-message v 6 "%d\n%s" result (buffer-string))))
     result))
 
 ;;;###tramp-autoload