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

Improved project API #184

Merged
merged 3 commits into from Mar 22, 2013
Merged

Improved project API #184

merged 3 commits into from Mar 22, 2013

Conversation

senny
Copy link
Owner

@senny senny commented Mar 21, 2013

1.) bugfix if default-directory is "~/"

This resulted in an endless loop. We now expand the path to git rid of this edge-case.

2.) (cabbage-project-p) checks if a project is found

This is a simple function to check if cabbage can detect a project or not. It must be used as a guard to prevent calls into the project API when no root can be found.

3.) (cabbage-project-expand-path) builds relative project paths.

This function is similar to Emacs expand-path with the difference that it builds relative paths to the current (cabbage-project-root). Note that this function throws an error when no (cabbage-project-root) can be found.

@senny
Copy link
Owner Author

senny commented Mar 21, 2013

@jone could you review this one?

jone added a commit that referenced this pull request Mar 22, 2013
@jone jone merged commit e7761a7 into master Mar 22, 2013
@jone
Copy link
Collaborator

jone commented Mar 22, 2013

yeah 👍

@jone jone deleted the project_api_improvements branch March 22, 2013 08:03
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

2 participants