Closed sherrman closed 10 years ago
Thanks. This seems easy enough to reproduce. Unfotunately, I have very little time to analyse. Maybe you can find someone who knows elisp to edebug autopair-pair-p and propose a fix.
Discussion will continue in the pull request.
This is the reliable way for me to reproduce this error, in some more simple states it will also start returning errors. Empty file in js2-mode:
With the cursor at
[CURSORHERE]
, open a parenthesis. The functionautopair-pair-p
returns with a(args-out-of-range 25 49)
error created byforward-sexp
. The first error handler tries a string compare and craps out with Wrong type argument: stringp, 25.