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
smartparens version: 20200105.1259
Active major-mode: ein:notebook-multilang-mode
Smartparens strict mode: nil
Emacs version (M-x emacs-version): GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.3) of 2019-01-20
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
smartparens
version: 20200105.1259major-mode
:ein:notebook-multilang-mode
M-x emacs-version
): GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.3) of 2019-01-20