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

scan-error in eros--make-result-overlay #10

Open
bo-tato opened this issue Aug 21, 2023 · 0 comments
Open

scan-error in eros--make-result-overlay #10

bo-tato opened this issue Aug 21, 2023 · 0 comments

Comments

@bo-tato
Copy link

bo-tato commented Aug 21, 2023

eros--make-result-overlay calls backward-sexp which calls (forward-sexp -1) whose documentation says:

If unable to move over a sexp, signal scan-error with three arguments: ...

This means when you try to use eros--make-result-overlay when the cursor is at the start of a sexp, you can get a scan error, for example:
With the cursor on the f of (function arg arg), it fails with scan-error.

I just wrapped backward-sexp in ignore-errors, I don't know if there's a better fix.
bo-tato@b255f9d

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

No branches or pull requests

1 participant