Given this code:
;; Foo
(do foo)
;; Bar
(do bar)
;; Baz
(do baz)
Running drag sexp backward on the last form (or drag sexp forward on the second form) results in this (note the bar comment is now adjacent to (do baz):
;; Foo
(do foo)
;; Bar
(do baz)
;; Baz
(do bar)
I would've expected at least this (i.e. dragging ignores the comments):
;; Foo
(do foo)
;; Bar
(do bar)
(do baz)
;; Baz
Or even better:
;; Foo
(do foo)
;; Baz
(do baz)
;; Bar
(do bar)
I not infrequently have comments above forms, so when I drag them around I end up having to go back and copy paste the comments separately, or I just end up undoing and copy-pasting the whole chunk instead of dragging.
Given this code:
Running drag sexp backward on the last form (or drag sexp forward on the second form) results in this (note the bar comment is now adjacent to
(do baz):I would've expected at least this (i.e. dragging ignores the comments):
Or even better:
I not infrequently have comments above forms, so when I drag them around I end up having to go back and copy paste the comments separately, or I just end up undoing and copy-pasting the whole chunk instead of dragging.