Function: ede-expand-filename-local

ede-expand-filename-local is a byte-compiled function defined in files.el.gz.

Signature

(ede-expand-filename-local ARG &rest ARGS)

Implementations

(ede-expand-filename-local (THIS ede-project) FILENAME) in `ede/files.el'.

Expand filename locally to project THIS with filesystem tests.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede/files.el.gz
(cl-defmethod ede-expand-filename-local ((this ede-project) filename)
  "Expand filename locally to project THIS with filesystem tests."
  (let ((path (ede-project-root-directory this)))
    (cond ((file-exists-p (expand-file-name filename path))
	   (expand-file-name filename path))
	  ((file-exists-p (expand-file-name  (concat "include/" filename) path))
	   (expand-file-name (concat "include/" filename) path)))))