eros icon indicating copy to clipboard operation
eros copied to clipboard

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

Open bo-tato opened this issue 1 year ago • 0 comments

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. https://github.com/bo-tato/eros/commit/b255f9dc3f4e16ba736bcae38873944ff70c287b

bo-tato avatar Aug 21 '23 05:08 bo-tato