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

Prefer project-root in favor of project-roots (#105) #148

Merged
merged 1 commit into from Feb 1, 2023

Conversation

jobor
Copy link
Contributor

@jobor jobor commented Jan 16, 2023

The latter has been deprecated.

If project-root is not bound, use project-roots like before.

Copy link
Owner

@dajva dajva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pr. Sorry for the late reply.
There is an error in the code, otherwise it looks fine. See inline comment for details.

rg.el Outdated
((fboundp 'project-root)
(project-root project))
((fboundp 'project-roots)
(car (project-roots) project)))))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ending parenthesis is at the wrong place. Should be (car (project-roots project)), I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch, sorry. I clearly never tested this code path.
Fixed.

The latter has been deprecated.

If project-root is not bound, use project-roots like before.
@coveralls
Copy link

Coverage Status

Coverage: 82.634% (+0.05%) from 82.583% when pulling aca92ec on jobor:prefer-project-root into 14d4c6a on dajva:master.

@dajva dajva merged commit e7afc15 into dajva:master Feb 1, 2023
@jobor jobor deleted the prefer-project-root branch February 1, 2023 21:20
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.

None yet

3 participants