-
Notifications
You must be signed in to change notification settings - Fork 40
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
base: master
Are you sure you want to change the base?
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. |
closes #146