smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

Request: sp-barf-hybrid-sexp

Open Wasabichicken opened this issue 9 years ago • 3 comments

For C/C++ modes, sp-slurp-hybrid-sexp is a godsend. It solves several issues I've got with the regular sp-forward-slurp-sexp, e.g. weird handling of the C++ arrow (->) operator and strange insertion of whitespace (see https://www.reddit.com/r/emacs/comments/451wn7/smartparens_for_clike_modes/)

However, there doesn't seem to be a sp-barf-hybrid-sexp available that undoes what sp-slurp-hybrid-sexp does. Since I suck at lisp and the SP source looks strange to me, consider this a humble feature request.

Wasabichicken avatar Feb 10 '16 21:02 Wasabichicken

Agreed, there's no way of doing this currently and it would be nice.

Wilfred avatar Feb 11 '16 22:02 Wilfred

FWIW, I explicitly fixed the whitespace issue, but only for Python, in #561. I don't think it's worth doing in general though -- for non-lisps the hybrid-sexp commands are better.

Wilfred avatar Feb 11 '16 23:02 Wilfred

and the SP source looks strange to me

don't worry, it's like that for everyone.

Fuco1 avatar Feb 12 '16 16:02 Fuco1