-
-
Notifications
You must be signed in to change notification settings - Fork 649
cider-eval-list-at-point eval's outer sexp #3318
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
Comments
it seems this is something to do with evil mode, if I turn off evil mode cider-eval-list-at-point works as expected |
I found this thread talking about similar behaviour with evil/cider: https://www.reddit.com/r/emacs/comments/10f3eff/comment/j4wrt6t/ they link this source which is where evil is modifying the last-sexp behaviour: https://github.com/emacs-evil/evil/blob/8a05eb99c6ee60eb502a2c586fa2e771a513c417/evil-integration.el#L241-L251 so if you enable I "fixed" it for me by adding
obviously I'm not proposing making that change in cider as it'd break non-evil users. I'm new with emacs, maybe someone more experienced can suggest the right way to fix this or the right way for me to get the behaviour I want. Feel free to close this issue cause it's really with evil mode and not cider, but maybe there is other cider users with evil mode that can suggest how to fix this |
that
and replace with:
And I think this is actually a minor improvement, as previously Edit: oops, I can't just goto to next ), I have goto next matching ), I changed |
I think there are just sexp-based helper functions currently. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed soon if no further activity occurs. Thank you for your contribution and understanding! |
This issue been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it. |
Expected behavior
On this code
(println (+ 1 (* 2 3)))
with the cursor anywhere in (* 2 3) we expect to eval 6, as I understand from: #2881
Actual behavior
with the cursor anywhere from
* 2 3)
we get 7, from evaling(+ 1 (* 2 3))
, and on the opening(
of(* 2 3)
it evals the outerprintln
CIDER version information
Emacs version
28.1
Operating system
Ubuntu 22.04.1 LTS
JDK distribution
OpenJDK 64-Bit Server VM Temurin-17.0.5+8
The text was updated successfully, but these errors were encountered: