]> git.eshelyaron.com Git - emacs.git/commitdiff
semantic: Fix for db-global
authorEric Ludlam <zappo@gnu.org>
Mon, 24 Nov 2014 17:35:05 +0000 (12:35 -0500)
committerDavid Engster <deng@randomsample.de>
Mon, 23 Jan 2017 20:45:36 +0000 (21:45 +0100)
* lisp/cedet/semantic/db-global.el
 (semanticdb-enable-gnu-global-in-buffer): Don't try if file doesn't
 exist.

lisp/cedet/semantic/db-global.el

index 8cb9dab5aaa72ebca201d2466ee671ce1b41b415..f9309a84f5faeeb2a2a7dd00fbf17b4d23070d38 100644 (file)
@@ -90,7 +90,8 @@ MODE is the major mode to support."
 When GNU Global is not available for this directory, display a message
 if optional DONT-ERR-IF-NOT-AVAILABLE is non-nil; else throw an error."
   (interactive "P")
-  (if (cedet-gnu-global-root)
+  (if (and (file-exists-p default-directory)
+          (cedet-gnu-global-root))
       (setq
        ;; Add to the system database list.
        semanticdb-project-system-databases