Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Add parentheses to group -or predicates #2

merged 1 commit into from

2 participants


Add parentheses to group -or predicates:

find . ( -name ".rb" -or -name ".py" )

Without parentheses ffip-find-options are ignored.

@technomancy technomancy merged commit ba9ed43 into technomancy:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 23, 2011
  1. @vmihailenco
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 find-file-in-project.el
6 find-file-in-project.el
@@ -34,7 +34,7 @@
;; This library depends on GNU find.
;; This file provides a couple methods for quickly finding any file in
-;; a given project. Projects are defined in two ways. The first uses
+;; a given project. Projects are defined in two ways. The first uses
;; `locate-dominating-file'. First, if the `locate-dominating-file'
;; function is bound, it assumes you are using Emacs 23, in which case
;; you it will look for a `.dir-locals.el' file in an ancestor
@@ -112,7 +112,7 @@ directory they are found in so that they are unique."
(add-to-list 'file-alist file-cons)
(split-string (shell-command-to-string
- (format "find %s -type f %s %s"
+ (format "find %s -type f \\( %s \\) %s"
(or ffip-project-root
(error "no project root found"))
@@ -157,7 +157,7 @@ project-local-variables.el."
(if (featurep 'project) (project-root)
;; TODO: provide a list of files that can be fallen back upon
(ffip-locate-dominating-file default-directory ffip-project-file))))
(or project-root
(progn (message "No project was defined for the current file.")
Something went wrong with that request. Please try again.