emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/last-cedet-merge 2b42323 35/37: EDE: Fix for proje


From: David Engster
Subject: [Emacs-diffs] scratch/last-cedet-merge 2b42323 35/37: EDE: Fix for project detection
Date: Sun, 22 Jan 2017 21:26:33 +0000 (UTC)

branch: scratch/last-cedet-merge
commit 2b42323018113a8dae1043a8792cd952b95be941
Author: Edward Steere <address@hidden>
Commit: David Engster <address@hidden>

    EDE: Fix for project detection
    
    * lisp/cedet/ede/detect.el (ede--detect-ldf-root-predicate): Make sure
     updir is not nil before trying to detect it.
    
    Copyright-paperwork-exempt: yes
---
 lisp/cedet/ede/detect.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/cedet/ede/detect.el b/lisp/cedet/ede/detect.el
index 54d48a2..00dbd3d 100644
--- a/lisp/cedet/ede/detect.el
+++ b/lisp/cedet/ede/detect.el
@@ -143,7 +143,8 @@ Return a cons cell:
            ;; If it didn't change, then obviously this must be the top.
            t
          ;; If it is different, check updir for the file.
-         (not (ede-auto-detect-in-dir ede--detect-nomatch-auto updir))))))
+         (or (null updir)
+             (not (ede-auto-detect-in-dir ede--detect-nomatch-auto updir)))))))
 
 (defun ede--detect-scan-directory-for-project-root (directory auto)
   "If DIRECTORY has already been detected with AUTO, find the root.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]