File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 124124 (json-object-type 'plist )
125125 (json-array-type 'list )
126126 (output (get-buffer-create " *Phpactor Output*" ))
127- (cwd (phpactor-get-working-dir))
128- (phpactor-executable (phpactor-find-executable)))
127+ (phpactor-executable (phpactor-find-executable))
128+ ; ; `default-directory' is a *special variable*
129+ (default-directory (phpactor-get-working-dir)))
129130 (with-current-buffer output (erase-buffer ))
130131 (with-current-buffer (get-buffer-create " *Phpactor Input*" )
131132 (erase-buffer )
132133 (insert json)
133- (call-process-region (point-min ) (point-max ) phpactor-executable nil output nil " rpc" (format " --working-dir=%s " cwd ))
134+ (call-process-region (point-min ) (point-max ) phpactor-executable nil output nil " rpc" (format " --working-dir=%s " default-directory ))
134135 (with-current-buffer output
135136 (goto-char (point-min ))
136137 (json-read-object )))))
You can’t perform that action at this time.
0 commit comments