Skip to content
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

Small improvements to lispy-eval #682

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

lane-s
Copy link

@lane-s lane-s commented Jul 7, 2024

First of all, thanks for the great package!

I've been using lispy for a long time, but when I recently switch over to doom emacs, I noticed lispy-eval wasn't working as I expected in the overlay mode. It was defaulting to using cider when it should've been using eros (for Common Lisp and emacs lisp). Also, the formatting included extra quotes. This PR fixes these issues.

I haven't checked the changes with clojure yet, but I suspect there's something broken there as well (cider is now insisting on a symbol argument for cider--display-interactive-eval-result).

lane-s added 2 commits July 7, 2024 10:53
We prioritize using eros if available, but we make
sure not to use it if we're in a clojure mode and cider
is installed.

This fixed an issue where lisp modes that didn't use cider
weren't able to display evaluation results with an overlay
because lispy was passing a string argumet to
cider--display-interactive-eval-result, which now requires
a symbol.
Since eros (at least at a9a92bdc6be0521a6a06eb464be55ed61946639c)
uses `format` to display the object we pass, we won't have a
correct result unless we use `read` here.
@lane-s
Copy link
Author

lane-s commented Jul 7, 2024

Ah, someone's already made a PR for the cider part. I expect it will conflict with mine, but I'm happy to resolve the conflicts if #672 gets merged first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant