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

Fix pe/follow-current-open when not in project buffer #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Archenoth
Copy link

When pe/follow-current is set to t, if you visit any buffer that is not in a project and you have projectile installed, pe/follow-current-open displays an error in the minibuffer every time the timer function is run...

Error running timer `pe/follow-current-open': (error "You're not in a project") [56 times]

The error comes from Projectile when it is called with the default project root command on line 292 of project-explorer.el.

This pull request makes the timer function only try to follow the current project if we are in one.

The reason I changed pe/follow-current-open and not pe/project-root-function-default is because pe/follow-current-open appears to be the only location where this error isn't useful, and the projectile command can short-circut the logic in project-explorer so that it will be slightly more future-proof.

@tonycpsu
Copy link

+1, this is very useful. @sabof, do you care to merge this?

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.

2 participants