mikavilpas / evil-lispy

precision Lisp editing with Evil and Lispy
79 stars 5 forks source link

Recovering from "Scan error: Unbalanced parenthesis"? #13

Closed bpstahlman closed 8 years ago

bpstahlman commented 8 years ago

I have the following snippet of (pointless) scheme code:

(foo (foo
      43
      (+ 41 (foo 1 2

Evil-lispy will not allow me to close the parens at the end of the 3rd line. Can't remember how they got unbalanced, but when it gets to that state, is there a way to force a re-balancing, or perhaps force the insertion manually? More generally, what is evil-lispy's philosophy regarding balanced parens?

mikavilpas commented 8 years ago

Ah, I hit this case every so often too. With evil-mode, you can do <insert-state> C-q ) to insert a literal paren. I think lispy expects the programmer to fix these kinds of errors himself.

bpstahlman commented 8 years ago

Ah yes. That did it. Thanks. Brett S.

On Sep 7, 2016 2:05 PM, "Mika Vilpas" notifications@github.com wrote:

Ah, I hit this case every so often too. With evil-mode, you can do C-q ) to insert a literal paren. I think lispy expects the programmer to fix these kinds of errors himself.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sp3ctum/evil-lispy/issues/13#issuecomment-245383691, or mute the thread https://github.com/notifications/unsubscribe-auth/AC7pQDYNN0jl6s5RDFal4bMkJMSG8tHYks5qnwr4gaJpZM4J0YPf .