Commits

Mike Steder committed 846c266

Merged in changes from work to msproject find

Comments (0)

Files changed (1)

emacs.d/msproject.el

 ;;   - arbitrary django project: manage.py
 ;;   - arbitrary twisted project: twisted (twisted plugin directory?)
 
-(defun msproject-project-root-helper (filename remaining)
-  (delq nil (locate-dominating-file (if buffer-file-name buffer-file-name ".") filename)))
+
 
 (defun msproject-project-root ()
   (let (root)
     (setq root
-          (msproject-project-root-helper
-           (car msproject-root-files)
-           (cdr msproject-root-files)
+          (car (delq nil (mapcar (lambda (f) (locate-dominating-file (if buffer-file-name buffer-file-name ".") f)) msproject-root-files)))
+                
            )
-          )
     (if (eq root nil)
         "."
       root)