Invoke cider-doc in the REPL, pop to fully-populated buffer *cider-doc*
Actual behavior
Error message:
eval-expression: Wrong type argument: bufferp, "*cider-doc*"
(where *cider-doc* is the first non-list element of special-display-buffer-names)
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).
Steps to reproduce the problem
Type eg (str) at the REPL prompt, then C-c C-d C-d.
Expected behavior
Invoke
cider-doc
in the REPL, pop to fully-populated buffer*cider-doc*
Actual behavior
Error message:
eval-expression: Wrong type argument: bufferp, "*cider-doc*"
(where
*cider-doc*
is the first non-list element ofspecial-display-buffer-names
)This is because code in function
cider-popup-display-buffer
falsely assumes that each element ofspecial-display-buffer-names
is a list. In fact and as documented, each element can be either a string or a list (thecar
of which is a string).Steps to reproduce the problem
Type eg
(str)
at the REPL prompt, thenC-c C-d C-d
.Fix
Change line 67 of
cider-popup.el
from:to:
I will submit a PR.
Environment & Version information
CIDER version information
Lein / Clojure CLI version
Leiningen 2.10.0 on Java 1.8.0_402 OpenJDK 64-Bit Server VM
Emacs version
GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) of 2024-01-11
Operating system
Linux **** 6.7.12-1-MANJARO #1 SMP PREEMPT_DYNAMIC Thu Apr 4 04:31:03 UTC 2024 x86_64 GNU/Linux
JDK distribution
openjdk version "1.8.0_402" OpenJDK Runtime Environment (build 1.8.0_402-b06) OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)