Skip to content
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

Fix buggy special-display-buffer-names check. #3673

Merged
merged 3 commits into from
May 21, 2024
Merged

Fix buggy special-display-buffer-names check. #3673

merged 3 commits into from
May 21, 2024

Conversation

PhilHudson
Copy link
Contributor

@PhilHudson PhilHudson commented May 21, 2024

Replace this placeholder text with a summary of the changes in your PR.
The more detailed you are, the better.


Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):

  • The commits are consistent with our contribution guidelines
  • You've added tests (if possible) to cover your change(s)
  • All tests are passing (eldev test)
  • All code passes the linter (eldev lint) which is based on elisp-lint and includes
  • You've updated the changelog (if adding/changing user-visible functionality)
  • You've updated the user manual (if adding/changing user-visible functionality)

Thanks!

If you're just starting out to hack on CIDER you might find this section of its
manual
extremely useful.

@PhilHudson
Copy link
Contributor Author

Fixes issue #3672

@@ -64,7 +64,7 @@ by adding BUFFER-NAME to the `special-display-buffer-names' list."
;; another time through `cider-popup-buffer-display'):
(if (and (boundp 'special-display-buffer-names)
(seq-find (lambda (entry)
(equal (car entry) buffer-name))
(equal (if (listp entry) (car entry) entry) buffer-name))
Copy link
Member

Choose a reason for hiding this comment

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

This is because code in function cider-popup-display-buffer falsely assumes that each element of special-display-buffer-names is a list. In fact and as documented, each element can be either a string or a list (the car of which is a string).

Can you add some variant of this as a comment here for clarity's sake?

@bbatsov
Copy link
Member

bbatsov commented May 21, 2024

I'm fine with the proposed change. Just add some comment about it and a changelog entry as well.

@PhilHudson
Copy link
Contributor Author

PhilHudson commented May 21, 2024 via email

@bbatsov bbatsov merged commit c2394fc into clojure-emacs:master May 21, 2024
32 of 37 checks passed
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.

2 participants