From ed4b0e7a342dfc02aae0fcc29c20339b5b83ed2e Mon Sep 17 00:00:00 2001 From: Mikael Kermorgant Date: Fri, 20 Jul 2018 13:00:23 +0300 Subject: [PATCH] replace shell-command-on-region by call-process-region shell-command-on-region is meant for interactive use, causing a buffer to popup now and then. Using call-process-region instead removes this disturbing behaviour. --- phpactor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpactor.el b/phpactor.el index fcf4441..6ed7473 100644 --- a/phpactor.el +++ b/phpactor.el @@ -130,7 +130,7 @@ (with-current-buffer (get-buffer-create "*Phpactor Input*") (erase-buffer) (insert json) - (shell-command-on-region (point-min) (point-max) cmd output) + (call-process-region (point-min) (point-max) (phpactor-find-executable) nil output nil "rpc" (format "--working-dir=%s" (phpactor-get-working-dir))) (with-current-buffer output (goto-char (point-min)) (json-read-object)))))