parinfer

shaunlebron 2022-09-20T17:33:05.474649Z

Hi @darrickw are you still using that emacs plugin? I’ve been using parinfer-rust for vim and I only fight it sometimes and mostly works. Has that been your experience with emacs too?

Darrick Wiebe 2022-09-20T17:42:16.313859Z

I find parinfer-rust to be awful. The parinfer-mode is much better. I never need to fight with it. It never gets messed up by comments, etc. It just gets a little slow in multi-hundred line blocks of code.

shaunlebron 2022-09-20T18:46:05.752249Z

oh it uses an elisp implementation here: https://github.com/kisaragi-hiu/parinfer-mode/blob/main/parinferlib.el

shaunlebron 2022-09-20T18:47:30.074339Z

we were considering having the rust port be a canonical version shared by plugins since it was seeing some success

shaunlebron 2022-09-20T19:21:55.066209Z

@darrickw what is the issue with comments in parinfer-rust

Darrick Wiebe 2022-09-20T19:22:48.927449Z

The rust version can't distinguish comments, strings, regexps, ... It just blindly messes up your code.

Darrick Wiebe 2022-09-20T19:23:06.008149Z

It seemed unmaintained, too, but I haven't looked in a couple months.

shaunlebron 2022-09-20T19:31:39.687499Z

Strange, I use it all the time and haven't seen that. I wonder what else was involved on the emacs side of it, or what was added on the vim side

Darrick Wiebe 2022-09-20T23:53:38.118719Z

Yes, it was the Emacs version. It's possible that the underlying rust engine was good and just the emacs plugin was broken. I switched and haven't looked back.