Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
50c737e4
Commit
50c737e4
authored
Sep 10, 2009
by
Juri Linkov
Browse files
(shell-command): Set asynchronous process filter to
`comint-output-filter'. (Bug#4343)
parent
cf5e4199
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lisp/simple.el
lisp/simple.el
+4
-0
No files found.
lisp/simple.el
View file @
50c737e4
...
...
@@ -2214,7 +2214,11 @@ specifies the value of ERROR-BUFFER."
(setq mode-line-process '("
:%s
"))
(require 'shell) (shell-mode)
(set-process-sentinel proc 'shell-command-sentinel)
;; Use the comint filter for proper handling of carriage motion
;; (see `comint-inhibit-carriage-motion'),.
(set-process-filter proc 'comint-output-filter)
))
;; Otherwise, command is executed synchronously.
(shell-command-on-region (point) (point) command
output-buffer nil error-buffer)))))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment