roman/evil-paredit

Delete line quirks

dan-f opened this issue · 0 comments

Hi,

I've noticed two quirks with the dd command:

  • If I delete a line with balanced parens, i.e.:

    (lambda (x)
    (cond
    ((null? x) #t) ;; delete this line w/ dd
    (...)))

... and then try to paste it on a new line, it will sandwich the expression in-line between the text preceeding the new cursor position and the text following the new cursor position. I'm new to paredit-mode, but it doesn't seem like this should be the case.

  • Also,
    ing an unbalanced line doesn't work; paredit complains ("mismatched parenthesis depth: ..."). However, in Emacs state, killing a line deletes all the code between the preceding parenthese and the closing one.

Not sure if these are bugs or the intended behavior, but I figured I'd check.