Closed braham-snyder closed 7 years ago
Use evil-sp-override
, bound to o in visual-state, to get around this edge-case.
If you want to pursue this further, the issue belongs over in the smartparens repo.
Let me add a bit more details. The problem happens because '
is the closing half of a pair, so when this token appears on its own smartparens says 'this region is unbalanced' and evil-smartparens shrinks the region in an attempt at DWIM.
How can we differentiate between a failed pair insertion and the use of '
in text? We would have to do semantic analysis to find out the meaning behind the text. Nevermind that this is hard, but it would also be so costly to do that it would leave the package unusable for the general case.
This is why I said this was an 'edge case', that we probably shouldn't invest much time in.
fair enough--it just wasn't clear to me what your stance on this was since I didn't see it documented anywhere
With
smartparens-strict-mode
and(require 'smartparens-config)
, safe operators can behave incorrectly on unmatched apostrophes in emacs lisp comments. For example,dd
(with point anywhere) on the following line:leaves:
Seems to be caused by the `' pair, here in
smartparens-config
: