Function: ede-target-in-project-p
ede-target-in-project-p is a byte-compiled function defined in
ede.el.gz.
Signature
(ede-target-in-project-p ARG &rest ARGS)
Implementations
((proj ede-project) target) in `ede.el'.
Is PROJ the parent of TARGET? If TARGET belongs to a subproject, return that project file.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/ede.el.gz
(cl-defmethod ede-target-in-project-p ((proj ede-project) target)
"Is PROJ the parent of TARGET?
If TARGET belongs to a subproject, return that project file."
(if (and (slot-boundp proj 'targets)
(memq target (oref proj targets)))
proj
(let ((s (oref proj subproj))
(ans nil))
(while (and s (not ans))
(setq ans (ede-target-in-project-p (car s) target))
(setq s (cdr s)))
ans)))