]> code.delx.au - gnu-emacs/commitdiff
* net/tramp.el (tramp-handle-shell-command): Call `start-file-process'
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 31 Oct 2007 20:04:42 +0000 (20:04 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 31 Oct 2007 20:04:42 +0000 (20:04 +0000)
directly.  Fix bug in deleting temp file.

lisp/ChangeLog
lisp/net/tramp.el

index 54b5c2a2ba47bff33931b800b12c309ccbc0637a..4761b65d99df2c64c7de37c0f114da8ca35fb2c7 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-31  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/tramp.el (tramp-handle-shell-command): Call `start-file-process'
+       directly.  Fix bug in deleting temp file.
+
 2007-10-31  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * progmodes/python.el (python-mode-abbrev-table): Use :regexp.
index 6008a591e685900a8bafd0bb91d57a088c86862c..f28d8b7aec7a9cf92c32c7c7f1fe464a9c0e78bf 100644 (file)
@@ -3777,19 +3777,14 @@ Lisp error raised when PROGRAM is nil is trapped also, returning 1."
            output-buffer)))
 
     (prog1
-       ;; Run the process.  We cannot use `process-file' and
-       ;; `start-file-process', because these functions might not
-       ;; exist in older Emacsen.
+       ;; Run the process.
        (if (integerp asynchronous)
-           (apply 'tramp-handle-start-file-process
-                  "*Async Shell*" buffer args)
-         (apply 'process-file
-                (car args) nil buffer nil (cdr args)))
+           (apply 'start-file-process "*Async Shell*" buffer args)
+         (apply 'process-file (car args) nil buffer nil (cdr args)))
       ;; Insert error messages if they were separated.
       (when (listp buffer)
-       (with-current-buffer error-buffer
-         (insert-file-contents (cadr buffer)))
-       (delete-file (buffer-file-name (cadr buffer))))
+       (with-current-buffer error-buffer (insert-file-contents (cadr buffer)))
+       (delete-file (cadr buffer)))
       ;; There's some output, display it.
       (when (with-current-buffer output-buffer (> (point-max) (point-min)))
        (if (functionp 'display-message-or-buffer)