-
-
Notifications
You must be signed in to change notification settings - Fork 651
Use "(ns $repl-ns)" in dummy file when ns form not found #815
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
Conversation
|
I can see the usefulness of this, but I'm worried that it won't be very obvious to the users how we're determining the ns to use. Perhaps we should have commands about setting the scratch buffer ns and displaying it (or something similar). |
|
How about a message "Using XXX namespace"? |
How about |
|
Might be a bit annoying to get this message for each evaluation. |
|
Yes, that's a good idea. |
|
We should also display the current namespace in the mode line. |
ea9e614 to
938675a
Compare
|
I have added the stripping of To wrap up, the semantics of the interactive evaluation is that all evaluation pins on current ns form. If no such form found, use REPL's current ns instead. I think all other tools should better have the same semantics. |
Yes, |
- Use "(ns $repl-ns)" in dummy file when ns form not found - Use (buffer-name) as file name in buffers not visiting a file - Take into account buffer names in cider-find-file (useful for buffers not visiting a file)
|
I am finished with this one. All changes in the first commit are aimed towards improving interactive eval functionality in various non-standard contexts ( |
Use "(ns $repl-ns)" in dummy file when ns form not found
|
👍 |
Useful in scratch buffers with no ns.