We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 705790f + 7a85102 commit 3a37596Copy full SHA for 3a37596
phpactor.el
@@ -134,10 +134,11 @@
134
(json-array-type 'list)
135
(output (get-buffer-create "*Phpactor Output*"))
136
(phpactor-executable (phpactor-find-executable))
137
- ;; `default-directory' is a *special variable*
138
- (default-directory (phpactor-get-working-dir)))
+ (cwd (phpactor-get-working-dir)))
139
(with-current-buffer output (erase-buffer))
140
(with-current-buffer (get-buffer-create "*Phpactor Input*")
+ ;; `default-directory' is a *special variable* and buffer-local.
141
+ (setq default-directory cwd)
142
(erase-buffer)
143
(insert json)
144
(call-process-region (point-min) (point-max) phpactor-executable nil output nil "rpc" (format "--working-dir=%s" default-directory))
0 commit comments