aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2007-10-31 20:04:42 +0000
committerMichael Albinus2007-10-31 20:04:42 +0000
commit3412f35d0f2902401c096d4dca1deaf3788e544c (patch)
tree926845ce4e9bb84cd53c9efebc9f467ad56b6017
parentc01b997152fb916ce687577b03898372e0a404b2 (diff)
downloademacs-3412f35d0f2902401c096d4dca1deaf3788e544c.tar.gz
emacs-3412f35d0f2902401c096d4dca1deaf3788e544c.zip
* net/tramp.el (tramp-handle-shell-command): Call `start-file-process'
directly. Fix bug in deleting temp file.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp.el15
2 files changed, 10 insertions, 10 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 54b5c2a2ba4..4761b65d99d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-10-31 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-handle-shell-command): Call `start-file-process'
4 directly. Fix bug in deleting temp file.
5
12007-10-31 Stefan Monnier <monnier@iro.umontreal.ca> 62007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * progmodes/python.el (python-mode-abbrev-table): Use :regexp. 8 * progmodes/python.el (python-mode-abbrev-table): Use :regexp.
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 6008a591e68..f28d8b7aec7 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3777,19 +3777,14 @@ Lisp error raised when PROGRAM is nil is trapped also, returning 1."
3777 output-buffer))) 3777 output-buffer)))
3778 3778
3779 (prog1 3779 (prog1
3780 ;; Run the process. We cannot use `process-file' and 3780 ;; Run the process.
3781 ;; `start-file-process', because these functions might not
3782 ;; exist in older Emacsen.
3783 (if (integerp asynchronous) 3781 (if (integerp asynchronous)
3784 (apply 'tramp-handle-start-file-process 3782 (apply 'start-file-process "*Async Shell*" buffer args)
3785 "*Async Shell*" buffer args) 3783 (apply 'process-file (car args) nil buffer nil (cdr args)))
3786 (apply 'process-file
3787 (car args) nil buffer nil (cdr args)))
3788 ;; Insert error messages if they were separated. 3784 ;; Insert error messages if they were separated.
3789 (when (listp buffer) 3785 (when (listp buffer)
3790 (with-current-buffer error-buffer 3786 (with-current-buffer error-buffer (insert-file-contents (cadr buffer)))
3791 (insert-file-contents (cadr buffer))) 3787 (delete-file (cadr buffer)))
3792 (delete-file (buffer-file-name (cadr buffer))))
3793 ;; There's some output, display it. 3788 ;; There's some output, display it.
3794 (when (with-current-buffer output-buffer (> (point-max) (point-min))) 3789 (when (with-current-buffer output-buffer (> (point-max) (point-min)))
3795 (if (functionp 'display-message-or-buffer) 3790 (if (functionp 'display-message-or-buffer)