Mercurial > emacs
diff lisp/cedet/semantic/db-find.el @ 104444:2bf481006ba4
lisp/Makefile.in: Ignore CEDET subdirectories when making subdirs.el.
lisp/emacs-lisp/autoload.el (generated-autoload-feature): New var.
(autoload-rubric): Use it.
lisp/cedet/semantic/adebug.el (data-debug-insert-find-results-button): Require
db-find.
lisp/cedet/semantic/analyze.el: Require semantic/tag. Don't declare
autoloaded functions.
lisp/cedet/semantic/chart.el: Don't declare autoloaded functions.
lisp/cedet/semantic/complete.el: eval-when-compile semantic/find for macro.
(semantic-collector-calculate-completions-raw): Require semantic/db-find.
lisp/cedet/semantic/ctxt.el (semantic-up-context): Require semantic/find.
Don't require it at top-level.
lisp/cedet/semantic/db-ebrowse.el (semanticdb-ebrowse-dump): Require
data-debug. Don't require it at top-level. Don't require semantic/sort.
lisp/cedet/semantic/db-find.el: Add local vars for autoloading.
Don't require semantic/tag-file and semantic/sort.
(semanticdb-find-default-throttle, semanticdb-find-result-length)
(semanticdb-find-result-nth, semanticdb-find-result-nth-in-buffer)
(semanticdb-find-tags-by-name, semanticdb-find-tags-for-completion)
(semanticdb-find-translate-path, semanticdb-find-table-for-include): Autoload.
lisp/cedet/semantic/db-ref.el: Require semantic and semantic/tag.
(semanticdb-ref-test): Require data-debug. Don't require it at
top-level.
lisp/cedet/semantic/db-typecache.el: Require semantic and semantic/tag.
Declare semantic-sort-tags-by-name-then-type-increasing and
semantic-scope-tag-clone-with-scope.
eval-when-compile semantic/find for semantic-find-tags-by-* macros.
Add local vars for autoloading.
(semanticdb-typecache-find): Autoload.
lisp/cedet/semantic/db.el: Add local vars for autoloading.
(semanticdb-current-database, semanticdb-current-table)
(semanticdb-file-table-object): Autoload.
lisp/cedet/semantic/decorate.el: Don't requirements for autoloaded functions.
lisp/cedet/semantic/doc.el: Add local vars for autoloading.
(semantic-documentation-for-tag): Autoload.
lisp/cedet/semantic/edit.el: Drop requirements for autoloaded functions.
lisp/cedet/semantic/find.el: Add local vars for autoloading.
(semantic-current-tag, semantic-find-tag-by-overlay)
(semantic-find-first-tag-by-name): Autoload.
lisp/cedet/semantic/format.el: Add local vars for autoloading.
(semantic-format-tag-name, semantic-format-tag-custom-list)
(semantic-format-tag-functions): Autoload.
lisp/cedet/semantic/fw.el: Require semantic/loaddefs.
lisp/cedet/semantic/html.el (semantic-html-recursive-combobulate-list):
Use assoc-string instead of assoc-case.
lisp/cedet/semantic/ia.el (semantic-ia-insert-tag): Move up to avoid
compiler error.
(semantic-ia-complete-symbol-menu): Require imenu.
(semantic-ia-fast-jump): Require semantic/decorate/include.
lisp/cedet/semantic/idle.el: Require semantic and semantic/tag.
Declare semanticdb-typecache-refresh-for-buffer and eldoc-message.
eval-when-compile semantic/find for semantic-find-tags-by-name macro.
lisp/cedet/semantic/sort.el: Add local vars for autoloading.
(semantic-flatten-tags-table, semantic-tag-external-member-parent):
Autoload.
lisp/cedet/semantic/tag-file.el: Add local vars for autoloading.
(semantic-go-to-tag, semantic-dependency-tag-file): Autoload.
lisp/cedet/semantic/tag-ls.el: Add local vars for autoloading.
(semantic-tag-prototype-p): Autoload.
lisp/cedet/semantic/tag.el: Don't declare autoloaded functions.
lisp/cedet/semantic/analyze/complete.el: Add local variables for autoloading.
(semantic-analyze-possible-completions): Autoload.
lisp/cedet/semantic/analyze/fcn.el: Require mode-local.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 02 Sep 2009 04:37:10 +0000 |
parents | b22b44e953cb |
children | 273e528a9f9b |
line wrap: on
line diff
--- a/lisp/cedet/semantic/db-find.el Mon Aug 31 14:51:12 2009 +0000 +++ b/lisp/cedet/semantic/db-find.el Wed Sep 02 04:37:10 2009 +0000 @@ -121,9 +121,6 @@ (require 'eieio) (require 'semantic/find)) -(require 'semantic/tag-file) -(require 'semantic/sort) - ;;; Code: (defvar data-debug-thing-alist) @@ -261,6 +258,7 @@ ;; These routines needed to be overloaded by specific language modes. ;; They are needed for translating an INCLUDE tag into a semanticdb ;; TABLE object. +;;;###autoload (define-overloadable-function semanticdb-find-translate-path (path brutish) "Translate PATH into a list of semantic tables. Path translation involves identifying the PATH input argument @@ -314,6 +312,7 @@ (semanticdb-find-translate-path-brutish-default path) (semanticdb-find-translate-path-includes-default path)))) +;;;###autoload (define-overloadable-function semanticdb-find-table-for-include (includetag &optional table) "For a single INCLUDETAG found in TABLE, find a `semanticdb-table' object INCLUDETAG is a semantic TAG of class 'include. @@ -855,6 +854,7 @@ ;; Once you have a search result, use these routines to operate ;; on the search results at a higher level +;;;###autoload (defun semanticdb-strip-find-results (results &optional find-file-match) "Strip a semanticdb search RESULTS to exclude objects. This makes it appear more like the results of a `semantic-find-' call. @@ -952,6 +952,7 @@ (null tag-to-test)))) ))) +;;;###autoload (defun semanticdb-find-result-length (result) "Number of tags found in RESULT." (let ((count 0)) @@ -960,6 +961,7 @@ result) count)) +;;;###autoload (defun semanticdb-find-result-nth (result n) "In RESULT, return the Nth search result. This is a 0 based search result, with the first match being element 0. @@ -996,6 +998,7 @@ (error "%d entry is not a tag" i))) (setq i (1+ i))))) +;;;###autoload (defun semanticdb-find-result-nth-in-buffer (result n) "In RESULT, return the Nth search result. Like `semanticdb-find-result-nth', except that only the TAG @@ -1160,6 +1163,7 @@ ;; It must be reversed. (nreverse found))) +;;;###autoload (defun semanticdb-find-tags-by-name (name &optional path find-file-match) "Search for all tags matching NAME on PATH. See `semanticdb-find-translate-path' for details on PATH. @@ -1170,6 +1174,7 @@ (semanticdb-find-tags-by-name-method table name tags)) path find-file-match)) +;;;###autoload (defun semanticdb-find-tags-by-name-regexp (regexp &optional path find-file-match) "Search for all tags matching REGEXP on PATH. See `semanticdb-find-translate-path' for details on PATH. @@ -1180,6 +1185,7 @@ (semanticdb-find-tags-by-name-regexp-method table regexp tags)) path find-file-match)) +;;;###autoload (defun semanticdb-find-tags-for-completion (prefix &optional path find-file-match) "Search for all tags matching PREFIX on PATH. See `semanticdb-find-translate-path' for details on PATH. @@ -1190,6 +1196,7 @@ (semanticdb-find-tags-for-completion-method table prefix tags)) path find-file-match)) +;;;###autoload (defun semanticdb-find-tags-by-class (class &optional path find-file-match) "Search for all tags of CLASS on PATH. See `semanticdb-find-translate-path' for details on PATH. @@ -1235,6 +1242,7 @@ path find-file-match)) ;;; Brutish Search Routines +;; (defun semanticdb-brute-deep-find-tags-by-name (name &optional path find-file-match) "Search for all tags matching NAME on PATH. See `semanticdb-find-translate-path' for details on PATH. @@ -1363,4 +1371,9 @@ (provide 'semantic/db-find) +;; Local variables: +;; generated-autoload-file: "loaddefs.el" +;; generated-autoload-feature: semantic/loaddefs +;; End: + ;;; semantic/db-find.el ends here