Skip to content

Conversation

@kermorgant
Copy link
Contributor

@kermorgant kermorgant commented Mar 17, 2019

by doing this, we are able to replace phpactor-find-executable
function and optimize things a bit

kermorgant and others added 30 commits February 8, 2019 00:01
Invoke action as if it was chosen from the context menu.

Phpactor seems to have an issue with this rpc action invoked directly.
As long as it's not fixed, this does the job.
Thanks Steve Purcell

use of pcase instead of cl-case
Instead of the package's directory, copy the file to the user's .emacs.d
directory and install it.
The term "Package" is ambiguous for both Lisp package (ELPA) and
PHP package (Composer).  Here we used Composer to try to set up
Phpactor in a different directory with package.el, which meant
Composer package.
Before the change, when phpactor-install-directory was NIL, it falls
back to the directory of the Lisp package. However, there is no
demand for that function, so we no longer have such an option.
The purpose of this change is to resolve the "package" ambiguity
between Lisp and PHP.
Add support for add_missing_assignments transform
add travis conf in order to run buttercup tests

test phpactor installation
test phpactor-get-working-dir (remove unused phpactor-working-dir variable)
test phpactor--lisp-directory and add a fix for it
Add some tests using buttercup
…tion

Avoid use of context_menu rpc action for generate_accessor action
It was too soon to remove replace_file_source as it is sometimes
invoked from a callback
Add function for those refactoring, making them accesible directly (ie not only via context menu)
ensime-mode has a similar implementation, which does not rely on
tabulated mode and I liked the shorter implementation (grep-mode makes
it easy to kill the buffer with a single keystroke).

Besides, set-window-dedicated-p helps make the buffer sticky.
@kermorgant kermorgant changed the title declare phpactor-executable as defcustom wip: declare phpactor-executable as defcustom Mar 17, 2019
@kermorgant kermorgant force-pushed the feature/phpactor-executable-defcustom branch 4 times, most recently from 6e63624 to 4af92e5 Compare March 19, 2019 13:08
@kermorgant kermorgant requested a review from zonuexe March 19, 2019 13:09
@kermorgant
Copy link
Contributor Author

kermorgant commented Mar 19, 2019

Hi @zonuexe

Following PR #106, I've made some attempts at replacing phpactor-find-executable by phpactor-executable provided using defcustom, reducing a bit of overhead by continuously invoking this function during completion.

What do you think of this ? As a side effect, I've put aside things I did not understand, like making the variable buffer-local. Do you think that is still relevant ?

@kermorgant kermorgant force-pushed the feature/phpactor-executable-defcustom branch from 71438df to 95b612c Compare March 19, 2019 13:22
kermorgant and others added 4 commits March 19, 2019 19:24
This allows user add extra behaviour (like code formatting) after
buffer is modified by phpactor.
without working-directory, phpactor isn't very helpful.
also remove useless call to all-completions
By doing this, we are able to replace phpactor-find-executable
function which is a bit more optimized.

- update test
- reevaluate phpactor-executable using setq (override defcustom), after
composer install using hook
@kermorgant kermorgant force-pushed the feature/phpactor-executable-defcustom branch from 95b612c to d0111bd Compare March 20, 2019 08:11
@kermorgant kermorgant changed the title wip: declare phpactor-executable as defcustom declare phpactor-executable as defcustom Mar 20, 2019
@kermorgant
Copy link
Contributor Author

replaced by #118

@kermorgant kermorgant closed this Jun 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants