Skip to content

Attributes beginning of defun #316

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

Closed
wants to merge 5 commits into from
Closed

Attributes beginning of defun #316

wants to merge 5 commits into from

Conversation

mookid
Copy link
Contributor

@mookid mookid commented Jul 19, 2019

Typical scenario where this can be useful:

I want to mark a test (of a type with a bunch of derive statements) to move some code around. Calling mark-defun (C-M-h) does not select the attribute (#[test] or #[derive(...)], respectively).

This tries to fix this state of affair.

This is still WIP. I'll try to fix #299 in the same.

@rust-highfive
Copy link

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Contributor

JFYI I'm on vacation and probably won't look at this for a few weeks at best! But thanks for the PR :)

@nikomatsakis
Copy link
Contributor

This looks reasonable enough to me. I'm not really an elisp expert by any means. I'm not sure if it'll work with more complex attributes like #[foo(baz="blah")], but I guess that's ok. I appreciate that there are some tests. =) I'm happy to merge once tests are passing.

@nikomatsakis
Copy link
Contributor

Removing myself as assignee =)

@nikomatsakis nikomatsakis removed their assignment Sep 23, 2019
@mookid mookid closed this Sep 29, 2021
@mookid mookid deleted the attributes-beginning-of-defun branch September 29, 2021 23:56
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

Successfully merging this pull request may close these issues.

Bad indentation after "where" clause and "#[test]" attribute
3 participants