aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-09-06 21:22:05 +0000
committerChong Yidong2009-09-06 21:22:05 +0000
commita60f2e7b9c0567bec9ba06c73ccad235b32d8b8f (patch)
tree0675cf49c3245bbb7b750b6c6b61df980715fc17
parent6ca2fce3b8d345e619694f64c99013574000d0b3 (diff)
downloademacs-a60f2e7b9c0567bec9ba06c73ccad235b32d8b8f.tar.gz
emacs-a60f2e7b9c0567bec9ba06c73ccad235b32d8b8f.zip
Minor whitespace changes and `require' fixes.
-rw-r--r--lisp/cedet/cedet-edebug.el48
-rw-r--r--lisp/cedet/cedet.el2
-rw-r--r--lisp/cedet/data-debug.el2
-rw-r--r--lisp/cedet/semantic.el5
-rw-r--r--lisp/cedet/semantic/analyze.el2
-rw-r--r--lisp/cedet/semantic/analyze/refs.el2
-rw-r--r--lisp/cedet/semantic/bovine/c.el12
-rw-r--r--lisp/cedet/semantic/bovine/el.el6
-rw-r--r--lisp/cedet/semantic/bovine/make.el10
-rw-r--r--lisp/cedet/semantic/bovine/scm.el2
-rw-r--r--lisp/cedet/semantic/chart.el8
-rw-r--r--lisp/cedet/semantic/complete.el1
-rw-r--r--lisp/cedet/semantic/db-find.el2
-rw-r--r--lisp/cedet/semantic/db-javascript.el1
-rw-r--r--lisp/cedet/semantic/db-ref.el5
-rw-r--r--lisp/cedet/semantic/db-typecache.el3
-rw-r--r--lisp/cedet/semantic/db.el7
-rw-r--r--lisp/cedet/semantic/debug.el12
-rw-r--r--lisp/cedet/semantic/decorate/include.el2
-rw-r--r--lisp/cedet/semantic/format.el32
-rw-r--r--lisp/cedet/semantic/html.el8
-rw-r--r--lisp/cedet/semantic/idle.el1
-rw-r--r--lisp/cedet/semantic/scope.el2
-rw-r--r--lisp/cedet/semantic/tag.el19
24 files changed, 102 insertions, 92 deletions
diff --git a/lisp/cedet/cedet-edebug.el b/lisp/cedet/cedet-edebug.el
index 9548e27f5a7..3b6bcf7148c 100644
--- a/lisp/cedet/cedet-edebug.el
+++ b/lisp/cedet/cedet-edebug.el
@@ -95,31 +95,29 @@ See `cedet-edebug-prin1-extensions' for the official list."
95 ;; whack the old implementation to force a rebuild. 95 ;; whack the old implementation to force a rebuild.
96 (fmakunbound 'cedet-edebug-prin1-to-string-inner)) 96 (fmakunbound 'cedet-edebug-prin1-to-string-inner))
97 97
98;; ;;; NOTE TO SELF. Make this system used as an extension 98;;; NOTE TO SELF. Make this system used as an extension
99;; ;;; and then autoload the below. 99;;; and then autoload the below.
100;; ;;;###autoload 100(add-hook 'edebug-setup-hook
101;; (add-hook 'edebug-setup-hook 101 (lambda ()
102;; (lambda () 102 (require 'cedet-edebug)
103;; (require 'cedet-edebug) 103 ;; I suspect this isn't the best way to do this, but when
104;; ;; I suspect this isn't the best way to do this, but when 104 ;; cust-print was used on my system all my objects
105;; ;; cust-print was used on my system all my objects 105 ;; appeared as "#1 =" which was not useful. This allows
106;; ;; appeared as "#1 =" which was not useful. This allows 106 ;; edebug to print my objects in the nice way they were
107;; ;; edebug to print my objects in the nice way they were 107 ;; meant to with `object-print' and `class-name'
108;; ;; meant to with `object-print' and `class-name' 108 (defalias 'edebug-prin1-to-string 'cedet-edebug-prin1-to-string)
109;; (defalias 'edebug-prin1-to-string 'cedet-edebug-prin1-to-string) 109 ;; Add a fancy binding into EDEBUG's keymap for ADEBUG.
110;; ;; Add a fancy binding into EDEBUG's keymap for ADEBUG. 110 (define-key edebug-mode-map "A" 'data-debug-edebug-expr)
111;; (define-key edebug-mode-map "A" 'data-debug-edebug-expr) 111 ))
112;; )) 112
113 113;;; DEBUG MODE TOO
114;; ;;; DEBUG MODE TOO 114;; This seems like as good a place as any to stick this hack.
115;; ;; This seems like as good a place as any to stick this hack. 115(add-hook 'debugger-mode-hook
116;; ;;;###autoload 116 (lambda ()
117;; (add-hook 'debugger-mode-hook 117 (require 'cedet-edebug)
118;; (lambda () 118 ;; Add a fancy binding into the debug mode map for ADEBUG.
119;; (require 'cedet-edebug) 119 (define-key debugger-mode-map "A" 'data-debug-edebug-expr)
120;; ;; Add a fancy binding into the debug mode map for ADEBUG. 120 ))
121;; (define-key debugger-mode-map "A" 'data-debug-edebug-expr)
122;; ))
123 121
124(provide 'cedet-edebug) 122(provide 'cedet-edebug)
125 123
diff --git a/lisp/cedet/cedet.el b/lisp/cedet/cedet.el
index c68ccf72fe5..e089407a195 100644
--- a/lisp/cedet/cedet.el
+++ b/lisp/cedet/cedet.el
@@ -52,7 +52,7 @@
52 "Current version of CEDET.") 52 "Current version of CEDET.")
53 53
54(require 'eieio) 54(require 'eieio)
55;; (require 'semantic) 55(require 'semantic)
56;; (require 'srecode) 56;; (require 'srecode)
57;; (require 'ede) 57;; (require 'ede)
58(require 'speedbar) 58(require 'speedbar)
diff --git a/lisp/cedet/data-debug.el b/lisp/cedet/data-debug.el
index c13a90b8f3f..a82e4dbac29 100644
--- a/lisp/cedet/data-debug.el
+++ b/lisp/cedet/data-debug.el
@@ -45,7 +45,7 @@
45(require 'ring) 45(require 'ring)
46(require 'eieio) 46(require 'eieio)
47(eval-when-compile 47(eval-when-compile
48 (require 'semantic)) 48 (require 'semantic/tag))
49 49
50;;; Code: 50;;; Code:
51 51
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index ad80df38459..97780453058 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -34,7 +34,6 @@
34 (defvar semantic-version "2.0pre7" 34 (defvar semantic-version "2.0pre7"
35 "Current version of Semantic.")) 35 "Current version of Semantic."))
36 36
37;; (require 'working)
38(require 'assoc) 37(require 'assoc)
39(require 'semantic/tag) 38(require 'semantic/tag)
40(require 'semantic/lex) 39(require 'semantic/lex)
@@ -821,8 +820,8 @@ a START and END part."
821 820
822(provide 'semantic) 821(provide 'semantic)
823 822
824;;; semantic.el ends here
825
826;; Semantic-util is a part of the semantic API. Include it last 823;; Semantic-util is a part of the semantic API. Include it last
827;; because it depends on semantic. 824;; because it depends on semantic.
828(require 'semantic/util) 825(require 'semantic/util)
826
827;;; semantic.el ends here
diff --git a/lisp/cedet/semantic/analyze.el b/lisp/cedet/semantic/analyze.el
index 63c196af487..2beb41319ea 100644
--- a/lisp/cedet/semantic/analyze.el
+++ b/lisp/cedet/semantic/analyze.el
@@ -64,14 +64,12 @@
64;; constant. These need to be returned as there would be no 64;; constant. These need to be returned as there would be no
65;; other possible completions. 65;; other possible completions.
66;; 66;;
67(require 'eieio)
68(require 'semantic) 67(require 'semantic)
69(require 'semantic/format) 68(require 'semantic/format)
70(require 'semantic/ctxt) 69(require 'semantic/ctxt)
71(require 'semantic/sort) 70(require 'semantic/sort)
72(eval-when-compile (require 'semantic/find)) 71(eval-when-compile (require 'semantic/find))
73(require 'semantic/scope) 72(require 'semantic/scope)
74(require 'semantic/tag)
75(require 'semantic/analyze/fcn) 73(require 'semantic/analyze/fcn)
76 74
77;;; Code: 75;;; Code:
diff --git a/lisp/cedet/semantic/analyze/refs.el b/lisp/cedet/semantic/analyze/refs.el
index 62e68775d14..8e2f2120d69 100644
--- a/lisp/cedet/semantic/analyze/refs.el
+++ b/lisp/cedet/semantic/analyze/refs.el
@@ -321,8 +321,6 @@ Only works for tags in the global namespace."
321 (semantic-momentary-highlight-tag target)) 321 (semantic-momentary-highlight-tag target))
322 ) 322 )
323 323
324
325
326(provide 'semantic/analyze/refs) 324(provide 'semantic/analyze/refs)
327 325
328;; Local variables: 326;; Local variables:
diff --git a/lisp/cedet/semantic/bovine/c.el b/lisp/cedet/semantic/bovine/c.el
index efcbfd351ce..3f5994369e9 100644
--- a/lisp/cedet/semantic/bovine/c.el
+++ b/lisp/cedet/semantic/bovine/c.el
@@ -122,7 +122,7 @@ part of the preprocessor map.")
122 122
123(defun semantic-c-reset-preprocessor-symbol-map () 123(defun semantic-c-reset-preprocessor-symbol-map ()
124 "Reset the C preprocessor symbol map based on all input variables." 124 "Reset the C preprocessor symbol map based on all input variables."
125 (when (featurep 'semantic-c) 125 (when (featurep 'semantic/bovine/c)
126 (let ((filemap nil) 126 (let ((filemap nil)
127 ) 127 )
128 (when (and (not semantic-c-in-reset-preprocessor-table) 128 (when (and (not semantic-c-in-reset-preprocessor-table)
@@ -1592,6 +1592,7 @@ DO NOT return the list of tags encompassing point."
1592(defvar-mode-local c-mode senator-step-at-tag-classes '(function variable) 1592(defvar-mode-local c-mode senator-step-at-tag-classes '(function variable)
1593 "Tag classes where senator will stop at the end.") 1593 "Tag classes where senator will stop at the end.")
1594 1594
1595;;;###autoload
1595(defun semantic-default-c-setup () 1596(defun semantic-default-c-setup ()
1596 "Set up a buffer for semantic parsing of the C language." 1597 "Set up a buffer for semantic parsing of the C language."
1597 (semantic-c-by--install-parser) 1598 (semantic-c-by--install-parser)
@@ -1604,6 +1605,7 @@ DO NOT return the list of tags encompassing point."
1604 (add-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook nil t) 1605 (add-hook 'semantic-lex-reset-hooks 'semantic-lex-spp-reset-hook nil t)
1605 ) 1606 )
1606 1607
1608;;;###autoload
1607(defun semantic-c-add-preprocessor-symbol (sym replacement) 1609(defun semantic-c-add-preprocessor-symbol (sym replacement)
1608 "Add a preprocessor symbol SYM with a REPLACEMENT value." 1610 "Add a preprocessor symbol SYM with a REPLACEMENT value."
1609 (interactive "sSymbol: \nsReplacement: ") 1611 (interactive "sSymbol: \nsReplacement: ")
@@ -1619,7 +1621,9 @@ DO NOT return the list of tags encompassing point."
1619 (semantic-c-reset-preprocessor-symbol-map) 1621 (semantic-c-reset-preprocessor-symbol-map)
1620 ) 1622 )
1621 1623
1624;;;###autoload
1622(add-hook 'c-mode-hook 'semantic-default-c-setup) 1625(add-hook 'c-mode-hook 'semantic-default-c-setup)
1626;;;###autoload
1623(add-hook 'c++-mode-hook 'semantic-default-c-setup) 1627(add-hook 'c++-mode-hook 'semantic-default-c-setup)
1624 1628
1625;;; SETUP QUERY 1629;;; SETUP QUERY
@@ -1712,4 +1716,10 @@ DO NOT return the list of tags encompassing point."
1712 1716
1713(semantic-c-reset-preprocessor-symbol-map) 1717(semantic-c-reset-preprocessor-symbol-map)
1714 1718
1719;; Local variables:
1720;; generated-autoload-file: "../loaddefs.el"
1721;; generated-autoload-feature: semantic/loaddefs
1722;; generated-autoload-load-name: "semantic/bovine/c"
1723;; End:
1724
1715;;; semantic/bovine/c.el ends here 1725;;; semantic/bovine/c.el ends here
diff --git a/lisp/cedet/semantic/bovine/el.el b/lisp/cedet/semantic/bovine/el.el
index 5770d33d00a..596e29228f9 100644
--- a/lisp/cedet/semantic/bovine/el.el
+++ b/lisp/cedet/semantic/bovine/el.el
@@ -463,7 +463,7 @@ Return a bovination list to use."
463 (condition-case nil 463 (condition-case nil
464 ;; Try an Emacs 22 fcn. This throws errors. 464 ;; Try an Emacs 22 fcn. This throws errors.
465 (find-library-name (semantic-tag-name tag)) 465 (find-library-name (semantic-tag-name tag))
466 (error 466 (error
467 (message "semantic: connot find source file %s" 467 (message "semantic: connot find source file %s"
468 (semantic-tag-name tag)))) 468 (semantic-tag-name tag))))
469 ;; No handy function available. (Older Emacsen) 469 ;; No handy function available. (Older Emacsen)
@@ -533,14 +533,14 @@ Optional argument NOSNARF is ignored."
533 (cond ((eq (semantic-tag-class tag) 'function) 533 (cond ((eq (semantic-tag-class tag) 'function)
534 (setq d (documentation sym))) 534 (setq d (documentation sym)))
535 (t 535 (t
536 (setq d (documentation-property 536 (setq d (documentation-property
537 sym 'variable-documentation))))) 537 sym 'variable-documentation)))))
538 ;; Label it as system doc.. perhaps just for debugging 538 ;; Label it as system doc.. perhaps just for debugging
539 ;; purposes. 539 ;; purposes.
540 (if d (setq d (concat "Sytem Doc: \n" d))) 540 (if d (setq d (concat "Sytem Doc: \n" d)))
541 )) 541 ))
542 ) 542 )
543 543
544 (when d 544 (when d
545 (concat 545 (concat
546 (substitute-command-keys 546 (substitute-command-keys
diff --git a/lisp/cedet/semantic/bovine/make.el b/lisp/cedet/semantic/bovine/make.el
index c6f6e88ca30..1686ef2aa15 100644
--- a/lisp/cedet/semantic/bovine/make.el
+++ b/lisp/cedet/semantic/bovine/make.el
@@ -153,7 +153,7 @@ We never have local variables in Makefiles."
153 ) 153 )
154 (cond ((eq class 'function) 154 (cond ((eq class 'function)
155 (concat name ": " 155 (concat name ": "
156 (semantic--format-tag-arguments 156 (semantic--format-tag-arguments
157 (semantic-tag-function-arguments tag) 157 (semantic-tag-function-arguments tag)
158 #'semantic-format-tag-prototype 158 #'semantic-format-tag-prototype
159 color))) 159 color)))
@@ -205,6 +205,7 @@ Uses default implementation, and also gets a list of filenames."
205 nil 205 nil
206 "The system include path used by Makefiles langauge.") 206 "The system include path used by Makefiles langauge.")
207 207
208;;;###autoload
208(defun semantic-default-make-setup () 209(defun semantic-default-make-setup ()
209 "Set up a Makefile buffer for parsing with semantic." 210 "Set up a Makefile buffer for parsing with semantic."
210 (semantic-make-by--install-parser) 211 (semantic-make-by--install-parser)
@@ -229,8 +230,15 @@ Uses default implementation, and also gets a list of filenames."
229 (setq semantic-lex-analyzer #'semantic-make-lexer) 230 (setq semantic-lex-analyzer #'semantic-make-lexer)
230 ) 231 )
231 232
233;;;###autoload
232(add-hook 'makefile-mode-hook 'semantic-default-make-setup) 234(add-hook 'makefile-mode-hook 'semantic-default-make-setup)
233 235
234(provide 'semantic/bovine/make) 236(provide 'semantic/bovine/make)
235 237
238;; Local variables:
239;; generated-autoload-file: "../loaddefs.el"
240;; generated-autoload-feature: semantic/loaddefs
241;; generated-autoload-load-name: "semantic/bovine/make"
242;; End:
243
236;;; semantic/bovine/make.el ends here 244;;; semantic/bovine/make.el ends here
diff --git a/lisp/cedet/semantic/bovine/scm.el b/lisp/cedet/semantic/bovine/scm.el
index 2b351534cb4..e57390157ce 100644
--- a/lisp/cedet/semantic/bovine/scm.el
+++ b/lisp/cedet/semantic/bovine/scm.el
@@ -95,6 +95,7 @@ syntax as specified by the syntax table."
95 semantic-lex-number 95 semantic-lex-number
96 semantic-lex-default-action) 96 semantic-lex-default-action)
97 97
98;;;###autoload
98(defun semantic-default-scheme-setup () 99(defun semantic-default-scheme-setup ()
99 "Setup hook function for Emacs Lisp files and Semantic." 100 "Setup hook function for Emacs Lisp files and Semantic."
100 (semantic-scm-by--install-parser) 101 (semantic-scm-by--install-parser)
@@ -109,6 +110,7 @@ syntax as specified by the syntax table."
109 (setq semantic-lex-analyzer #'semantic-scheme-lexer) 110 (setq semantic-lex-analyzer #'semantic-scheme-lexer)
110 ) 111 )
111 112
113;;;###autoload
112(add-hook 'scheme-mode-hook 'semantic-default-scheme-setup) 114(add-hook 'scheme-mode-hook 'semantic-default-scheme-setup)
113 115
114(provide 'semantic/bovine/scm) 116(provide 'semantic/bovine/scm)
diff --git a/lisp/cedet/semantic/chart.el b/lisp/cedet/semantic/chart.el
index ec7685916ce..7efe4e6dfae 100644
--- a/lisp/cedet/semantic/chart.el
+++ b/lisp/cedet/semantic/chart.el
@@ -26,17 +26,13 @@
26;; the output of the semantic parser. 26;; the output of the semantic parser.
27;; 27;;
28 28
29(require 'chart)
30(require 'semantic) 29(require 'semantic)
30(require 'chart)
31(require 'semantic/db) 31(require 'semantic/db)
32(require 'semantic/tag) 32(require 'semantic/tag)
33 33
34(eval-when-compile (require 'semantic/find)) 34(eval-when-compile (require 'semantic/find))
35 35
36;; (require 'semantic/db-mode)
37;; (require 'semantic/db-typecache)
38;; (require 'semantic/scope)
39
40;;; Code: 36;;; Code:
41 37
42(defun semantic-chart-tags-by-class (&optional tagtable) 38(defun semantic-chart-tags-by-class (&optional tagtable)
@@ -173,8 +169,6 @@ items are charted. TAGTABLE is passedto
173 "Number of tags") 169 "Number of tags")
174 )) 170 ))
175 171
176
177
178(provide 'semantic/chart) 172(provide 'semantic/chart)
179 173
180;;; semantic/chart.el ends here 174;;; semantic/chart.el ends here
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el
index c29cb1de77a..1f08599221e 100644
--- a/lisp/cedet/semantic/complete.el
+++ b/lisp/cedet/semantic/complete.el
@@ -114,7 +114,6 @@
114(require 'semantic/ctxt) 114(require 'semantic/ctxt)
115(require 'semantic/decorate) 115(require 'semantic/decorate)
116(require 'semantic/format) 116(require 'semantic/format)
117(require 'semantic/tag)
118 117
119(eval-when-compile 118(eval-when-compile
120 ;; For the semantic-find-tags-for-completion macro. 119 ;; For the semantic-find-tags-for-completion macro.
diff --git a/lisp/cedet/semantic/db-find.el b/lisp/cedet/semantic/db-find.el
index 5746441852c..1066ffd642f 100644
--- a/lisp/cedet/semantic/db-find.el
+++ b/lisp/cedet/semantic/db-find.el
@@ -748,7 +748,7 @@ for details on how this list is derived."
748 (semantic-fetch-tags) 748 (semantic-fetch-tags)
749 (require 'data-debug) 749 (require 'data-debug)
750 (let* ((semanticdb-find-default-throttle 750 (let* ((semanticdb-find-default-throttle
751 (if (featurep 'semanticdb-find) 751 (if (featurep 'semantic/db-find)
752 (remq 'unloaded semanticdb-find-default-throttle) 752 (remq 'unloaded semanticdb-find-default-throttle)
753 nil)) 753 nil))
754 (start (current-time)) 754 (start (current-time))
diff --git a/lisp/cedet/semantic/db-javascript.el b/lisp/cedet/semantic/db-javascript.el
index 02c089e6ee9..42203806fd4 100644
--- a/lisp/cedet/semantic/db-javascript.el
+++ b/lisp/cedet/semantic/db-javascript.el
@@ -306,7 +306,6 @@ Return a list of tags."
306;; function encodeURI (uri){} 306;; function encodeURI (uri){}
307;; function encodeURIComponent (uriComponent){} 307;; function encodeURIComponent (uriComponent){}
308 308
309
310(provide 'semantic/db-javascript) 309(provide 'semantic/db-javascript)
311 310
312;;; semantic/db-javascript.el ends here 311;;; semantic/db-javascript.el ends here
diff --git a/lisp/cedet/semantic/db-ref.el b/lisp/cedet/semantic/db-ref.el
index 97da206abff..d7e01d88db9 100644
--- a/lisp/cedet/semantic/db-ref.el
+++ b/lisp/cedet/semantic/db-ref.el
@@ -41,13 +41,9 @@
41(require 'semantic/db) 41(require 'semantic/db)
42(require 'semantic/tag) 42(require 'semantic/tag)
43 43
44(defvar semanticdb-find-default-throttle)
45
46;; For the semantic-find-tags-by-name-regexp macro. 44;; For the semantic-find-tags-by-name-regexp macro.
47(eval-when-compile (require 'semantic/find)) 45(eval-when-compile (require 'semantic/find))
48 46
49(defvar semantic-case-fold)
50
51(defmethod semanticdb-add-reference ((dbt semanticdb-abstract-table) 47(defmethod semanticdb-add-reference ((dbt semanticdb-abstract-table)
52 include-tag) 48 include-tag)
53 "Add a reference for the database table DBT based on INCLUDE-TAG. 49 "Add a reference for the database table DBT based on INCLUDE-TAG.
@@ -149,7 +145,6 @@ DBT, the second argument is DBT."
149 (i-include :initarg :i-include)) 145 (i-include :initarg :i-include))
150 "Simple class to allow ADEBUG to show a nice list.") 146 "Simple class to allow ADEBUG to show a nice list.")
151 147
152(defvar semanticdb-current-table)
153(declare-function data-debug-new-buffer "data-debug") 148(declare-function data-debug-new-buffer "data-debug")
154(declare-function data-debug-insert-object-slots "eieio-datadebug") 149(declare-function data-debug-insert-object-slots "eieio-datadebug")
155 150
diff --git a/lisp/cedet/semantic/db-typecache.el b/lisp/cedet/semantic/db-typecache.el
index 20d8851d90c..9f5b8dadc69 100644
--- a/lisp/cedet/semantic/db-typecache.el
+++ b/lisp/cedet/semantic/db-typecache.el
@@ -31,14 +31,11 @@
31(require 'semantic) 31(require 'semantic)
32(require 'semantic/db) 32(require 'semantic/db)
33(require 'semantic/db-find) 33(require 'semantic/db-find)
34(require 'semantic/tag)
35(require 'semantic/analyze/fcn) 34(require 'semantic/analyze/fcn)
36 35
37;; For semantic-find-tags-by-* macros 36;; For semantic-find-tags-by-* macros
38(eval-when-compile (require 'semantic/find)) 37(eval-when-compile (require 'semantic/find))
39 38
40;; (require 'semantic/scope)
41
42(declare-function data-debug-insert-thing "data-debug") 39(declare-function data-debug-insert-thing "data-debug")
43(declare-function data-debug-new-buffer "data-debug") 40(declare-function data-debug-new-buffer "data-debug")
44(declare-function semantic-sort-tags-by-name-then-type-increasing "semantic/sort") 41(declare-function semantic-sort-tags-by-name-then-type-increasing "semantic/sort")
diff --git a/lisp/cedet/semantic/db.el b/lisp/cedet/semantic/db.el
index 6fe79516b20..22c474cc0b2 100644
--- a/lisp/cedet/semantic/db.el
+++ b/lisp/cedet/semantic/db.el
@@ -30,9 +30,6 @@
30;; 30;;
31 31
32(require 'eieio) 32(require 'eieio)
33;; (require 'inversion)
34;; (eval-and-compile
35;; (inversion-require 'eieio "1.0"))
36(require 'eieio-base) 33(require 'eieio-base)
37(require 'semantic) 34(require 'semantic)
38(eval-when-compile 35(eval-when-compile
@@ -590,7 +587,7 @@ The file associated with OBJ does not need to be in a buffer."
590 ;; Assume it is now up to date. 587 ;; Assume it is now up to date.
591 (oset table unmatched-syntax semantic-unmatched-syntax-cache) 588 (oset table unmatched-syntax semantic-unmatched-syntax-cache)
592 ;; The lexical table should be good too. 589 ;; The lexical table should be good too.
593 (when (featurep 'semantic-lex-spp) 590 (when (featurep 'semantic/lex-spp)
594 (oset table lexical-table (semantic-lex-spp-save-table))) 591 (oset table lexical-table (semantic-lex-spp-save-table)))
595 ;; this implies dirtyness 592 ;; this implies dirtyness
596 (semanticdb-set-dirty table) 593 (semanticdb-set-dirty table)
@@ -619,7 +616,7 @@ The file associated with OBJ does not need to be in a buffer."
619 (semanticdb-set-dirty table) 616 (semanticdb-set-dirty table)
620 617
621 ;; The lexical table may be modified. 618 ;; The lexical table may be modified.
622 (when (featurep 'semantic-lex-spp) 619 (when (featurep 'semantic/lex-spp)
623 (oset table lexical-table (semantic-lex-spp-save-table))) 620 (oset table lexical-table (semantic-lex-spp-save-table)))
624 621
625 ;; Incremental parser doesn't mokey around with this. 622 ;; Incremental parser doesn't mokey around with this.
diff --git a/lisp/cedet/semantic/debug.el b/lisp/cedet/semantic/debug.el
index 31100e075c2..c805a2c8e9a 100644
--- a/lisp/cedet/semantic/debug.el
+++ b/lisp/cedet/semantic/debug.el
@@ -38,16 +38,22 @@
38 38
39(require 'semantic) 39(require 'semantic)
40(require 'eieio) 40(require 'eieio)
41(eval-when-compile (require 'semantic/find))
41 42
42;;; Code: 43;;; Code:
44
45;;;###autoload
43(defvar semantic-debug-parser-source nil 46(defvar semantic-debug-parser-source nil
44 "For any buffer, the file name (no path) of the parser. 47 "For any buffer, the file name (no path) of the parser.
45This would be a parser for a specific language, not the source 48This would be a parser for a specific language, not the source
46to one of the parser generators.") 49to one of the parser generators.")
50;;;###autoload
47(make-variable-buffer-local 'semantic-debug-parser-source) 51(make-variable-buffer-local 'semantic-debug-parser-source)
48 52
53;;;###autoload
49(defvar semantic-debug-parser-class nil 54(defvar semantic-debug-parser-class nil
50 "Class to create when building a debug parser object.") 55 "Class to create when building a debug parser object.")
56;;;###autoload
51(make-variable-buffer-local 'semantic-debug-parser-class) 57(make-variable-buffer-local 'semantic-debug-parser-class)
52 58
53(defvar semantic-debug-enabled nil 59(defvar semantic-debug-enabled nil
@@ -561,4 +567,10 @@ A frame is of the form:
561 567
562(provide 'semantic/debug) 568(provide 'semantic/debug)
563 569
570;; Local variables:
571;; generated-autoload-file: "loaddefs.el"
572;; generated-autoload-feature: semantic/loaddefs
573;; generated-autoload-load-name: "semantic/debug"
574;; End:
575
564;;; semantic/debug.el ends here 576;;; semantic/debug.el ends here
diff --git a/lisp/cedet/semantic/decorate/include.el b/lisp/cedet/semantic/decorate/include.el
index c641dc74e1d..7acae52a58d 100644
--- a/lisp/cedet/semantic/decorate/include.el
+++ b/lisp/cedet/semantic/decorate/include.el
@@ -668,7 +668,7 @@ Argument EVENT describes the event that caused this function to be called."
668 )) 668 ))
669 669
670 (let* ((semanticdb-find-default-throttle 670 (let* ((semanticdb-find-default-throttle
671 (if (featurep 'semanticdb-find) 671 (if (featurep 'semantic/db-find)
672 (remq 'unloaded semanticdb-find-default-throttle) 672 (remq 'unloaded semanticdb-find-default-throttle)
673 nil)) 673 nil))
674 (path (semanticdb-find-translate-path nil nil))) 674 (path (semanticdb-find-translate-path nil nil)))
diff --git a/lisp/cedet/semantic/format.el b/lisp/cedet/semantic/format.el
index 9f5256134a4..f967740ad2b 100644
--- a/lisp/cedet/semantic/format.el
+++ b/lisp/cedet/semantic/format.el
@@ -34,7 +34,6 @@
34 34
35;;; Code: 35;;; Code:
36(require 'semantic) 36(require 'semantic)
37(require 'semantic/tag)
38(require 'semantic/tag-ls) 37(require 'semantic/tag-ls)
39(require 'ezimage) 38(require 'ezimage)
40 39
@@ -103,6 +102,20 @@ The name is the shortest possible representation.
103Optional argument PARENT is the parent type if TAG is a detail. 102Optional argument PARENT is the parent type if TAG is a detail.
104Optional argument COLOR means highlight the prototype with font-lock colors.") 103Optional argument COLOR means highlight the prototype with font-lock colors.")
105 104
105(defun semantic-format-tag-name-default (tag &optional parent color)
106 "Return an abbreviated string describing TAG.
107Optional argument PARENT is the parent type if TAG is a detail.
108Optional argument COLOR means highlight the prototype with font-lock colors."
109 (let ((name (semantic-tag-name tag))
110 (destructor
111 (if (eq (semantic-tag-class tag) 'function)
112 (semantic-tag-function-destructor-p tag))))
113 (when destructor
114 (setq name (concat "~" name)))
115 (if color
116 (setq name (semantic--format-colorize-text name (semantic-tag-class tag))))
117 name))
118
106;;;###autoload 119;;;###autoload
107(define-overloadable-function semantic-format-tag-prototype (tag &optional parent color) 120(define-overloadable-function semantic-format-tag-prototype (tag &optional parent color)
108 "Return a prototype for TAG. 121 "Return a prototype for TAG.
@@ -298,20 +311,6 @@ of FACE-CLASS for which this is used."
298 (stringp (car anything))) 311 (stringp (car anything)))
299 (semantic--format-colorize-text (car anything) colorhint)))) 312 (semantic--format-colorize-text (car anything) colorhint))))
300 313
301(defun semantic-format-tag-name-default (tag &optional parent color)
302 "Return an abbreviated string describing TAG.
303Optional argument PARENT is the parent type if TAG is a detail.
304Optional argument COLOR means highlight the prototype with font-lock colors."
305 (let ((name (semantic-tag-name tag))
306 (destructor
307 (if (eq (semantic-tag-class tag) 'function)
308 (semantic-tag-function-destructor-p tag))))
309 (when destructor
310 (setq name (concat "~" name)))
311 (if color
312 (setq name (semantic--format-colorize-text name (semantic-tag-class tag))))
313 name))
314
315(declare-function semantic-go-to-tag "semantic/tag-file") 314(declare-function semantic-go-to-tag "semantic/tag-file")
316 315
317(defun semantic--format-tag-parent-tree (tag parent) 316(defun semantic--format-tag-parent-tree (tag parent)
@@ -477,7 +476,6 @@ Optional argument COLOR means highlight the prototype with font-lock colors.")
477 "Display a short form of TAG's documentation. (Comments, or docstring.) 476 "Display a short form of TAG's documentation. (Comments, or docstring.)
478Optional argument PARENT is the parent type if TAG is a detail. 477Optional argument PARENT is the parent type if TAG is a detail.
479Optional argument COLOR means highlight the prototype with font-lock colors." 478Optional argument COLOR means highlight the prototype with font-lock colors."
480
481 (let* ((fname (or (semantic-tag-file-name tag) 479 (let* ((fname (or (semantic-tag-file-name tag)
482 (when parent (semantic-tag-file-name parent)))) 480 (when parent (semantic-tag-file-name parent))))
483 (buf (or (semantic-tag-buffer tag) 481 (buf (or (semantic-tag-buffer tag)
@@ -507,7 +505,7 @@ Optional argument COLOR means highlight the prototype with font-lock colors."
507 )) 505 ))
508 506
509;;; Prototype generation 507;;; Prototype generation
510;; 508
511(defun semantic-format-tag-prototype-default (tag &optional parent color) 509(defun semantic-format-tag-prototype-default (tag &optional parent color)
512 "Default method for returning a prototype for TAG. 510 "Default method for returning a prototype for TAG.
513This will work for C like languages. 511This will work for C like languages.
diff --git a/lisp/cedet/semantic/html.el b/lisp/cedet/semantic/html.el
index a815792c648..5ed7908f893 100644
--- a/lisp/cedet/semantic/html.el
+++ b/lisp/cedet/semantic/html.el
@@ -230,6 +230,7 @@ tag with greater section value than LEVEL is found."
230 "The children TAG expands to." 230 "The children TAG expands to."
231 (semantic-html-components tag)) 231 (semantic-html-components tag))
232 232
233;;;###autoload
233(defun semantic-default-html-setup () 234(defun semantic-default-html-setup ()
234 "Set up a buffer for parsing of HTML files." 235 "Set up a buffer for parsing of HTML files."
235 ;; This will use our parser. 236 ;; This will use our parser.
@@ -253,6 +254,7 @@ tag with greater section value than LEVEL is found."
253 t) 254 t)
254 ) 255 )
255 256
257;;;###autoload
256(add-hook 'html-mode-hook 'semantic-default-html-setup) 258(add-hook 'html-mode-hook 'semantic-default-html-setup)
257 259
258(define-child-mode html-helper-mode html-mode 260(define-child-mode html-helper-mode html-mode
@@ -260,4 +262,10 @@ tag with greater section value than LEVEL is found."
260 262
261(provide 'semantic/html) 263(provide 'semantic/html)
262 264
265;; Local variables:
266;; generated-autoload-file: "loaddefs.el"
267;; generated-autoload-feature: semantic/loaddefs
268;; generated-autoload-load-name: "semantic/html"
269;; End:
270
263;;; semantic/html.el ends here 271;;; semantic/html.el ends here
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el
index af96b26a9c5..dedeb465099 100644
--- a/lisp/cedet/semantic/idle.el
+++ b/lisp/cedet/semantic/idle.el
@@ -41,7 +41,6 @@
41(require 'semantic/ctxt) 41(require 'semantic/ctxt)
42(require 'semantic/format) 42(require 'semantic/format)
43(require 'semantic/tag) 43(require 'semantic/tag)
44;(require 'semantic/util-modes)
45(require 'timer) 44(require 'timer)
46 45
47;; For the semantic-find-tags-by-name macro. 46;; For the semantic-find-tags-by-name macro.
diff --git a/lisp/cedet/semantic/scope.el b/lisp/cedet/semantic/scope.el
index 5a90b1095c8..a8654e90c07 100644
--- a/lisp/cedet/semantic/scope.el
+++ b/lisp/cedet/semantic/scope.el
@@ -49,7 +49,7 @@
49(require 'semantic/analyze/fcn) 49(require 'semantic/analyze/fcn)
50(require 'semantic/ctxt) 50(require 'semantic/ctxt)
51 51
52(eval-when-compile (require 'semantic/find)) ; For semantic-find-* macros 52(eval-when-compile (require 'semantic/find))
53 53
54(declare-function data-debug-show "eieio-datadebug") 54(declare-function data-debug-show "eieio-datadebug")
55(declare-function semantic-analyze-find-tag "semantic/analyze") 55(declare-function semantic-analyze-find-tag "semantic/analyze")
diff --git a/lisp/cedet/semantic/tag.el b/lisp/cedet/semantic/tag.el
index cf4967d3ffc..febe4046f84 100644
--- a/lisp/cedet/semantic/tag.el
+++ b/lisp/cedet/semantic/tag.el
@@ -333,6 +333,14 @@ If TAG is unlinked, but has a :filename property, then that is used."
333That is the value of the `:members' attribute." 333That is the value of the `:members' attribute."
334 (semantic-tag-get-attribute tag :members)) 334 (semantic-tag-get-attribute tag :members))
335 335
336(defsubst semantic-tag-type (tag)
337 "Return the value of the `:type' attribute of TAG.
338For a function it would be the data type of the return value.
339For a variable, it is the storage type of that variable.
340For a data type, the type is the style of datatype, such as
341struct or union."
342 (semantic-tag-get-attribute tag :type))
343
336(defun semantic-tag-with-position-p (tag) 344(defun semantic-tag-with-position-p (tag)
337 "Return non-nil if TAG has positional information." 345 "Return non-nil if TAG has positional information."
338 (and (semantic-tag-p tag) 346 (and (semantic-tag-p tag)
@@ -356,14 +364,6 @@ of different cons cells."
356 (equal (semantic-tag-bounds tag1) 364 (equal (semantic-tag-bounds tag1)
357 (semantic-tag-bounds tag2)))))) 365 (semantic-tag-bounds tag2))))))
358 366
359(defsubst semantic-tag-type (tag)
360 "Return the value of the `:type' attribute of TAG.
361For a function it would be the data type of the return value.
362For a variable, it is the storage type of that variable.
363For a data type, the type is the style of datatype, such as
364struct or union."
365 (semantic-tag-get-attribute tag :type))
366
367(defun semantic-tag-similar-p (tag1 tag2 &rest ignorable-attributes) 367(defun semantic-tag-similar-p (tag1 tag2 &rest ignorable-attributes)
368 "Test to see if TAG1 and TAG2 are similar. 368 "Test to see if TAG1 and TAG2 are similar.
369Two tags are similar if their name, datatype, and various attributes 369Two tags are similar if their name, datatype, and various attributes
@@ -752,7 +752,6 @@ It is safe for FILTER to modify the input tag and return it."
752 752
753;;; Common 753;;; Common
754;; 754;;
755
756(defsubst semantic-tag-modifiers (tag) 755(defsubst semantic-tag-modifiers (tag)
757 "Return the value of the `:typemodifiers' attribute of TAG." 756 "Return the value of the `:typemodifiers' attribute of TAG."
758 (semantic-tag-get-attribute tag :typemodifiers)) 757 (semantic-tag-get-attribute tag :typemodifiers))
@@ -814,6 +813,7 @@ If a simple search doesn't do it, try splitting up the names
814in SUPERS." 813in SUPERS."
815 (let ((stag nil)) 814 (let ((stag nil))
816 (setq stag (semantic-find-first-tag-by-name name supers)) 815 (setq stag (semantic-find-first-tag-by-name name supers))
816
817 (when (not stag) 817 (when (not stag)
818 (require 'semantic/analyze/fcn) 818 (require 'semantic/analyze/fcn)
819 (dolist (S supers) 819 (dolist (S supers)
@@ -1112,7 +1112,6 @@ For any given situation, additional ARGS may be passed."
1112;; Overlays are used so that we can quickly identify tags from 1112;; Overlays are used so that we can quickly identify tags from
1113;; buffer positions and regions using built in Emacs commands. 1113;; buffer positions and regions using built in Emacs commands.
1114;; 1114;;
1115
1116(defsubst semantic--tag-unlink-list-from-buffer (tags) 1115(defsubst semantic--tag-unlink-list-from-buffer (tags)
1117 "Convert TAGS from using an overlay to using an overlay proxy. 1116 "Convert TAGS from using an overlay to using an overlay proxy.
1118This function is for internal use only." 1117This function is for internal use only."