Skip to content

Commit ed4b0e7

Browse files
committed
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.
1 parent 3696dfc commit ed4b0e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpactor.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
(with-current-buffer (get-buffer-create "*Phpactor Input*")
131131
(erase-buffer)
132132
(insert json)
133-
(shell-command-on-region (point-min) (point-max) cmd output)
133+
(call-process-region (point-min) (point-max) (phpactor-find-executable) nil output nil "rpc" (format "--working-dir=%s" (phpactor-get-working-dir)))
134134
(with-current-buffer output
135135
(goto-char (point-min))
136136
(json-read-object)))))

0 commit comments

Comments
 (0)