Skip to content

Commit

Permalink
Merge pull request emacs-php#30 from kermorgant/phpactor-invocation
Browse files Browse the repository at this point in the history
replace shell-command-on-region by call-process-region
  • Loading branch information
kermorgant authored Jul 26, 2018
2 parents 3696dfc + ed4b0e7 commit 3f8dc20
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 3f8dc20

Please sign in to comment.