From: Eric Ludlam Date: Mon, 24 Nov 2014 17:35:05 +0000 (-0500) Subject: semantic: Fix for db-global X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cfc56f5190bf8ed010200164e61e2f75905f37c4;p=emacs.git semantic: Fix for db-global * lisp/cedet/semantic/db-global.el (semanticdb-enable-gnu-global-in-buffer): Don't try if file doesn't exist. --- diff --git a/lisp/cedet/semantic/db-global.el b/lisp/cedet/semantic/db-global.el index 8cb9dab5aaa..f9309a84f5f 100644 --- a/lisp/cedet/semantic/db-global.el +++ b/lisp/cedet/semantic/db-global.el @@ -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