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.81k stars 193 forks source link

Smartparens quoting confused in ein notebooks #1005

Open jgarvin opened 4 years ago

jgarvin commented 4 years ago

Expected behavior

Quotes should only be counted within a cell, not the whole buffer. I think smartparens is unaware of ein potentially mixing multiple language modes in the same buffer.

Actual behavior

Quotes in other previous cells, even cells of other languages, cause smartparens to start trying to insert escaping.

Steps to reproduce the problem

Create an ein python3 notebook or download one. Make a markdown cell. Put some text with an apostrophe in it. Make a python cell. Try writing a single quoted string. Observe smartparens inserting escapes.

Environment & version information


jgarvin commented 4 years ago

This is possibly related but not sure:

https://github.com/syl20bnr/spacemacs/issues/5491