vim-sexp icon indicating copy to clipboard operation
vim-sexp copied to clipboard

Capture and emit should not treat comments as elements

Open snoe opened this issue 10 years ago • 1 comments

When capturing tail on a top level form, capture will place the bracket at the end of subsequent comments. Similar behavior can be seen with emit-tail. This seems surprising to me as it unbalances forms. Capture and emit should probably ignore comments altogether and act on the next real element.

Given the following with the cursor on foo.

(foo) ;comment-a
bar
;; comment-b
zap

Capture tail twice should produce

(foo ;comment-a
bar
;; comment-b
zap)

snoe avatar Apr 16 '15 08:04 snoe

I agree; this is actually on a todo list in the autoload script.

I'll take a look tonight as I finish up #10. Thanks!

guns avatar Apr 17 '15 21:04 guns