emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/merge-cedet-tests 702d44d 139/316: Fix how the tar


From: Edward John Steere
Subject: [Emacs-diffs] scratch/merge-cedet-tests 702d44d 139/316: Fix how the target file name is created
Date: Sat, 28 Jan 2017 09:09:55 +0000 (UTC)

branch: scratch/merge-cedet-tests
commit 702d44db8f913d626aae65777eff03aa37689970
Author: Eric Ludlam <address@hidden>
Commit: Edward John Steere <address@hidden>

    Fix how the target file name is created
    
    * test/manual/cedet/cedet/ede/detect-dirtest.el (ede-dirmatch-load):
     Fix how target file name was created. (project-rescan): New.
---
 test/manual/cedet/cedet/ede/detect-dirtest.el |   32 ++++++++++++-------------
 1 file changed, 15 insertions(+), 17 deletions(-)

diff --git a/test/manual/cedet/cedet/ede/detect-dirtest.el 
b/test/manual/cedet/cedet/ede/detect-dirtest.el
index 483435a..2825369 100644
--- a/test/manual/cedet/cedet/ede/detect-dirtest.el
+++ b/test/manual/cedet/cedet/ede/detect-dirtest.el
@@ -37,23 +37,15 @@
 Return nil if there isn't one.
 Argument DIR is the directory it is created for.
 ROOTPROJ is nil, sinc there is only one project for a directory tree."
-  (let* ((proj (ede-directory-get-open-project dir)))
-    (if proj
-       proj
-
-      ;; Create a new project here.
-      (let* ((name (file-name-nondirectory (directory-file-name dir)))
-            (cpp (expand-file-name (concat name ".cpp") dir)))
-       (setq proj (ede-detect-test-dirmatch-project
-                   name
-                   :name name
-                   :directory (file-name-as-directory dir)
-                   :file cpp
-                   :targets nil))
-       ;;(message "Create dirtest project type!")
-       proj
-       )
-      )))
+  ;; Create a new project here.
+  (let* ((name (file-name-nondirectory (directory-file-name dir)))
+        (cpp (expand-file-name (concat name ".cpp") dir)))
+    (ede-detect-test-dirmatch-project
+     name
+     :name name
+     :directory (file-name-as-directory dir)
+     :file cpp
+     :targets nil)))
 
 (defmethod ede-project-root ((this ede-detect-test-dirmatch-project))
   "Return my root."
@@ -81,6 +73,12 @@ ROOTPROJ is nil, sinc there is only one project for a 
directory tree."
   "Return PROJ, for handling all subdirs below DIR."
   proj)
 
+(defmethod project-rescan ((this ede-detect-test-dirmatch-project))
+  "Don't rescan this project from the sources."
+  ;;(message "Rescan for dirmatch test project run.")
+  nil)
+
+
 ;;(message "Loaded detect-dirtest.el")
 
 (provide 'cedet/ede/detect-dirtest)



reply via email to

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