From 50c737e439caee63f0bdee279c05344aa98c2444 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Thu, 10 Sep 2009 00:54:36 +0000 Subject: [PATCH] (shell-command): Set asynchronous process filter to `comint-output-filter'. (Bug#4343) --- lisp/simple.el | 4 ++++ 1 file changed, 4 insertions(+) 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." (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))))))) -- 2.39.2