diff options
| author | Chong Yidong | 2009-08-30 21:16:39 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-08-30 21:16:39 +0000 |
| commit | aa8724aeadb56751cb464fd5ebbf5f2e631fd3fa (patch) | |
| tree | a3f4e2cd8ee9249f924d413e7c38e21a4a0bc204 /lisp | |
| parent | ec0528188392b677b63aec579e5ef456e025b9b5 (diff) | |
| download | emacs-aa8724aeadb56751cb464fd5ebbf5f2e631fd3fa.tar.gz emacs-aa8724aeadb56751cb464fd5ebbf5f2e631fd3fa.zip | |
cedet/cedet.el (cedet-packages): Bump srecode version.
cedet/data-debug.el: Require `ring' for use of ring-length.
cedet/semantic.el (semantic-repeat-parse-whole-stream): Check
semantic-working-type before updating progress reporter.
cedet/semantic/adebug.el: Fix file header.
cedet/semantic/analyze.el: eval-when-compile semantic/find, for
semantic-find-tags-by-name. Declare semanticdb-strip-find-results and
semanticdb-find-tags-by-name.
cedet/semantic/chart.el: Require semantic/find, semantic/db-mode,
semantic/db-typecache, and semantic/scope.
cedet/semantic/complete.el: Declare
semantic-displayor-focus-abstract-child-p function (needed as the
semantic-displayor-focus-abstract class is defined only after used).
Move semantic-complete-inline-custom-type and
semantic-complete-inline-analyzer-displayor-class variable definitions
up, before they are used, to avoid compiler warning.
Require semantic/decorate, semantic/tag-file, eieio-opt, and
semantic/analyze/complete.
cedet/semantic/ctxt.el: Require semantic/find. Don't
eval-when-compile semantic/db
(semantic-get-local-variables): Use Emacs' built-in progress reporter
instead of working-status-forms.
cedet/semantic/db-debug.el: Require data-debug, semantic/db-mode, and
semantic/format.
cedet/semantic/db-ebrowse.el: Require semantic/db-mode, semantic/find,
semantic/sort, data-debug
(semanticdb-create-database): Require semantic/dep for
semantic-add-system-include.
(semanticdb-table-ebrowse, semanticdb-project-database-ebrowse): Move
class definitions near top of file, before they are used, to avoid
compiler warnings.
(semanticdb-ebrowse-add-tree-to-table): Use split-string.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/cedet/cedet.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/data-debug.el | 5 | ||||
| -rw-r--r-- | lisp/cedet/semantic.el | 20 | ||||
| -rw-r--r-- | lisp/cedet/semantic/adebug.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/analyze.el | 19 | ||||
| -rw-r--r-- | lisp/cedet/semantic/chart.el | 10 | ||||
| -rw-r--r-- | lisp/cedet/semantic/complete.el | 68 | ||||
| -rw-r--r-- | lisp/cedet/semantic/ctxt.el | 25 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-debug.el | 8 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-ebrowse.el | 82 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-find.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/tag.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/semantic/texi.el | 5 |
13 files changed, 134 insertions, 120 deletions
diff --git a/lisp/cedet/cedet.el b/lisp/cedet/cedet.el index 4e760838120..c68ccf72fe5 100644 --- a/lisp/cedet/cedet.el +++ b/lisp/cedet/cedet.el | |||
| @@ -63,7 +63,7 @@ | |||
| 63 | (cedet ,cedet-version) | 63 | (cedet ,cedet-version) |
| 64 | (eieio "1.2") | 64 | (eieio "1.2") |
| 65 | (semantic "2.0pre7") | 65 | (semantic "2.0pre7") |
| 66 | (srecode "0.2") | 66 | (srecode "1.0pre7") |
| 67 | (ede "1.0pre7") | 67 | (ede "1.0pre7") |
| 68 | (speedbar "1.0.3")) | 68 | (speedbar "1.0.3")) |
| 69 | "Table of CEDET packages to install.") | 69 | "Table of CEDET packages to install.") |
diff --git a/lisp/cedet/data-debug.el b/lisp/cedet/data-debug.el index 13d68a10159..c13a90b8f3f 100644 --- a/lisp/cedet/data-debug.el +++ b/lisp/cedet/data-debug.el | |||
| @@ -42,6 +42,11 @@ | |||
| 42 | ;; stuff)) | 42 | ;; stuff)) |
| 43 | 43 | ||
| 44 | (require 'font-lock) | 44 | (require 'font-lock) |
| 45 | (require 'ring) | ||
| 46 | (require 'eieio) | ||
| 47 | (eval-when-compile | ||
| 48 | (require 'semantic)) | ||
| 49 | |||
| 45 | ;;; Code: | 50 | ;;; Code: |
| 46 | 51 | ||
| 47 | ;;; Compatibility | 52 | ;;; Compatibility |
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el index fdd61e6c74d..43d90df6991 100644 --- a/lisp/cedet/semantic.el +++ b/lisp/cedet/semantic.el | |||
| @@ -586,19 +586,6 @@ was marked unparseable, then do nothing, and return the cache." | |||
| 586 | 586 | ||
| 587 | ;;;; Parse the whole system. | 587 | ;;;; Parse the whole system. |
| 588 | ((semantic-parse-tree-needs-rebuild-p) | 588 | ((semantic-parse-tree-needs-rebuild-p) |
| 589 | ;; (let ((working-status-dynamic-type | ||
| 590 | ;; (if (< (point-max) semantic-minimum-working-buffer-size) | ||
| 591 | ;; nil | ||
| 592 | ;; working-status-dynamic-type)) | ||
| 593 | ;; (working-status-percentage-type | ||
| 594 | ;; (if (< (point-max) semantic-minimum-working-buffer-size) | ||
| 595 | ;; nil | ||
| 596 | ;; working-status-percentage-type))) | ||
| 597 | ;; (working-status-forms | ||
| 598 | ;; (semantic-parser-working-message (buffer-name)) "done" | ||
| 599 | ;; (setq res (semantic-parse-region (point-min) (point-max))) | ||
| 600 | ;; (working-status t))) | ||
| 601 | |||
| 602 | ;; Use Emacs' built-in progress-reporter | 589 | ;; Use Emacs' built-in progress-reporter |
| 603 | (let ((semantic--progress-reporter | 590 | (let ((semantic--progress-reporter |
| 604 | (and (>= (point-max) semantic-minimum-working-buffer-size) | 591 | (and (>= (point-max) semantic-minimum-working-buffer-size) |
| @@ -737,15 +724,10 @@ This function returns semantic tags without overlays." | |||
| 737 | ;; Designated to ignore. | 724 | ;; Designated to ignore. |
| 738 | (setq stream (car nontermsym)) | 725 | (setq stream (car nontermsym)) |
| 739 | (if stream | 726 | (if stream |
| 740 | ;; (if (eq semantic-working-type 'percent) | ||
| 741 | ;; (working-status | ||
| 742 | ;; (/ (* 100 (semantic-lex-token-start (car stream))) | ||
| 743 | ;; (point-max))) | ||
| 744 | ;; (working-dynamic-status)) | ||
| 745 | |||
| 746 | ;; Use Emacs' built-in progress reporter: | 727 | ;; Use Emacs' built-in progress reporter: |
| 747 | (and (boundp 'semantic--progress-reporter) | 728 | (and (boundp 'semantic--progress-reporter) |
| 748 | semantic--progress-reporter | 729 | semantic--progress-reporter |
| 730 | (eq semantic-working-type 'percent) | ||
| 749 | (progress-reporter-update | 731 | (progress-reporter-update |
| 750 | semantic--progress-reporter | 732 | semantic--progress-reporter |
| 751 | (/ (* 100 (semantic-lex-token-start (car stream))) | 733 | (/ (* 100 (semantic-lex-token-start (car stream))) |
diff --git a/lisp/cedet/semantic/adebug.el b/lisp/cedet/semantic/adebug.el index fe8e71b82e8..7756ffb93d7 100644 --- a/lisp/cedet/semantic/adebug.el +++ b/lisp/cedet/semantic/adebug.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; adebug.el --- Semantic Application Debugger | 1 | ;;; semantic/adebug.el --- Semantic Application Debugger |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. | 3 | ;;; Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -420,4 +420,4 @@ Optional argument CTXT is the context to show." | |||
| 420 | 420 | ||
| 421 | (provide 'semantic/adebug) | 421 | (provide 'semantic/adebug) |
| 422 | 422 | ||
| 423 | ;;; semantic-adebug.el ends here | 423 | ;;; semantic/adebug.el ends here |
diff --git a/lisp/cedet/semantic/analyze.el b/lisp/cedet/semantic/analyze.el index 7c47ba0877c..c55186b3b05 100644 --- a/lisp/cedet/semantic/analyze.el +++ b/lisp/cedet/semantic/analyze.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; analyze.el --- Analyze semantic tags against local context | 1 | ;;; semantic/analyze.el --- Analyze semantic tags against local context |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 | 3 | ;;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 |
| 4 | ;;; Free Software Foundation, Inc. | 4 | ;;; Free Software Foundation, Inc. |
| @@ -65,19 +65,19 @@ | |||
| 65 | ;; other possible completions. | 65 | ;; other possible completions. |
| 66 | ;; | 66 | ;; |
| 67 | (require 'eieio) | 67 | (require 'eieio) |
| 68 | ;; (require 'inversion) | ||
| 69 | ;; (eval-and-compile | ||
| 70 | ;; (inversion-require 'eieio "1.0")) | ||
| 71 | (require 'semantic) | 68 | (require 'semantic) |
| 72 | (require 'semantic/format) | 69 | (require 'semantic/format) |
| 73 | (require 'semantic/ctxt) | 70 | (require 'semantic/ctxt) |
| 74 | (require 'semantic/sort) | 71 | (require 'semantic/sort) |
| 75 | (eval-when-compile (require 'semantic/db) | 72 | (eval-when-compile (require 'semantic/find)) |
| 76 | (require 'semantic/db-find)) | ||
| 77 | |||
| 78 | (require 'semantic/scope) | 73 | (require 'semantic/scope) |
| 79 | (require 'semantic/analyze/fcn) | 74 | (require 'semantic/analyze/fcn) |
| 80 | 75 | ||
| 76 | ;; `semanticdb-typecache-find' autoloads from semantic/db-typecache, | ||
| 77 | ;; which requires semantic/db-find. | ||
| 78 | (declare-function semanticdb-strip-find-results "semantic/db-find") | ||
| 79 | (declare-function semanticdb-find-tags-by-name "semantic/db-find") | ||
| 80 | |||
| 81 | ;;; Code: | 81 | ;;; Code: |
| 82 | (defvar semantic-analyze-error-stack nil | 82 | (defvar semantic-analyze-error-stack nil |
| 83 | "Collection of any errors thrown during analysis.") | 83 | "Collection of any errors thrown during analysis.") |
| @@ -684,8 +684,11 @@ Returns an object based on symbol `semantic-analyze-context'." | |||
| 684 | ;; | 684 | ;; |
| 685 | ;; Friendly output of a context analysis. | 685 | ;; Friendly output of a context analysis. |
| 686 | ;; | 686 | ;; |
| 687 | (declare-function pulse-momentary-highlight-region "pulse") | ||
| 688 | |||
| 687 | (defmethod semantic-analyze-pulse ((context semantic-analyze-context)) | 689 | (defmethod semantic-analyze-pulse ((context semantic-analyze-context)) |
| 688 | "Pulse the region that CONTEXT affects." | 690 | "Pulse the region that CONTEXT affects." |
| 691 | (require 'pulse) | ||
| 689 | (save-excursion | 692 | (save-excursion |
| 690 | (set-buffer (oref context :buffer)) | 693 | (set-buffer (oref context :buffer)) |
| 691 | (let ((bounds (oref context :bounds))) | 694 | (let ((bounds (oref context :bounds))) |
| @@ -766,4 +769,4 @@ CONTEXT's content is described in `semantic-analyze-current-context'." | |||
| 766 | 769 | ||
| 767 | (provide 'semantic/analyze) | 770 | (provide 'semantic/analyze) |
| 768 | 771 | ||
| 769 | ;;; semantic-analyze.el ends here | 772 | ;;; semantic/analyze.el ends here |
diff --git a/lisp/cedet/semantic/chart.el b/lisp/cedet/semantic/chart.el index 95c60a51365..124227d7782 100644 --- a/lisp/cedet/semantic/chart.el +++ b/lisp/cedet/semantic/chart.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; chart.el --- Utilities for use with semantic tag tables | 1 | ;;; semantic/chart.el --- Utilities for use with semantic tag tables |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1999, 2000, 2001, 2003, 2005, 2008, 2009 | 3 | ;;; Copyright (C) 1999, 2000, 2001, 2003, 2005, 2008, 2009 |
| 4 | ;;; Free Software Foundation, Inc. | 4 | ;;; Free Software Foundation, Inc. |
| @@ -26,8 +26,12 @@ | |||
| 26 | ;; the output of the semantic parser. | 26 | ;; the output of the semantic parser. |
| 27 | ;; | 27 | ;; |
| 28 | 28 | ||
| 29 | (require 'semantic) | ||
| 30 | (require 'chart) | 29 | (require 'chart) |
| 30 | (require 'semantic) | ||
| 31 | (require 'semantic/find) | ||
| 32 | (require 'semantic/db-mode) | ||
| 33 | (require 'semantic/db-typecache) | ||
| 34 | (require 'semantic/scope) | ||
| 31 | 35 | ||
| 32 | ;;; Code: | 36 | ;;; Code: |
| 33 | 37 | ||
| @@ -164,4 +168,4 @@ items are charted. TAGTABLE is passedto | |||
| 164 | 168 | ||
| 165 | (provide 'semantic/chart) | 169 | (provide 'semantic/chart) |
| 166 | 170 | ||
| 167 | ;;; semantic-chart.el ends here | 171 | ;;; semantic/chart.el ends here |
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el index d1367e30b7d..c721d42c888 100644 --- a/lisp/cedet/semantic/complete.el +++ b/lisp/cedet/semantic/complete.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; complete.el --- Routines for performing tag completion | 1 | ;;; semantic/complete.el --- Routines for performing tag completion |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009 | 3 | ;;; Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009 |
| 4 | ;;; Free Software Foundation, Inc. | 4 | ;;; Free Software Foundation, Inc. |
| @@ -108,15 +108,19 @@ | |||
| 108 | ;; a buffer. | 108 | ;; a buffer. |
| 109 | 109 | ||
| 110 | (require 'eieio) | 110 | (require 'eieio) |
| 111 | (require 'semantic/tag) | 111 | (require 'eieio-opt) |
| 112 | (require 'semantic/tag-file) | ||
| 112 | (require 'semantic/find) | 113 | (require 'semantic/find) |
| 113 | (require 'semantic/analyze) | 114 | (require 'semantic/analyze) |
| 114 | (require 'semantic/format) | 115 | (require 'semantic/format) |
| 115 | (require 'semantic/ctxt) | 116 | (require 'semantic/ctxt) |
| 116 | ;; Keep semanticdb optional. | 117 | ;; Keep semanticdb optional. |
| 117 | (eval-when-compile | 118 | ;; (eval-when-compile |
| 118 | (require 'semantic/db) | 119 | ;; (require 'semantic/db) |
| 119 | (require 'semantic/db-find)) | 120 | ;; (require 'semantic/db-find)) |
| 121 | (require 'semantic/decorate) | ||
| 122 | (require 'semantic/analyze/complete) | ||
| 123 | |||
| 120 | 124 | ||
| 121 | (eval-when-compile | 125 | (eval-when-compile |
| 122 | (condition-case nil | 126 | (condition-case nil |
| @@ -325,6 +329,11 @@ HISTORY is a symbol representing a variable to story the history in." | |||
| 325 | (defvar semantic-complete-current-matched-tag nil | 329 | (defvar semantic-complete-current-matched-tag nil |
| 326 | "Variable used to pass the tags being matched to the prompt.") | 330 | "Variable used to pass the tags being matched to the prompt.") |
| 327 | 331 | ||
| 332 | ;; semantic-displayor-focus-abstract-child-p is part of the | ||
| 333 | ;; semantic-displayor-focus-abstract class, defined later in this | ||
| 334 | ;; file. | ||
| 335 | (declare-function semantic-displayor-focus-abstract-child-p "semantic/complete") | ||
| 336 | |||
| 328 | (defun semantic-complete-current-match () | 337 | (defun semantic-complete-current-match () |
| 329 | "Calculate a match from the current completion environment. | 338 | "Calculate a match from the current completion environment. |
| 330 | Save this in our completion variable. Make sure that variable | 339 | Save this in our completion variable. Make sure that variable |
| @@ -1759,6 +1768,29 @@ completion text in ghost text." | |||
| 1759 | ;;; ------------------------------------------------------------ | 1768 | ;;; ------------------------------------------------------------ |
| 1760 | ;;; Specific queries | 1769 | ;;; Specific queries |
| 1761 | ;; | 1770 | ;; |
| 1771 | (defvar semantic-complete-inline-custom-type | ||
| 1772 | (append '(radio) | ||
| 1773 | (mapcar | ||
| 1774 | (lambda (class) | ||
| 1775 | (let* ((C (intern (car class))) | ||
| 1776 | (doc (documentation-property C 'variable-documentation)) | ||
| 1777 | (doc1 (car (split-string doc "\n"))) | ||
| 1778 | ) | ||
| 1779 | (list 'const | ||
| 1780 | :tag doc1 | ||
| 1781 | C))) | ||
| 1782 | (eieio-build-class-alist semantic-displayor-abstract t)) | ||
| 1783 | ) | ||
| 1784 | "Possible options for inlince completion displayors. | ||
| 1785 | Use this to enable custom editing.") | ||
| 1786 | |||
| 1787 | (defcustom semantic-complete-inline-analyzer-displayor-class | ||
| 1788 | 'semantic-displayor-traditional | ||
| 1789 | "*Class for displayor to use with inline completion." | ||
| 1790 | :group 'semantic | ||
| 1791 | :type semantic-complete-inline-custom-type | ||
| 1792 | ) | ||
| 1793 | |||
| 1762 | (defun semantic-complete-read-tag-buffer-deep (prompt &optional | 1794 | (defun semantic-complete-read-tag-buffer-deep (prompt &optional |
| 1763 | default-tag | 1795 | default-tag |
| 1764 | initial-input | 1796 | initial-input |
| @@ -1885,30 +1917,6 @@ prompts. these are calculated from the CONTEXT variable passed in." | |||
| 1885 | inp | 1917 | inp |
| 1886 | history))) | 1918 | history))) |
| 1887 | 1919 | ||
| 1888 | (defvar semantic-complete-inline-custom-type | ||
| 1889 | (append '(radio) | ||
| 1890 | (mapcar | ||
| 1891 | (lambda (class) | ||
| 1892 | (let* ((C (intern (car class))) | ||
| 1893 | (doc (documentation-property C 'variable-documentation)) | ||
| 1894 | (doc1 (car (split-string doc "\n"))) | ||
| 1895 | ) | ||
| 1896 | (list 'const | ||
| 1897 | :tag doc1 | ||
| 1898 | C))) | ||
| 1899 | (eieio-build-class-alist semantic-displayor-abstract t)) | ||
| 1900 | ) | ||
| 1901 | "Possible options for inlince completion displayors. | ||
| 1902 | Use this to enable custom editing.") | ||
| 1903 | |||
| 1904 | (defcustom semantic-complete-inline-analyzer-displayor-class | ||
| 1905 | 'semantic-displayor-traditional | ||
| 1906 | "*Class for displayor to use with inline completion." | ||
| 1907 | :group 'semantic | ||
| 1908 | :type semantic-complete-inline-custom-type | ||
| 1909 | ) | ||
| 1910 | |||
| 1911 | |||
| 1912 | (defun semantic-complete-inline-analyzer (context) | 1920 | (defun semantic-complete-inline-analyzer (context) |
| 1913 | "Complete a symbol name by name based on the current context. | 1921 | "Complete a symbol name by name based on the current context. |
| 1914 | This is similar to `semantic-complete-read-tag-analyze', except | 1922 | This is similar to `semantic-complete-read-tag-analyze', except |
| @@ -2125,4 +2133,4 @@ use `semantic-complete-analyze-inline' to complete." | |||
| 2125 | ;; End | 2133 | ;; End |
| 2126 | (provide 'semantic/complete) | 2134 | (provide 'semantic/complete) |
| 2127 | 2135 | ||
| 2128 | ;;; semantic-complete.el ends here | 2136 | ;;; semantic/complete.el ends here |
diff --git a/lisp/cedet/semantic/ctxt.el b/lisp/cedet/semantic/ctxt.el index 270b9964031..40da8153aec 100644 --- a/lisp/cedet/semantic/ctxt.el +++ b/lisp/cedet/semantic/ctxt.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; ctxt.el --- Context calculations for Semantic tools. | 1 | ;;; semantic/ctxt.el --- Context calculations for Semantic tools. |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | 3 | ;;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
| 4 | ;;; 2007, 2008, 2009 Free Software Foundation, Inc. | 4 | ;;; 2007, 2008, 2009 Free Software Foundation, Inc. |
| @@ -31,7 +31,7 @@ | |||
| 31 | ;; the current context is calculated. | 31 | ;; the current context is calculated. |
| 32 | ;; | 32 | ;; |
| 33 | (require 'semantic) | 33 | (require 'semantic) |
| 34 | (eval-when-compile (require 'semantic/db)) | 34 | (require 'semantic/find) |
| 35 | 35 | ||
| 36 | ;;; Code: | 36 | ;;; Code: |
| 37 | (defvar semantic-command-separation-character | 37 | (defvar semantic-command-separation-character |
| @@ -155,16 +155,15 @@ Return non-nil if there is no upper context." | |||
| 155 | Local variables are returned in Semantic tag format. | 155 | Local variables are returned in Semantic tag format. |
| 156 | This can be overriden with `get-local-variables'." | 156 | This can be overriden with `get-local-variables'." |
| 157 | ;; The working status is to let the parser work properly | 157 | ;; The working status is to let the parser work properly |
| 158 | (working-status-forms | 158 | (let ((semantic--progress-reporter |
| 159 | (semantic-parser-working-message "Local") | 159 | (make-progress-reporter (semantic-parser-working-message "Local") |
| 160 | "done" | 160 | 0 100))) |
| 161 | (save-excursion | 161 | (save-excursion |
| 162 | (if point (goto-char point)) | 162 | (if point (goto-char point)) |
| 163 | (let* ((semantic-working-type nil) | 163 | (let* ((semantic-working-type nil) |
| 164 | ;; Disable parsing messages | 164 | ;; Disable parsing messages |
| 165 | (working-status-dynamic-type nil) | 165 | (case-fold-search semantic-case-fold)) |
| 166 | (case-fold-search semantic-case-fold)) | 166 | (:override-with-args ()))))) |
| 167 | (:override-with-args ()))))) | ||
| 168 | 167 | ||
| 169 | (defun semantic-get-local-variables-default () | 168 | (defun semantic-get-local-variables-default () |
| 170 | "Get local values from a specific context. | 169 | "Get local values from a specific context. |
| @@ -610,4 +609,4 @@ overriden." | |||
| 610 | 609 | ||
| 611 | (provide 'semantic/ctxt) | 610 | (provide 'semantic/ctxt) |
| 612 | 611 | ||
| 613 | ;;; semantic-ctxt.el ends here | 612 | ;;; semantic/ctxt.el ends here |
diff --git a/lisp/cedet/semantic/db-debug.el b/lisp/cedet/semantic/db-debug.el index 6db1cbfaae9..52ae605f6a0 100644 --- a/lisp/cedet/semantic/db-debug.el +++ b/lisp/cedet/semantic/db-debug.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; db-debug.el --- Extra level debugging routines for Semantic | 1 | ;;; semantic/db-debug.el --- Extra level debugging routines for Semantic |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 2008, 2009 Free Software Foundation, Inc. | 3 | ;;; Copyright (C) 2008, 2009 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -24,7 +24,10 @@ | |||
| 24 | ;; Various routines for debugging SemanticDB issues, or viewing | 24 | ;; Various routines for debugging SemanticDB issues, or viewing |
| 25 | ;; semanticdb state. | 25 | ;; semanticdb state. |
| 26 | 26 | ||
| 27 | (require 'data-debug) | ||
| 27 | (require 'semantic/db) | 28 | (require 'semantic/db) |
| 29 | (require 'semantic/db-mode) | ||
| 30 | (require 'semantic/format) | ||
| 28 | 31 | ||
| 29 | ;;; Code: | 32 | ;;; Code: |
| 30 | ;; | 33 | ;; |
| @@ -105,4 +108,5 @@ | |||
| 105 | 108 | ||
| 106 | 109 | ||
| 107 | (provide 'semantic/db-debug) | 110 | (provide 'semantic/db-debug) |
| 108 | ;;; semanticdb-debug.el ends here | 111 | |
| 112 | ;;; semantic/db-debug.el ends here | ||
diff --git a/lisp/cedet/semantic/db-ebrowse.el b/lisp/cedet/semantic/db-ebrowse.el index b38e6b0a1ca..96f8285e508 100644 --- a/lisp/cedet/semantic/db-ebrowse.el +++ b/lisp/cedet/semantic/db-ebrowse.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; db-ebrowse.el --- Semanticdb backend using ebrowse. | 1 | ;;; semantic/db-ebrowse.el --- Semanticdb backend using ebrowse. |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 3 | ;;; Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -56,6 +56,12 @@ | |||
| 56 | (require 'eieio-opt) | 56 | (require 'eieio-opt) |
| 57 | ) | 57 | ) |
| 58 | (require 'semantic/db-file) | 58 | (require 'semantic/db-file) |
| 59 | (require 'semantic/db-mode) | ||
| 60 | (require 'semantic/find) | ||
| 61 | (require 'semantic/sort) | ||
| 62 | (require 'data-debug) | ||
| 63 | |||
| 64 | (declare-function semantic-add-system-include "semantic/dep") | ||
| 59 | 65 | ||
| 60 | (eval-and-compile | 66 | (eval-and-compile |
| 61 | ;; Hopefully, this will allow semanticdb-ebrowse to compile under | 67 | ;; Hopefully, this will allow semanticdb-ebrowse to compile under |
| @@ -77,6 +83,41 @@ be searched." | |||
| 77 | :group 'semanticdb | 83 | :group 'semanticdb |
| 78 | :type 'string) | 84 | :type 'string) |
| 79 | 85 | ||
| 86 | ;;; SEMANTIC Database related Code | ||
| 87 | ;;; Classes: | ||
| 88 | (defclass semanticdb-table-ebrowse (semanticdb-table) | ||
| 89 | ((major-mode :initform c++-mode) | ||
| 90 | (ebrowse-tree :initform nil | ||
| 91 | :initarg :ebrowse-tree | ||
| 92 | :documentation | ||
| 93 | "The raw ebrowse tree for this file." | ||
| 94 | ) | ||
| 95 | (global-extract :initform nil | ||
| 96 | :initarg :global-extract | ||
| 97 | :documentation | ||
| 98 | "Table of ebrowse tags specific to this file. | ||
| 99 | This table is compisited from the ebrowse *Globals* section.") | ||
| 100 | ) | ||
| 101 | "A table for returning search results from ebrowse.") | ||
| 102 | |||
| 103 | (defclass semanticdb-project-database-ebrowse | ||
| 104 | (semanticdb-project-database) | ||
| 105 | ((new-table-class :initform semanticdb-table-ebrowse | ||
| 106 | :type class | ||
| 107 | :documentation | ||
| 108 | "New tables created for this database are of this class.") | ||
| 109 | (system-include-p :initform nil | ||
| 110 | :initarg :system-include | ||
| 111 | :documentation | ||
| 112 | "Flag indicating this database represents a system include directory.") | ||
| 113 | (ebrowse-struct :initform nil | ||
| 114 | :initarg :ebrowse-struct | ||
| 115 | ) | ||
| 116 | ) | ||
| 117 | "Semantic Database deriving tags using the EBROWSE tool. | ||
| 118 | EBROWSE is a C/C++ parser for use with `ebrowse' Emacs program.") | ||
| 119 | |||
| 120 | |||
| 80 | (defun semanticdb-ebrowse-C-file-p (file) | 121 | (defun semanticdb-ebrowse-C-file-p (file) |
| 81 | "Is FILE a C or C++ file?" | 122 | "Is FILE a C or C++ file?" |
| 82 | (or (string-match semanticdb-ebrowse-file-match file) | 123 | (or (string-match semanticdb-ebrowse-file-match file) |
| @@ -187,40 +228,6 @@ warn instead." | |||
| 187 | (delete-file BFLB)) | 228 | (delete-file BFLB)) |
| 188 | ))))) | 229 | ))))) |
| 189 | 230 | ||
| 190 | ;;; SEMANTIC Database related Code | ||
| 191 | ;;; Classes: | ||
| 192 | (defclass semanticdb-table-ebrowse (semanticdb-table) | ||
| 193 | ((major-mode :initform c++-mode) | ||
| 194 | (ebrowse-tree :initform nil | ||
| 195 | :initarg :ebrowse-tree | ||
| 196 | :documentation | ||
| 197 | "The raw ebrowse tree for this file." | ||
| 198 | ) | ||
| 199 | (global-extract :initform nil | ||
| 200 | :initarg :global-extract | ||
| 201 | :documentation | ||
| 202 | "Table of ebrowse tags specific to this file. | ||
| 203 | This table is compisited from the ebrowse *Globals* section.") | ||
| 204 | ) | ||
| 205 | "A table for returning search results from ebrowse.") | ||
| 206 | |||
| 207 | (defclass semanticdb-project-database-ebrowse | ||
| 208 | (semanticdb-project-database) | ||
| 209 | ((new-table-class :initform semanticdb-table-ebrowse | ||
| 210 | :type class | ||
| 211 | :documentation | ||
| 212 | "New tables created for this database are of this class.") | ||
| 213 | (system-include-p :initform nil | ||
| 214 | :initarg :system-include | ||
| 215 | :documentation | ||
| 216 | "Flag indicating this database represents a system include directory.") | ||
| 217 | (ebrowse-struct :initform nil | ||
| 218 | :initarg :ebrowse-struct | ||
| 219 | ) | ||
| 220 | ) | ||
| 221 | "Semantic Database deriving tags using the EBROWSE tool. | ||
| 222 | EBROWSE is a C/C++ parser for use with `ebrowse' Emacs program.") | ||
| 223 | |||
| 224 | ;JAVE this just instantiates a default empty ebrowse struct? | 231 | ;JAVE this just instantiates a default empty ebrowse struct? |
| 225 | ; how would new instances wind up here? | 232 | ; how would new instances wind up here? |
| 226 | ; the ebrowse class isnt singleton, unlike the emacs lisp one | 233 | ; the ebrowse class isnt singleton, unlike the emacs lisp one |
| @@ -292,6 +299,7 @@ For instance: /home/<username>/.semanticdb/!usr!include!BROWSE" | |||
| 292 | If there is no database for DIRECTORY available, then | 299 | If there is no database for DIRECTORY available, then |
| 293 | {not implemented yet} create one. Return nil if that is not possible." | 300 | {not implemented yet} create one. Return nil if that is not possible." |
| 294 | ;; MAKE SURE THAT THE FILE LOADED DOESN'T ALREADY EXIST. | 301 | ;; MAKE SURE THAT THE FILE LOADED DOESN'T ALREADY EXIST. |
| 302 | (require 'semantic/dep) | ||
| 295 | (let ((dbs semanticdb-database-list) | 303 | (let ((dbs semanticdb-database-list) |
| 296 | (found nil)) | 304 | (found nil)) |
| 297 | (while (and (not found) dbs) | 305 | (while (and (not found) dbs) |
| @@ -425,7 +433,7 @@ Optional argument BASECLASSES specifyies a baseclass to the tree being provided. | |||
| 425 | (semanticdb-create-table dbe fname))) | 433 | (semanticdb-create-table dbe fname))) |
| 426 | (class (ebrowse-ts-class tree)) | 434 | (class (ebrowse-ts-class tree)) |
| 427 | (scope (ebrowse-cs-scope class)) | 435 | (scope (ebrowse-cs-scope class)) |
| 428 | (ns (when scope (cedet-split-string scope ":" t))) | 436 | (ns (when scope (split-string scope ":" t))) |
| 429 | (nst nil) | 437 | (nst nil) |
| 430 | (cls nil) | 438 | (cls nil) |
| 431 | ) | 439 | ) |
| @@ -703,4 +711,4 @@ run the test again..") | |||
| 703 | 711 | ||
| 704 | (provide 'semantic/db-ebrowse) | 712 | (provide 'semantic/db-ebrowse) |
| 705 | 713 | ||
| 706 | ;;; semanticdb-ebrowse.el ends here | 714 | ;;; semantic/db-ebrowse.el ends here |
diff --git a/lisp/cedet/semantic/db-find.el b/lisp/cedet/semantic/db-find.el index fb40d77d3ef..681b7d2066c 100644 --- a/lisp/cedet/semantic/db-find.el +++ b/lisp/cedet/semantic/db-find.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; db-find.el --- Searching through semantic databases. | 1 | ;;; semantic/db-find.el --- Searching through semantic databases. |
| 2 | 2 | ||
| 3 | ;;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | 3 | ;;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | ;;; 2008, 2009 Free Software Foundation, Inc. | 4 | ;;; 2008, 2009 Free Software Foundation, Inc. |
| @@ -1350,4 +1350,4 @@ Return a table of all matching tags." | |||
| 1350 | 1350 | ||
| 1351 | (provide 'semantic/db-find) | 1351 | (provide 'semantic/db-find) |
| 1352 | 1352 | ||
| 1353 | ;;; semanticdb-find.el ends here | 1353 | ;;; semantic/db-find.el ends here |
diff --git a/lisp/cedet/semantic/tag.el b/lisp/cedet/semantic/tag.el index ca4669bc0ea..ed79c11ad7f 100644 --- a/lisp/cedet/semantic/tag.el +++ b/lisp/cedet/semantic/tag.el | |||
| @@ -63,7 +63,7 @@ | |||
| 63 | (declare-function semantic-format-tag-summarize "semantic/format") | 63 | (declare-function semantic-format-tag-summarize "semantic/format") |
| 64 | (declare-function semantic-format-tag-name "semantic/format") | 64 | (declare-function semantic-format-tag-name "semantic/format") |
| 65 | 65 | ||
| 66 | (defconst semantic-tag-version semantic-version | 66 | (defconst semantic-tag-version "2.0pre7" |
| 67 | "Version string of semantic tags made with this code.") | 67 | "Version string of semantic tags made with this code.") |
| 68 | 68 | ||
| 69 | (defconst semantic-tag-incompatible-version "1.0" | 69 | (defconst semantic-tag-incompatible-version "1.0" |
diff --git a/lisp/cedet/semantic/texi.el b/lisp/cedet/semantic/texi.el index 1115ef7e051..798c02f3f18 100644 --- a/lisp/cedet/semantic/texi.el +++ b/lisp/cedet/semantic/texi.el | |||
| @@ -35,9 +35,10 @@ | |||
| 35 | (require 'semantic/db) | 35 | (require 'semantic/db) |
| 36 | (require 'semantic/db-find) | 36 | (require 'semantic/db-find) |
| 37 | (require 'semantic/ctxt) | 37 | (require 'semantic/ctxt) |
| 38 | (require 'semantic/imenu) | 38 | ;; (require 'semantic/imenu) |
| 39 | (require 'semantic/doc) | 39 | (require 'semantic/doc) |
| 40 | (require 'senator)) | 40 | ;; (require 'senator) |
| 41 | ) | ||
| 41 | 42 | ||
| 42 | (defvar semantic-texi-super-regex | 43 | (defvar semantic-texi-super-regex |
| 43 | "^@\\(top\\|chapter\\|\\(sub\\)*section\\|unnumbered\\(\\(sub\\)*sec\\)?\\|\ | 44 | "^@\\(top\\|chapter\\|\\(sub\\)*section\\|unnumbered\\(\\(sub\\)*sec\\)?\\|\ |