]> code.delx.au - gnu-emacs/commitdiff
Minor CEDET fixes
authorStephen Leake <stephen_leake@stephe-leake.org>
Tue, 27 Oct 2015 15:35:15 +0000 (10:35 -0500)
committerStephen Leake <stephen_leake@stephe-leake.org>
Tue, 27 Oct 2015 15:41:12 +0000 (10:41 -0500)
* lisp/cedet/cedet-global.el (cedet-gnu-global-gtags-call): Handle
warnings from gtags about invalid options.
(cedet-gnu-global-create/update-database): Do incremental update
properly.

* lisp/cedet/ede/generic.el (ede-enable-generic-projects): Get monotone
root right.

lisp/cedet/cedet-global.el
lisp/cedet/ede/generic.el

index 3773ba09f32bfba34325d221480d40225c099c35..3ceed5d3b54a067db78ebfc601aae4f3199b2b0b 100644 (file)
@@ -97,7 +97,7 @@ SCOPE is the scope of the search, such as 'project or 'subdirs."
     ;; Check for warnings.
     (with-current-buffer b
       (goto-char (point-min))
-      (when (re-search-forward "Error\\|Warning" nil t)
+      (when (re-search-forward "Error\\|Warning\\|invalid" nil t)
        (error "Output:\n%S" (buffer-string))))
 
     b))
@@ -186,12 +186,14 @@ If a database already exists, then just update it."
   (let ((root (cedet-gnu-global-root dir)))
     (if root (setq dir root))
     (let ((default-directory dir))
-      (cedet-gnu-global-gtags-call
-       (when root
-        '("-u");; Incremental update flag.
-        ))
-      )
-    ))
+      (if root
+          ;; Incremental update. This can be either "gtags -i" or
+          ;; "global -u"; the gtags manpage says it's better to use
+          ;; "global -u".
+         (cedet-gnu-global-call (list "-u"))
+       (cedet-gnu-global-gtags-call nil)
+       )
+      )))
 
 (provide 'cedet-global)
 
index b865ff5028dfa2994590b8cac2370f0541a85d69..d3be545a158b53c0f54231ee4433ae399a2635cb 100644 (file)
@@ -303,7 +303,7 @@ CLASS is the EIEIO class that is used to track this project.  It should subclass
   (ede-generic-new-autoloader "generic-cvs" "Generic CVS"
                              "CVS" 'ede-generic-vc-project)
   (ede-generic-new-autoloader "generic-mtn" "Generic Monotone"
-                              "_MTN/options" 'ede-generic-vc-project)
+                              "_MTN" 'ede-generic-vc-project)
 
   ;; Take advantage of existing 'projectile' based projects.
   ;; @TODO - if projectile supports compile commands etc, can we