joaotavora / autopair

Automagically pair braces and quotes in emacs like TextMate
208 stars 35 forks source link

autopair-newline and ada-mode conflict #53

Closed corentincam closed 6 years ago

corentincam commented 6 years ago

Under ada-mode, when using the command autopair-newline (binded to RET), emacs raises a "Variable binding depth exceeds max-specpdl-size" error.

joaotavora commented 6 years ago

@CorentinCAM. I can't reproduce from this from the information you've given me. There's probably something else in your configuration. Can you reproduce this from a clean emacs -Q run?

Anyway I very very strongly recommend that you replace autopair by something which is in emacs since version 24.4 (if I'm not mistaken), which is M-x electric-pair-mode. You see, I designed that to replace autopair it does everything autopair does and better. And, almost surely, it doesn't have this problem.

I'm closing, but if you don't agree I can reopen.

corentincam commented 6 years ago

Thanks for the answer, electric-pair-mode works indeed.