Function: ede--detect-ldf-rootonly-predicate

ede--detect-ldf-rootonly-predicate is a byte-compiled function defined in detect.el.gz.

Signature

(ede--detect-ldf-rootonly-predicate DIR)

Documentation

Non-nil if DIR contain any known EDE project types.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede/detect.el.gz
;;; Root Only project detect
;;
;; For projects that only have a detectable ROOT file, but may in fact
;; contain a generic file such as a Makefile, we need to do a second scan
;; to make sure we don't miss-match.
(defun ede--detect-ldf-rootonly-predicate (dir)
  "Non-nil if DIR contain any known EDE project types."
  (if (ede--detect-stop-scan-p dir)
      (throw 'stopscan nil)
    (let ((types ede-project-class-files))
      ;; Loop over all types, loading in the first type that we find.
      (while (and types (not ede--detect-found-project))
	(if (and
	     (oref (car types) root-only)
	     (ede-auto-detect-in-dir (car types) dir))
	    (progn
	      ;; We found one!
	      (setq ede--detect-found-project (car types)))
	  (setq types (cdr types)))
	)
      ede--detect-found-project)))