Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Be less retarded. Seriously, that was a stupid bit of code.

  • Loading branch information...
commit 0319c5523ef8d236bb8440a779a5f475ca3b6d71 1 parent 9bf0d7c
@wfarr wfarr authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 find-file-in-project.el
View
7 find-file-in-project.el
@@ -152,10 +152,9 @@ project-local-variables.el."
(if (featurep 'project)
(project-root)
(if (functionp 'locate-dominating-file)
- (cond ((locate-dominating-file default-directory ".dir-locals.el")
- (locate-dominating-file default-directory ".dir-locals.el"))
- ((locate-dominating-file default-directory ".dir-settings.el")
- (locate-dominating-file default-directory ".dir-settings.el")))
+ (or
+ (locate-dominating-file default-directory ".dir-locals.el")
+ (locate-dominating-file default-directory ".dir-settings.el"))
(require 'project-local-variables)
(plv-find-project-file default-directory "")))))
(if project-root
Please sign in to comment.
Something went wrong with that request. Please try again.