-
-
Notifications
You must be signed in to change notification settings - Fork 649
cider-popup-buffer-display
: honor special-display-buffer-names
if customized for a given CIDER buffer name
#3568
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
… customized for a given CIDER buffer name
I've never heard of this Emacs functionality, but now that we support it we should probably mention it somewhere in the docs. Even I'm not sure why would the end users want to play with this right now, so some examples would be welcome. |
I considered it, but most of all I didn't find an adequate page in the manual. How about: for each possible target (Inspector, etc), mention in their specific page:
|
I'll merge this so as not to pile up PRs (few incoming), but LMK about the best page(s) to doc this |
That sounds reasonable. It can also mentioned only once around the popup-related settings. |
Also according to the docs, variable
|
Thanks! I think I know the cause - there were two kinds of code paths for raising popups. Checking |
Anyway, what I find odd is that you perceive any difference given that your The code branch that does not handle |
The only difference I can see is that function |
Good catch - that was it! Pushing to master now |
I'll also see about the deprecated var. The old one has worked for me for some 5 years but yeah, we should primarily support the modern alternative That can wait though |
I've been using |
I'll have to check it out. Had you successfully used it with cider buffers? |
Yes, sure. Here's the relevant part of my config if you're curious (pretty big, but it's easy to spot CIDER-related buffers): https://git.sr.ht/~rrudakov/dotfiles/tree/feature/dotfiles-ng/item/templates/emacs.d/emacs.org#L630-859 Also:
|
CIDER only supports Emacs 26+, so it's pointless to support the legacy variable IMO (so we can completely revert those changes). I didn't know about it, but I certainly know about |
I'll revert it today after migrating my personal stuff |
Before this PR, if I
(add-to-list 'special-display-buffer-names '("*cider-inspect*" my/display-fn))
, the buffer would be rendered twice - once through one's custom function, and once again through CIDER.I verified it works as intended.
Cheers - V