aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2011-09-21 12:42:55 +0200
committerMichael Albinus2011-09-21 12:42:55 +0200
commita7b88dc6d7f98eb036dd6ed7991e20bc0b163fc8 (patch)
tree7014280ad4c497bd486293866a24bea7af4d3a00
parentcf4eacfdca9685473374498e17ace141d71c9ad9 (diff)
downloademacs-a7b88dc6d7f98eb036dd6ed7991e20bc0b163fc8.tar.gz
emacs-a7b88dc6d7f98eb036dd6ed7991e20bc0b163fc8.zip
* net/tramp.el (tramp-handle-shell-command): Set process sentinel
and process filter, as done also in `shell-command'.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/tramp.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9b90ea1a98e..0db6356426e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-09-21 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp.el (tramp-handle-shell-command): Set process sentinel
4 and process filter, as done also in `shell-command'.
5
12011-09-21 Martin Rudalics <rudalics@gmx.at> 62011-09-21 Martin Rudalics <rudalics@gmx.at>
2 7
3 * window.el (set-window-buffer-start-and-point): Call 8 * window.el (set-window-buffer-start-and-point): Call
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 3384a6d776b..1381d33efa2 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -3024,11 +3024,13 @@ User is always nil."
3024 (if (and (not current-buffer-p) (integerp asynchronous)) 3024 (if (and (not current-buffer-p) (integerp asynchronous))
3025 (prog1 3025 (prog1
3026 ;; Run the process. 3026 ;; Run the process.
3027 (apply 'start-file-process "*Async Shell*" buffer args) 3027 (setq p (apply 'start-file-process "*Async Shell*" buffer args))
3028 ;; Display output. 3028 ;; Display output.
3029 (pop-to-buffer output-buffer) 3029 (pop-to-buffer output-buffer)
3030 (setq mode-line-process '(":%s")) 3030 (setq mode-line-process '(":%s"))
3031 (shell-mode)) 3031 (shell-mode)
3032 (set-process-sentinel p 'shell-command-sentinel)
3033 (set-process-filter p 'comint-output-filter))
3032 3034
3033 (prog1 3035 (prog1
3034 ;; Run the process. 3036 ;; Run the process.