diff options
| author | Juri Linkov | 2009-09-10 00:54:36 +0000 |
|---|---|---|
| committer | Juri Linkov | 2009-09-10 00:54:36 +0000 |
| commit | 50c737e439caee63f0bdee279c05344aa98c2444 (patch) | |
| tree | 43874dae43a62e76697727bb6ce42d9f443032b0 | |
| parent | cf5e4199310dd3d70453b5115d793957a149c08b (diff) | |
| download | emacs-50c737e439caee63f0bdee279c05344aa98c2444.tar.gz emacs-50c737e439caee63f0bdee279c05344aa98c2444.zip | |
(shell-command): Set asynchronous process filter to
`comint-output-filter'. (Bug#4343)
| -rw-r--r-- | lisp/simple.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index 6ec2e92dac2..c3e7c49e194 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2214,7 +2214,11 @@ specifies the value of ERROR-BUFFER." | |||
| 2214 | (setq mode-line-process '(":%s")) | 2214 | (setq mode-line-process '(":%s")) |
| 2215 | (require 'shell) (shell-mode) | 2215 | (require 'shell) (shell-mode) |
| 2216 | (set-process-sentinel proc 'shell-command-sentinel) | 2216 | (set-process-sentinel proc 'shell-command-sentinel) |
| 2217 | ;; Use the comint filter for proper handling of carriage motion | ||
| 2218 | ;; (see `comint-inhibit-carriage-motion'),. | ||
| 2219 | (set-process-filter proc 'comint-output-filter) | ||
| 2217 | )) | 2220 | )) |
| 2221 | ;; Otherwise, command is executed synchronously. | ||
| 2218 | (shell-command-on-region (point) (point) command | 2222 | (shell-command-on-region (point) (point) command |
| 2219 | output-buffer nil error-buffer))))))) | 2223 | output-buffer nil error-buffer))))))) |
| 2220 | 2224 | ||