comparison lisp/cedet/semantic/db-ref.el @ 104441:902d22a2d922

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.
author Chong Yidong <cyd@stupidchicken.com>
date Mon, 31 Aug 2009 00:45:41 +0000
parents 6810f0d84270
children 2bf481006ba4
comparison
equal deleted inserted replaced
104440:8af937a89d62 104441:902d22a2d922
1 ;;; db-ref.el --- Handle cross-db file references 1 ;;; semantic/db-ref.el --- Handle cross-db file references
2 2
3 ;;; Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. 3 ;;; Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
4 4
5 ;; Author: Eric M. Ludlam <eric@siege-engine.com> 5 ;; Author: Eric M. Ludlam <eric@siege-engine.com>
6 6
34 ;; reparsed due to account for changes in defined macros, or perhaps 34 ;; reparsed due to account for changes in defined macros, or perhaps
35 ;; a change to files the header includes. 35 ;; a change to files the header includes.
36 36
37 37
38 ;;; Code: 38 ;;; Code:
39 (require 'eieio)
40 (require 'semantic/db)
41 (require 'semantic/util)
42
43 (defvar semanticdb-find-default-throttle)
44
45 ;; For the semantic-find-tags-by-name-regexp macro.
46 (eval-when-compile (require 'semantic/find))
47 (defvar semantic-case-fold)
48
39 (defmethod semanticdb-add-reference ((dbt semanticdb-abstract-table) 49 (defmethod semanticdb-add-reference ((dbt semanticdb-abstract-table)
40 include-tag) 50 include-tag)
41 "Add a reference for the database table DBT based on INCLUDE-TAG. 51 "Add a reference for the database table DBT based on INCLUDE-TAG.
42 DBT is the database table that owns the INCLUDE-TAG. The reference 52 DBT is the database table that owns the INCLUDE-TAG. The reference
43 will be added to the database that INCLUDE-TAG refers to." 53 will be added to the database that INCLUDE-TAG refers to."
135 ((i-depend-on :initarg :i-depend-on) 145 ((i-depend-on :initarg :i-depend-on)
136 (local-table :initarg :local-table) 146 (local-table :initarg :local-table)
137 (i-include :initarg :i-include)) 147 (i-include :initarg :i-include))
138 "Simple class to allow ADEBUG to show a nice list.") 148 "Simple class to allow ADEBUG to show a nice list.")
139 149
150 (defvar semanticdb-current-table)
151 (declare-function data-debug-new-buffer "data-debug")
152 (declare-function data-debug-insert-object-slots "data-debug")
153
140 (defun semanticdb-ref-test (refresh) 154 (defun semanticdb-ref-test (refresh)
141 "Dump out the list of references for the current buffer. 155 "Dump out the list of references for the current buffer.
142 If REFRESH is non-nil, cause the current table to have it's references 156 If REFRESH is non-nil, cause the current table to have it's references
143 refreshed before dumping the result." 157 refreshed before dumping the result."
144 (interactive "p") 158 (interactive "p")
159 (require 'data-debug)
160 (require 'semantic/db)
145 ;; If we need to refresh... then do so. 161 ;; If we need to refresh... then do so.
146 (when refresh 162 (when refresh
147 (semanticdb-refresh-references semanticdb-current-table)) 163 (semanticdb-refresh-references semanticdb-current-table))
148 ;; Do the debug system 164 ;; Do the debug system
149 (let* ((tab semanticdb-current-table) 165 (let* ((tab semanticdb-current-table)
156 (data-debug-new-buffer "*References ADEBUG*") 172 (data-debug-new-buffer "*References ADEBUG*")
157 (data-debug-insert-object-slots adbc "!")) 173 (data-debug-insert-object-slots adbc "!"))
158 ) 174 )
159 175
160 (provide 'semantic/db-ref) 176 (provide 'semantic/db-ref)
161 ;;; semanticdb-ref.el ends here 177 ;;; semantic/db-ref.el ends here