Fix interpretation of the :include property as a list of file names

This commit is contained in:
Carsten Dominik 2010-08-16 17:27:25 +02:00
parent ea16ef9535
commit 3529be82ef
1 changed files with 6 additions and 1 deletions

View File

@ -471,7 +471,12 @@ matching filenames."
(i (plist-get (cdr prj) :include))
(xm (concat "^" b (if r ".+" "[^/]+") "\\.\\(" x "\\)$")))
(when (or
(and i (string-match i filename))
(and
i
(member filename
(mapcar
(lambda (file) (expand-file-name file b))
i)))
(and
(not (and e (string-match e filename)))
(string-match xm filename)))