DogLooksGood / parinfer-mode

Parinfer for Emacs :)
GNU General Public License v3.0
407 stars 33 forks source link

Extra quote causing problems #55

Open eggsyntax opened 6 years ago

eggsyntax commented 6 years ago

Hi,

This is working really well for me! With one exception: Say that I type (println "foo"). It actually comes out as (println "foo")") -- when I type the closing quote, an extra quote is created (so at that point it's (println "foo"" with the cursor before the final quote), and then typing the closing paren ends up between those two final quotes. This causes hard-to-track-down bugs in the code, because an indeterminate amount of extra stuff is considered quoted.

I'm on Ubuntu/Gnome, on develop branch, GNU Emacs 25.1.1. Happy to provide any other stats if it'd be helpful.

Thanks for all your work on this!

eggsyntax commented 6 years ago

Conceivably related to https://github.com/syl20bnr/spacemacs/issues/9491 ?

That's pure SWAG, though.

DogLooksGood commented 6 years ago

@eggsyntax Sorry for reply so late.

parinfer-mode will not work with smart-parens enabled.

also you can provide a piece of text that help me reproduce this issue, and a list of minor modes(get by C-h m).

dwhite44 commented 6 years ago

In my emacs config, I made it disable smartparens on parinfer-mode-enable-hook and enable smartparens on the parinfer-mode-disable-hooks. Seems to be working well for me.

eggsyntax commented 6 years ago

@DogLooksGood no problem, thanks for the reply! I don't have parinfer-mode installed anymore, but the example in the original post was the most minimal one I could find. It makes sense that it would be just the problem of trying to run parinfer with smartparens activated. Thanks!