Function: ede-directory-project-p
ede-directory-project-p is a byte-compiled function defined in
files.el.gz.
Signature
(ede-directory-project-p DIR &optional FORCE)
Documentation
Return a project description object if DIR is in a project.
Optional argument FORCE means to ignore a hash-hit of nomatch.
This depends on an up to date ede-project-class-files variable.
Any directory that contains the file .ede-ignore will always
return nil.
Consider using ede-directory-project-cons instead if the next
question you want to ask is where the root of found project is.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/ede/files.el.gz
;;; DIRECTORY-PROJECT-P, -CONS
;;
;; These routines are useful for detecting if a project exists
;; in a provided directory.
;;
;; Note that -P provides less information than -CONS, so use -CONS
;; instead so that -P can be obsoleted.
(defun ede-directory-project-p (dir &optional force)
"Return a project description object if DIR is in a project.
Optional argument FORCE means to ignore a hash-hit of `nomatch'.
This depends on an up to date `ede-project-class-files' variable.
Any directory that contains the file .ede-ignore will always
return nil.
Consider using `ede-directory-project-cons' instead if the next
question you want to ask is where the root of found project is."
;; @TODO - We used to have a full impl here, but moved it all
;; to ede-directory-project-cons, and now hash contains only
;; the results of detection which includes the root dir.
;; Perhaps we can eventually remove this fcn?
(let ((detect (ede-directory-project-cons dir force)))
(cdr detect)))