rksm / paredit.js

Generic reader and editor for s-expressions.
MIT License
107 stars 21 forks source link

paredit-kill doesn't kill to the end of the sexp #11

Closed pbiggar closed 8 years ago

pbiggar commented 8 years ago

I'm using Atom's lisp-paredit, and I believe their broken implementation of paredit-kill is paredit.js' implementation. (I've only come to that conclusion from looking at the code, not trying it).

paredit-kill should go from the cursor to the end of the enclosing sexp. However, it only seems to kill the next form.

eg

(a| b c) ; should kill b and c

actually edits to

(a c)

instead of

(a)

pbiggar commented 8 years ago

Looking into this further, this is caused by the param count in killSexp. That implies the problem is downstream (though unclear why the default is 1), so going to close this.