-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make find-references behave better with simpler code #100
Conversation
I might give it another stab current appearance of ref list is not as good as with tabulated mode |
phpactor.el
Outdated
(erase-buffer) | ||
(dolist (file-reference current-references) | ||
(let ((path (plist-get file-reference :file)) | ||
(x nil)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is x
unused?
phpactor.el
Outdated
(when path | ||
(insert-text-button (phpactor-truncate-left path phpactor-references-list-col1-width) | ||
'action (lambda(x) (find-file path (plist-get reference :start))) | ||
'help-echo "mouse-2: visit this file in other window") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- If you ignore the argument, the variable name should be
_
. - Please indent this line up properly.
- Separate between
lambda
and the argument list with a space.
I commented on details, but it looks good to me. |
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.
e9c796e
to
c303e8e
Compare
@zonuexe |
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.
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.
partly solves #98