Skip to content

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.

@Archenoth Archenoth force-pushed the master branch 4 times, most recently from d1f6200 to ec1a03d Compare September 17, 2015 22:02
@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