diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2009-08-31 00:45:41 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2009-08-31 00:45:41 +0000 |
commit | 691a065ecb6920eb73f2a72229b8c803202a00b6 (patch) | |
tree | bc828c8002ac6d2f65c93d144038687b1d045bec /lisp/cedet/semantic/db-global.el | |
parent | afa85dfef0d74a70c383cdcd7ed7dc10f4e50025 (diff) | |
download | emacs-691a065ecb6920eb73f2a72229b8c803202a00b6.tar.gz emacs-691a065ecb6920eb73f2a72229b8c803202a00b6.tar.bz2 emacs-691a065ecb6920eb73f2a72229b8c803202a00b6.zip |
cedet/semantic/db-debug.el: Don't require semantic/db-mode, since
semanticdb-current-database and semanticdb-current-table are now in
semantic/db.el.
cedet/semantic/db-ebrowse.el: Don't require semantic/db-mode, since
semanticdb-current-database and semanticdb-current-table are now in
semantic/db.el.
cedet/semantic/db-el.el: Require semantic/lex-spp.
Require semantic/db instead of semantic/db-search.
cedet/semantic/db-file.el: Declare inversion-test and
data-debug-insert-thing.
(semanticdb-load-database): Load inversion only if necessary.
cedet/semantic/db-find.el: Autoload semanticdb-find-default-throttle.
Defvar data-debug-thing-alist, and ede-current-project.
Declare data-debug-insert-stuff-list, data-debug-insert-tag-list,
semantic-scope-reset-cache, and semanticdb-typecache-notify-reset.
Require semantic/tag-file, and semantic/sort.
(semantic-reset): Require semantic/scope.
(semanticdb-partial-synchronize): Require semantic/db-typecache.
(semanticdb-find-table-for-include) Move up to avoid compiler warning.
cedet/semantic/db-global.el: Declare data-debug-new-buffer and
data-debug-insert-thing.
(semanticdb-project-database-global) Move up to avoid compiler warning.
cedet/semantic/db-javascript.el: Fix provide statement.
Require semantic/db-find instead of semantic/db-search.
cedet/semantic/db-mode.el: Declare semantic-lex-spp-set-dynamic-table.
(semanticdb-current-database, semanticdb-current-table): Move into
semantic/db.el
cedet/semantic/db-ref.el: Require eieio, semantic/db, and semantic/util.
Declare data-debug-new-buffer and data-debug-insert-object-slots.
Defvar semantic-case-fold. Require semantic/find when compiling.
cedet/semantic/db-typecache.el: Require semantic/tag-ls,
semantic/analyze/fcn, and semantic/scope. Declare
data-debug-insert-thing and data-debug-new-buffer.
cedet/semantic/db.el (semanticdb-search-results-table): Move class
definition here from semantic/db-search.el.
(semanticdb-current-database, semanticdb-current-table) Move variable
definitions here from semantic/db-mode.el.
Diffstat (limited to 'lisp/cedet/semantic/db-global.el')
-rw-r--r-- | lisp/cedet/semantic/db-global.el | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lisp/cedet/semantic/db-global.el b/lisp/cedet/semantic/db-global.el index 1677f574cea..373b0df8963 100644 --- a/lisp/cedet/semantic/db-global.el +++ b/lisp/cedet/semantic/db-global.el @@ -29,7 +29,7 @@ ;; (require 'cedet-global) -(require 'semantic/db-search) +(require 'semantic/db-find) (require 'semantic/symref/global) (eval-when-compile @@ -37,7 +37,13 @@ (require 'eieio) (require 'eieio-opt) ) + ;;; Code: + +(declare-function data-debug-new-buffer "data-debug") +(declare-function data-debug-insert-thing result "data-debug") + + (defun semanticdb-enable-gnu-global-databases (mode) "Enable the use of the GNU Global SemanticDB back end for all files of MODE. This will add an instance of a GNU Global database to each buffer @@ -67,6 +73,12 @@ in a GNU Global supported hierarchy." MODE is the major mode to support." (semanticdb-enable-gnu-global-in-buffer t)) +(defclass semanticdb-project-database-global + ;; @todo - convert to one DB per directory. + (semanticdb-project-database eieio-instance-tracker) + () + "Database representing a GNU Global tags file.") + (defun semanticdb-enable-gnu-global-in-buffer (&optional dont-err-if-not-available) "Enable a GNU Global database in the current buffer. Argument DONT-ERR-IF-NOT-AVAILABLE will throw an error if GNU Global @@ -94,12 +106,6 @@ is not available for this directory." ) "A table for returning search results from GNU Global.") -(defclass semanticdb-project-database-global - ;; @todo - convert to one DB per directory. - (semanticdb-project-database eieio-instance-tracker) - () - "Database representing a GNU Global tags file.") - (defmethod semanticdb-equivalent-mode ((table semanticdb-table-global) &optional buffer) "Return t, pretend that this table's mode is equivalent to BUFFER. Equivalent modes are specified by by `semantic-equivalent-major-modes' |