Skip to content

Commit

Permalink
Fix buggy special-display-buffer-names check (#3673)
Browse files Browse the repository at this point in the history
The 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).
  • Loading branch information
PhilHudson authored May 21, 2024
1 parent 167634a commit c2394fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

### Bugs fixed

- [#3673](https://github.com/clojure-emacs/cider/pull/3673): Fix buggy `special-display-buffer-names` check.
- [#3659](https://github.com/clojure-emacs/cider/pull/3659): Fixes completions when using `flex`-like completion styles.
- [#3600](https://github.com/clojure-emacs/cider/pull/3600): Fix scittle jack-in when using `cider-jack-in-clj`.
- [#3663](https://github.com/clojure-emacs/cider/issues/3663): Fix `cider-interactive-eval-override` invocation.
Expand Down
5 changes: 4 additions & 1 deletion cider-popup.el
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ 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))
;; Fix issue #3672 Phil Hudson 2024-05-21
;; entry can be either a list or a string
;; Previous code falsely assumed entry is always a list
(equal (if (listp entry) (car entry) entry) buffer-name))
special-display-buffer-names))
(progn
(display-buffer buffer-name)
Expand Down

0 comments on commit c2394fc

Please sign in to comment.