Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.82k stars 194 forks source link

`\"` produces weird behavior #944

Open alienbogart opened 5 years ago

alienbogart commented 5 years ago

Expected behavior

Typing \" should do nothing.

Actual behavior

Typing \" generates \"\"

Steps to reproduce the problem

Typing \" with smartparens enabled.

Environment & version information

Fuco1 commented 5 years ago

Yea, this is by design, but I think it makes more sense to only allow this in string contexts by default.

alienbogart commented 5 years ago

I'm just a noob, but what's the usefulness of it in Python? I haven't found this syntax in my study material. Since there are other ways to escape a ", maybe it would be useful to have a variable to control this kind of behavior.