Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capture and emit should not treat comments as elements #13

Open
snoe opened this issue Apr 16, 2015 · 1 comment
Open

Capture and emit should not treat comments as elements #13

snoe opened this issue Apr 16, 2015 · 1 comment

Comments

@snoe
Copy link

snoe commented Apr 16, 2015

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)
@guns
Copy link
Owner

guns commented Apr 17, 2015

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants