Skip to content

Conversation

@zonuexe
Copy link
Member

@zonuexe zonuexe commented Mar 25, 2019

This PR rebased develop from master. After merging this branch into master, we can create a new develop branch again.

Diff

git diff origin/develop origin/merge/develop

diff --git a/composer.json b/composer.json
index c406c4e..9cbb67f 100644
--- a/composer.json
+++ b/composer.json
@@ -21,8 +21,10 @@
         "phpactor/phpactor": "^0.12.0"
     },
     "config": {
-        "optimize-autoloader": true,
         "classmap-authoritative": true,
+        "discard-changes": true,
+        "optimize-autoloader": true,
+        "preferred-install": "dist",
         "sort-packages": true,
         "platform": {
             "php": "7.1.3"
diff --git a/phpactor.el b/phpactor.el
index 161242b..a22fa64 100644
--- a/phpactor.el
+++ b/phpactor.el
@@ -372,8 +372,8 @@ of GitHub.")
             (insert-text-button (phpactor-truncate-left path phpactor-references-list-col1-width)
                                 'action (lambda (_) (find-file path) (goto-char (plist-get reference :start)))
                                 'help-echo "mouse-2: visit this file in other window")
-          (insert ": ")
-          (insert (number-to-string (plist-get reference :line_no)))
+            (insert ": ")
+            (insert (number-to-string (plist-get reference :line_no)))
             (insert "\n")))))
     (goto-char 0)
     (grep-mode)))

kermorgant and others added 30 commits March 26, 2019 00:38
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 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
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.
we're using phpactor-install-or-update now
This allows user add extra behaviour (like code formatting) after
buffer is modified by phpactor.
without working-directory, phpactor isn't very helpful.
kermorgant and others added 2 commits March 26, 2019 00:42
@zonuexe zonuexe requested a review from kermorgant March 25, 2019 16:02
Copy link
Contributor

@kermorgant kermorgant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx

@zonuexe
Copy link
Member Author

zonuexe commented Apr 3, 2019

@kermorgant Thanks!

@zonuexe zonuexe merged commit 5dc3316 into master Apr 3, 2019
@zonuexe zonuexe deleted the merge/develop branch April 3, 2019 02:18
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