smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

sp-delete-pair documentation confusing

Open laMudri opened this issue 4 years ago • 2 comments

The documentation says:

If the point is behind a closing pair or behind an opening pair delete
it as a whole.  That is, {}| turns to {|, {| turns to |.  Can be
disabled by setting sp-autodelete-closing-pair and
sp-autodelete-opening-pair to nil.

If either of those variables are set to nil, what is the behaviour? Does the cursor get stuck? Does it move past the bracket? Does it also delete the matching bracket? All I can tell from experimenting is that if one or both of these are nil, then {|} turns into |} when backspace is pressed, rather than |.

laMudri avatar Jul 14 '21 18:07 laMudri

To be honest, I don't understand it either. There's also no tests for this feature and last it was touched was 2012. I think you can consider it deprecated :man_shrugging:.

Fuco1 avatar Jul 27 '21 12:07 Fuco1

Should it not then be simply removed?

pierre-rouleau avatar Oct 01 '21 18:10 pierre-rouleau