paredit-close-paren
sort of implies you're done editing that sexp, so any whitespace that's left at the end should be deleted. Plus, it's bound to an "editing" key (close-paren), so it's ok that it changes buffer content.
paredit-forward-up
(or backward-up with a negative prefix) is a movement command, so it shouldn't change buffer content.
Here's a use-case: (point is at the |
)
(let ((hi t))|
(forward-char 1)
)
- If you're done editing that
let
statement, then that newline (after theforward-char
) should be deleted, so you hit)
which moves you out of thelet
and cleans it up nice. - If you're not done editing that
let
, but you want to move out of it for now, then you may actually want to keep that newline (it makes it easier to move to the right place and it helps you remember there's unfinished business), so you useC-M-n
instead, which moves you out of thelet
without editing anything.