-
Notifications
You must be signed in to change notification settings - Fork 39
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 prodigy command respect display-buffer-alist #149
make prodigy command respect display-buffer-alist #149
Conversation
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.
Thank you for the PR. Can you please check the tests? They don't pass on the CI.
29e2993
to
63d76e5
Compare
I'm struggling to run the tests locally. Are the docs for running the tests up to date? Running |
you can always refer to how GitHub actions are implemented to learn how this works. This is in $ make ci-dependencies
$ nix shell \
--extra-experimental-features flakes \
--extra-experimental-features nix-command \
nixpkgs#nodePackages.coffee-script \
--command make check The Makefile is implemented with makel. Reading its documentation may help understand how things work. The Then, the $ make test-ecukes |
I think the overall issue with this PR is that the The PR can be fixed with: diff --git a/prodigy.el b/prodigy.el
index e9bb211..07d1a57 100644
--- a/prodigy.el
+++ b/prodigy.el
@@ -1550,9 +1550,10 @@ (define-derived-mode prodigy-view-mode special-mode "Prodigy-view"
(defun prodigy ()
"Manage external services from within Emacs."
(interactive)
- (let ((buffer (get-buffer-create prodigy-buffer-name)))
+ (let ((buffer-p (prodigy-buffer))
+ (buffer (get-buffer-create prodigy-buffer-name)))
(with-current-buffer buffer
- (prodigy-mode)
+ (when (not buffer-p) (prodigy-mode))
(prodigy-start-status-check-timer))
(pop-to-buffer buffer)))
--
2.47.0 What still needs to be done is to add a new test scenario covering the new behavior. |
Thanks Damien, I'm not super familiar with github actions, so thanks for the tip! I'll look into adding a new test scenario when I have the time. |
Hi @lem102. Do you still plan to work on this? |
88479f5
to
7208113
Compare
Hi Damien, Fixed the code and added a new test to check display buffer rules are respected. Let me know if there's anything else that needs doing :) |
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.
Can you please rename the test scenario and squash all your commits into one? Thank you for your work.
features/prodigy.feature
Outdated
@@ -33,3 +33,12 @@ Feature: Prodigy | |||
| baz | nil | | |||
| foo | nil | | |||
| qux | nil | | |||
|
|||
Scenario: Prodigy mode |
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.
we should be a little more explicit here. What is the scenario that this test is checking?
0c47f1f
to
757b220
Compare
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.
excellent work. Thank you very much.
closes #146