xah-fly-keys icon indicating copy to clipboard operation
xah-fly-keys copied to clipboard

[leader e] error on mismatched parenthese

Open gatoWololo opened this issue 8 years ago • 2 comments

If somewhere in a file I have a mismatched ')' parentheses and I try to delete it in command mode with "e" I get the following error: "forward-sexp: Scan error: "Unbalanced parentheses","

I believe this is a bug.

gatoWololo avatar Feb 26 '17 02:02 gatoWololo

i was thinking that's intentional. That is, brackets are meant to always be matched, but when deleting unmatched ones, press 5 (delete-char). (such as smilie, or in complex regex.)

but maybe should at least make it a nice message instead of lisp error. (the issue about not doing this right away is that the code needs to check for bracket match first, kinda a redundant step)

what do you think?

I'll think about and come up with a solution. Thanks.

xahlee avatar Feb 26 '17 04:02 xahlee

That makes sense. I was using 'e' for all my deleting needs before.

Thanks you for making xah-fly-keys.

gatoWololo avatar Feb 26 '17 15:02 gatoWololo