From cfc56f5190bf8ed010200164e61e2f75905f37c4 Mon Sep 17 00:00:00 2001 From: Eric Ludlam Date: Mon, 24 Nov 2014 12:35:05 -0500 Subject: [PATCH] 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. --- lisp/cedet/semantic/db-global.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5