abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.21k stars 132 forks source link

special-lispy-raise removes ,@ quote #351

Open Wilfred opened 7 years ago

Wilfred commented 7 years ago

Given the following s-expression, where | is point:

`(foo ,@(bar |(baz)))

Pressing r (bound to special-lispy-raise) gives me the following:

`(foo (baz))

whereas I was expecting:

`(foo ,@(baz))

(which is the behaviour of paredit-raise-sexp)

abo-abo commented 7 years ago

This is expected behavior for me. I see ,@ as part of ,@(, so when that one gets removed by r, the rest has to go too.

But it might be interesting to have r produce:

`(foo ,@|(bar))

And another r give:

`(foo |(bar))
Wilfred commented 7 years ago

Yep, that was the behaviour I had in mind. I think that would conveniently support both use cases.