-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Add negative prefix to cider-refresh for refresh only #1893
Comments
Sounds reasonable to me. |
Well, those functions are clojure code written as strings in elisp. Seems like they won't be too general across all projects. Does it make sense to have the prefix argument invoke the refresh functions and the default refresh behavior not call them? Would you prefer to prefix invoke the refresh functions or prefix escape them, I guess. |
No, cider just expects a name which resolves to a function, .e.g
Not sure why that matters, I want them to not be called when I give negative prefix. In any event, even though the name is the same, what
We already have a prefix and a double prefix behavior, which we can't change without upsetting other people. So I don't want to change the current prefix options, just add another variant. |
I hadn't thought of their use like that, expez. The examples that I've seen have been defn forms written out. I like the way you use it. Thanks for explaining that. And I missed that they already had prefix and double prefix. I thought there was only an invocation and the prefix option was blank. I'll get on this. |
So I've got the patch ready, I'm just wondering about a convention:
This is |
Fixed by #1899. |
Most of the time I want
cider-refresh
to callcider-refresh-before-fn
andcider-refresh-after-fn
but sometimes I only want the refresh. I've been using advice to add a negative arity branch tocider-refresh
and it's pretty nice.P.S. I've never been in a situation where I wanted to run
before-fn
orafter-fn
only so this won't lead to an explosion in hard to remember prefixes.The text was updated successfully, but these errors were encountered: