Skip to content

Commit

Permalink
replace shell-command-on-region by call-process-region
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kermorgant committed Jul 26, 2018
1 parent 3696dfc commit ed4b0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))
Expand Down

0 comments on commit ed4b0e7

Please sign in to comment.