aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet
diff options
context:
space:
mode:
authorEli Zaretskii2010-01-22 15:40:56 -0500
committerEli Zaretskii2010-01-22 15:40:56 -0500
commitcf206f28eb11467aed7f5e03f3e4df7724fd98d2 (patch)
tree2f5695e6a774a918874b82c286f140abd052d860 /lisp/cedet
parent5a876cd5f810b611f78dd4cf7a1673bffeea19a9 (diff)
parentc893016b07f33eb8d56e1011245fe59a67cb4ee0 (diff)
downloademacs-cf206f28eb11467aed7f5e03f3e4df7724fd98d2.tar.gz
emacs-cf206f28eb11467aed7f5e03f3e4df7724fd98d2.zip
Merge from mainline.
Diffstat (limited to 'lisp/cedet')
-rw-r--r--lisp/cedet/cedet-files.el2
-rw-r--r--lisp/cedet/ede/locate.el26
-rw-r--r--lisp/cedet/ede/proj-aux.el2
-rw-r--r--lisp/cedet/semantic.el54
-rw-r--r--lisp/cedet/semantic/db-ebrowse.el12
-rw-r--r--lisp/cedet/semantic/db-el.el14
-rw-r--r--lisp/cedet/semantic/db-find.el30
-rw-r--r--lisp/cedet/semantic/db-global.el12
-rw-r--r--lisp/cedet/semantic/db-javascript.el18
-rw-r--r--lisp/cedet/semantic/idle.el10
-rw-r--r--lisp/cedet/semantic/util-modes.el20
-rw-r--r--lisp/cedet/srecode/dictionary.el4
-rw-r--r--lisp/cedet/srecode/extract.el2
13 files changed, 103 insertions, 103 deletions
diff --git a/lisp/cedet/cedet-files.el b/lisp/cedet/cedet-files.el
index 5d149ee7560..9dacf062288 100644
--- a/lisp/cedet/cedet-files.el
+++ b/lisp/cedet/cedet-files.el
@@ -69,7 +69,7 @@ specific conversions during tests."
69 (let ((file referencefile)) 69 (let ((file referencefile))
70 ;; Replace the ! with / 70 ;; Replace the ! with /
71 (setq file (subst-char-in-string ?! ?/ file)) 71 (setq file (subst-char-in-string ?! ?/ file))
72 ;; Occurances of // meant there was once a single !. 72 ;; Occurrences of // meant there was once a single !.
73 (setq file (replace-regexp-in-string "//" "!" file)) 73 (setq file (replace-regexp-in-string "//" "!" file))
74 74
75 ;; Handle Windows special cases 75 ;; Handle Windows special cases
diff --git a/lisp/cedet/ede/locate.el b/lisp/cedet/ede/locate.el
index 0f9e4b22be2..099e193f010 100644
--- a/lisp/cedet/ede/locate.el
+++ b/lisp/cedet/ede/locate.el
@@ -97,7 +97,7 @@ based on `ede-locate-setup-options'."
97 (setq ans 'ede-locate-base)) 97 (setq ans 'ede-locate-base))
98 (oset proj locate-obj (make-instance ans "Loc" :root root)) 98 (oset proj locate-obj (make-instance ans "Loc" :root root))
99 (when (called-interactively-p 'interactive) 99 (when (called-interactively-p 'interactive)
100 (message "Setting locator to %s." ans)) 100 (message "Setting locator to %s" ans))
101 )) 101 ))
102 102
103;;; LOCATE BASECLASS 103;;; LOCATE BASECLASS
@@ -142,9 +142,9 @@ based on `ede-locate-setup-options'."
142(defmethod ede-locate-file-in-project ((loc ede-locate-base) 142(defmethod ede-locate-file-in-project ((loc ede-locate-base)
143 filesubstring 143 filesubstring
144 ) 144 )
145 "Locate with LOC occurances of FILESUBSTRING. 145 "Locate with LOC occurrences of FILESUBSTRING.
146Searches are done under the current root of the EDE project 146Searches are done under the current root of the EDE project
147that crated this ede locat object." 147that created this EDE locate object."
148 (let ((ans (ede-locate-file-in-project-impl loc filesubstring)) 148 (let ((ans (ede-locate-file-in-project-impl loc filesubstring))
149 ) 149 )
150 (oset loc file filesubstring) 150 (oset loc file filesubstring)
@@ -154,9 +154,9 @@ that crated this ede locat object."
154(defmethod ede-locate-file-in-project-impl ((loc ede-locate-base) 154(defmethod ede-locate-file-in-project-impl ((loc ede-locate-base)
155 filesubstring 155 filesubstring
156 ) 156 )
157 "Locate with LOC occurances of FILESUBSTRING. 157 "Locate with LOC occurrences of FILESUBSTRING.
158Searches are done under the current root of the EDE project 158Searches are done under the current root of the EDE project
159that crated this ede locat object." 159that created this EDE locate object."
160 nil 160 nil
161 ) 161 )
162 162
@@ -180,9 +180,9 @@ configure the use of EDE locate.")
180 180
181(defmethod ede-locate-file-in-project-impl ((loc ede-locate-locate) 181(defmethod ede-locate-file-in-project-impl ((loc ede-locate-locate)
182 filesubstring) 182 filesubstring)
183 "Locate with LOC occurances of FILESUBSTRING under PROJECTROOT. 183 "Locate with LOC occurrences of FILESUBSTRING under PROJECTROOT.
184Searches are done under the current root of the EDE project 184Searches are done under the current root of the EDE project
185that crated this ede locat object." 185that created this EDE locate object."
186 ;; We want something like: 186 ;; We want something like:
187 ;; /my/project/root*/filesubstring.c 187 ;; /my/project/root*/filesubstring.c
188 (let* ((searchstr (concat (directory-file-name (oref loc root)) 188 (let* ((searchstr (concat (directory-file-name (oref loc root))
@@ -235,9 +235,9 @@ variable `cedet-global-command'.")
235 235
236(defmethod ede-locate-file-in-project-impl ((loc ede-locate-global) 236(defmethod ede-locate-file-in-project-impl ((loc ede-locate-global)
237 filesubstring) 237 filesubstring)
238 "Locate with LOC occurances of FILESUBSTRING under PROJECTROOT. 238 "Locate with LOC occurrences of FILESUBSTRING under PROJECTROOT.
239Searches are done under the current root of the EDE project 239Searches are done under the current root of the EDE project
240that crated this ede locat object." 240that created this EDE locate object."
241 (require 'cedet-global) 241 (require 'cedet-global)
242 (let ((default-directory (oref loc root))) 242 (let ((default-directory (oref loc root)))
243 (cedet-gnu-global-expand-filename filesubstring))) 243 (cedet-gnu-global-expand-filename filesubstring)))
@@ -273,9 +273,9 @@ file name searching variable `cedet-idutils-file-command'.")
273 273
274(defmethod ede-locate-file-in-project-impl ((loc ede-locate-idutils) 274(defmethod ede-locate-file-in-project-impl ((loc ede-locate-idutils)
275 filesubstring) 275 filesubstring)
276 "Locate with LOC occurances of FILESUBSTRING under PROJECTROOT. 276 "Locate with LOC occurrences of FILESUBSTRING under PROJECTROOT.
277Searches are done under the current root of the EDE project 277Searches are done under the current root of the EDE project
278that crated this ede locat object." 278that created this EDE locate object."
279 (require 'cedet-idutils) 279 (require 'cedet-idutils)
280 (let ((default-directory (oref loc root))) 280 (let ((default-directory (oref loc root)))
281 (cedet-idutils-expand-filename filesubstring))) 281 (cedet-idutils-expand-filename filesubstring)))
@@ -309,9 +309,9 @@ file name searching variable `cedet-cscope-file-command'.")
309 309
310(defmethod ede-locate-file-in-project-impl ((loc ede-locate-cscope) 310(defmethod ede-locate-file-in-project-impl ((loc ede-locate-cscope)
311 filesubstring) 311 filesubstring)
312 "Locate with LOC occurances of FILESUBSTRING under PROJECTROOT. 312 "Locate with LOC occurrences of FILESUBSTRING under PROJECTROOT.
313Searches are done under the current root of the EDE project 313Searches are done under the current root of the EDE project
314that crated this ede locat object." 314that created this EDE locate object."
315 (let ((default-directory (oref loc root))) 315 (let ((default-directory (oref loc root)))
316 (cedet-cscope-expand-filename filesubstring))) 316 (cedet-cscope-expand-filename filesubstring)))
317 317
diff --git a/lisp/cedet/ede/proj-aux.el b/lisp/cedet/ede/proj-aux.el
index 9011c62674f..26bc9540e82 100644
--- a/lisp/cedet/ede/proj-aux.el
+++ b/lisp/cedet/ede/proj-aux.el
@@ -1,4 +1,4 @@
1;;; ede/proj-aux.el --- EDE Generic Project auxilliary file support 1;;; ede/proj-aux.el --- EDE Generic Project auxiliary file support
2 2
3;; Copyright (C) 1998, 1999, 2000, 2007, 2009, 2010 Free Software Foundation, Inc. 3;; Copyright (C) 1998, 1999, 2000, 2007, 2009, 2010 Free Software Foundation, Inc.
4 4
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el
index 108a8c4b294..b7d5f700d78 100644
--- a/lisp/cedet/semantic.el
+++ b/lisp/cedet/semantic.el
@@ -45,7 +45,7 @@
45(declare-function semanticdb-load-ebrowse-caches "semantic/db-ebrowse") 45(declare-function semanticdb-load-ebrowse-caches "semantic/db-ebrowse")
46 46
47(defun semantic-require-version (major minor &optional beta) 47(defun semantic-require-version (major minor &optional beta)
48 "Non-nil if this version of semantic does not satisfy a specific version. 48 "Non-nil if this version of Semantic does not satisfy a specific version.
49Arguments can be: 49Arguments can be:
50 50
51 (MAJOR MINOR &optional BETA) 51 (MAJOR MINOR &optional BETA)
@@ -130,7 +130,7 @@ this is returned instead of re-parsing the buffer.
130 DO NOT USE THIS VARIABLE IN PROGRAMS. 130 DO NOT USE THIS VARIABLE IN PROGRAMS.
131 131
132If you need a tag list, use `semantic-fetch-tags'. If you need the 132If you need a tag list, use `semantic-fetch-tags'. If you need the
133cached values for some reason, chances are you can, add a hook to 133cached values for some reason, chances are you can add a hook to
134`semantic-after-toplevel-cache-change-hook'.") 134`semantic-after-toplevel-cache-change-hook'.")
135(make-variable-buffer-local 'semantic--buffer-cache) 135(make-variable-buffer-local 'semantic--buffer-cache)
136(semantic-varalias-obsolete 'semantic-toplevel-bovine-cache 136(semantic-varalias-obsolete 'semantic-toplevel-bovine-cache
@@ -141,7 +141,7 @@ cached values for some reason, chances are you can, add a hook to
141(make-variable-buffer-local 'semantic-unmatched-syntax-cache) 141(make-variable-buffer-local 'semantic-unmatched-syntax-cache)
142 142
143(defvar semantic-unmatched-syntax-cache-check nil 143(defvar semantic-unmatched-syntax-cache-check nil
144 "Non nil if the unmatched syntax cache is out of date. 144 "Non-nil if the unmatched syntax cache is out of date.
145This is tracked with `semantic-change-function'.") 145This is tracked with `semantic-change-function'.")
146(make-variable-buffer-local 'semantic-unmatched-syntax-cache-check) 146(make-variable-buffer-local 'semantic-unmatched-syntax-cache-check)
147 147
@@ -154,18 +154,18 @@ will not change the tag structure, such as adding or updating
154`top-level' comments.") 154`top-level' comments.")
155 155
156(defvar semantic-unmatched-syntax-hook nil 156(defvar semantic-unmatched-syntax-hook nil
157 "Hooks run when semantic detects syntax not matched in a grammar. 157 "Hooks run when Semantic detects syntax not matched in a grammar.
158Each individual piece of syntax (such as a symbol or punctuation 158Each individual piece of syntax (such as a symbol or punctuation
159character) is called with this hook when it doesn't match in the 159character) is called with this hook when it doesn't match in the
160grammar, and multiple unmatched syntax elements are not grouped 160grammar, and multiple unmatched syntax elements are not grouped
161together. Each hook is called with one argument, which is a list of 161together. Each hook is called with one argument, which is a list
162syntax tokens created by the semantic lexer. Use the functions 162of syntax tokens created by the semantic lexer. Use the functions
163`semantic-lex-token-start', `semantic-lex-token-end' and 163`semantic-lex-token-start', `semantic-lex-token-end' and
164`semantic-lex-token-text' to get information about these tokens. The 164`semantic-lex-token-text' to get information about these tokens.
165current buffer is the buffer these tokens are derived from.") 165The current buffer is the buffer these tokens are derived from.")
166 166
167(defvar semantic--before-fetch-tags-hook nil 167(defvar semantic--before-fetch-tags-hook nil
168 "Hooks run before a buffer is parses for tags. 168 "Hooks run before a buffer is parsed for tags.
169It is called before any request for tags is made via the function 169It is called before any request for tags is made via the function
170`semantic-fetch-tags' by an application. 170`semantic-fetch-tags' by an application.
171If any hook returns a nil value, the cached value is returned 171If any hook returns a nil value, the cached value is returned
@@ -311,7 +311,7 @@ a parse of the buffer.")
311 'semantic-init-db-hook "23.2") 311 'semantic-init-db-hook "23.2")
312 312
313(defvar semantic-new-buffer-fcn-was-run nil 313(defvar semantic-new-buffer-fcn-was-run nil
314 "Non nil after `semantic-new-buffer-fcn' has been executed.") 314 "Non-nil after `semantic-new-buffer-fcn' has been executed.")
315(make-variable-buffer-local 'semantic-new-buffer-fcn-was-run) 315(make-variable-buffer-local 'semantic-new-buffer-fcn-was-run)
316 316
317(defsubst semantic-active-p () 317(defsubst semantic-active-p ()
@@ -320,7 +320,7 @@ a parse of the buffer.")
320 320
321(defsubst semantic--umatched-syntax-needs-refresh-p () 321(defsubst semantic--umatched-syntax-needs-refresh-p ()
322 "Return non-nil if the unmatched syntax cache needs a refresh. 322 "Return non-nil if the unmatched syntax cache needs a refresh.
323That is if it is dirty or if the current parse tree isn't up to date." 323That is, if it is dirty or if the current parse tree isn't up to date."
324 (or semantic-unmatched-syntax-cache-check 324 (or semantic-unmatched-syntax-cache-check
325 (not (semantic-parse-tree-up-to-date-p)))) 325 (not (semantic-parse-tree-up-to-date-p))))
326 326
@@ -377,7 +377,7 @@ to use Semantic, and `semantic-init-hook' is run."
377Do not set this yourself. Call `semantic-debug'.") 377Do not set this yourself. Call `semantic-debug'.")
378 378
379(defun semantic-elapsed-time (start end) 379(defun semantic-elapsed-time (start end)
380 "Copied from elp.el. Was elp-elapsed-time. 380 "Copied from elp.el. Was `elp-elapsed-time'.
381Argument START and END bound the time being calculated." 381Argument START and END bound the time being calculated."
382 (+ (* (- (car end) (car start)) 65536.0) 382 (+ (* (- (car end) (car start)) 65536.0)
383 (- (car (cdr end)) (car (cdr start))) 383 (- (car (cdr end)) (car (cdr start)))
@@ -410,14 +410,14 @@ the output buffer."
410(define-overloadable-function semantic-parse-stream (stream nonterminal) 410(define-overloadable-function semantic-parse-stream (stream nonterminal)
411 "Parse STREAM, starting at the first NONTERMINAL rule. 411 "Parse STREAM, starting at the first NONTERMINAL rule.
412For bovine and wisent based parsers, STREAM is from the output of 412For bovine and wisent based parsers, STREAM is from the output of
413`semantic-lex', and NONTERMINAL is a rule in the apropriate language 413`semantic-lex', and NONTERMINAL is a rule in the appropriate language
414specific rules file. 414specific rules file.
415The default parser table used for bovine or wisent based parsers is 415The default parser table used for bovine or wisent based parsers is
416`semantic--parse-table'. 416`semantic--parse-table'.
417 417
418Must return a list: (STREAM TAGS) where STREAM is the unused elements 418Must return a list: (STREAM TAGS) where STREAM is the unused elements
419from STREAM, and TAGS is the list of semantic tags found, usually only 419from STREAM, and TAGS is the list of semantic tags found; usually only
420one tag is returned with the exception of compound statements") 420one tag is returned with the exception of compound statements.")
421 421
422(define-overloadable-function semantic-parse-changes () 422(define-overloadable-function semantic-parse-changes ()
423 "Reparse changes in the current buffer. 423 "Reparse changes in the current buffer.
@@ -433,7 +433,7 @@ will be silently ignored.
433 433
434Optional arguments: 434Optional arguments:
435NONTERMINAL is the rule to start parsing at. 435NONTERMINAL is the rule to start parsing at.
436DEPTH specifies the lexical depth to decend for parser that use 436DEPTH specifies the lexical depth to descend for parser that use
437lexical analysis as their first step. 437lexical analysis as their first step.
438RETURNONERROR specifies that parsing should stop on the first 438RETURNONERROR specifies that parsing should stop on the first
439unmatched syntax encountered. When nil, parsing skips the syntax, 439unmatched syntax encountered. When nil, parsing skips the syntax,
@@ -447,8 +447,8 @@ to cook raw tags.")
447(defun semantic-parse-region-default 447(defun semantic-parse-region-default
448 (start end &optional nonterminal depth returnonerror) 448 (start end &optional nonterminal depth returnonerror)
449 "Parse the area between START and END, and return any tags found. 449 "Parse the area between START and END, and return any tags found.
450If END needs to be extended due to a lexical token being too large, it 450If END needs to be extended due to a lexical token being too large,
451will be silently ignored. 451it will be silently ignored.
452Optional arguments: 452Optional arguments:
453NONTERMINAL is the rule to start parsing at if it is known. 453NONTERMINAL is the rule to start parsing at if it is known.
454DEPTH specifies the lexical depth to scan. 454DEPTH specifies the lexical depth to scan.
@@ -532,7 +532,7 @@ is requested."
532(defvar semantic-bovinate-nonterminal-check-obarray) 532(defvar semantic-bovinate-nonterminal-check-obarray)
533 533
534(defun semantic--set-buffer-cache (tagtable) 534(defun semantic--set-buffer-cache (tagtable)
535 "Set the toplevel cache cache to TAGTABLE." 535 "Set the toplevel tag cache to TAGTABLE."
536 (setq semantic--buffer-cache tagtable 536 (setq semantic--buffer-cache tagtable
537 semantic-unmatched-syntax-cache-check nil) 537 semantic-unmatched-syntax-cache-check nil)
538 ;; This is specific to the bovine parser. 538 ;; This is specific to the bovine parser.
@@ -560,7 +560,7 @@ is requested."
560 560
561(defvar semantic-minimum-working-buffer-size (* 1024 5) 561(defvar semantic-minimum-working-buffer-size (* 1024 5)
562 "*The minimum size of a buffer before working messages are displayed. 562 "*The minimum size of a buffer before working messages are displayed.
563Buffers smaller than will parse silently. 563Buffers smaller than this will parse silently.
564Buffers larger than this will display the working progress bar.") 564Buffers larger than this will display the working progress bar.")
565 565
566(defsubst semantic-parser-working-message (&optional arg) 566(defsubst semantic-parser-working-message (&optional arg)
@@ -652,7 +652,7 @@ was marked unparseable, then do nothing, and return the cache."
652 semantic--buffer-cache) 652 semantic--buffer-cache)
653 653
654(defun semantic-refresh-tags-safe () 654(defun semantic-refresh-tags-safe ()
655 "Refreshes the current buffer's tags safely. 655 "Refresh the current buffer's tags safely.
656 656
657Return non-nil if the refresh was successful. 657Return non-nil if the refresh was successful.
658Return nil if there is some sort of syntax error preventing a reparse. 658Return nil if there is some sort of syntax error preventing a reparse.
@@ -694,7 +694,7 @@ Does nothing if the current buffer doesn't need reparsing."
694 lexically-safe)))) 694 lexically-safe))))
695 695
696(defun semantic-bovinate-toplevel (&optional ignored) 696(defun semantic-bovinate-toplevel (&optional ignored)
697 "Backward Compatibility Function." 697 "Backward compatibility function."
698 (semantic-fetch-tags)) 698 (semantic-fetch-tags))
699(make-obsolete 'semantic-bovinate-toplevel 'semantic-fetch-tags "23.2") 699(make-obsolete 'semantic-bovinate-toplevel 'semantic-fetch-tags "23.2")
700 700
@@ -1014,10 +1014,10 @@ Throw away all the old tags, and recreate the tag database."
1014 1014
1015;; The `semantic-mode' command, in conjuction with the 1015;; The `semantic-mode' command, in conjuction with the
1016;; `semantic-default-submodes' variable, toggles Semantic's various 1016;; `semantic-default-submodes' variable, toggles Semantic's various
1017;; auxilliary minor modes. 1017;; auxiliary minor modes.
1018 1018
1019(defvar semantic-load-system-cache-loaded nil 1019(defvar semantic-load-system-cache-loaded nil
1020 "Non nil when the Semantic system caches have been loaded. 1020 "Non-nil when the Semantic system caches have been loaded.
1021Prevent this load system from loading files in twice.") 1021Prevent this load system from loading files in twice.")
1022 1022
1023(defconst semantic-submode-list 1023(defconst semantic-submode-list
@@ -1045,7 +1045,7 @@ The possible elements of this list include the following:
1045 `global-semantic-highlight-func-mode' - Highlight the current tag. 1045 `global-semantic-highlight-func-mode' - Highlight the current tag.
1046 `global-semantic-stickyfunc-mode' - Show current fun in header line. 1046 `global-semantic-stickyfunc-mode' - Show current fun in header line.
1047 `global-semantic-mru-bookmark-mode' - Provide `switch-to-buffer'-like 1047 `global-semantic-mru-bookmark-mode' - Provide `switch-to-buffer'-like
1048 keybinding for tag names." 1048 keybinding for tag names."
1049 :group 'semantic 1049 :group 'semantic
1050 :type `(set ,@(mapcar (lambda (c) (list 'const c)) 1050 :type `(set ,@(mapcar (lambda (c) (list 'const c))
1051 semantic-submode-list))) 1051 semantic-submode-list)))
@@ -1057,7 +1057,7 @@ With ARG, turn Semantic mode on if ARG is positive, off otherwise.
1057 1057
1058In Semantic mode, Emacs parses the buffers you visit for their 1058In Semantic mode, Emacs parses the buffers you visit for their
1059semantic content. This information is used by a variety of 1059semantic content. This information is used by a variety of
1060auxilliary minor modes, listed in `semantic-default-submodes'; 1060auxiliary minor modes, listed in `semantic-default-submodes';
1061all the minor modes in this list are also enabled when you enable 1061all the minor modes in this list are also enabled when you enable
1062Semantic mode. 1062Semantic mode.
1063 1063
@@ -1067,7 +1067,7 @@ Semantic mode.
1067 (if semantic-mode 1067 (if semantic-mode
1068 ;; Turn on Semantic mode 1068 ;; Turn on Semantic mode
1069 (progn 1069 (progn
1070 ;; Enable all the global auxilliary minor modes in 1070 ;; Enable all the global auxiliary minor modes in
1071 ;; `semantic-submode-list'. 1071 ;; `semantic-submode-list'.
1072 (dolist (mode semantic-submode-list) 1072 (dolist (mode semantic-submode-list)
1073 (if (memq mode semantic-default-submodes) 1073 (if (memq mode semantic-default-submodes)
diff --git a/lisp/cedet/semantic/db-ebrowse.el b/lisp/cedet/semantic/db-ebrowse.el
index cd511708661..86602aaa95b 100644
--- a/lisp/cedet/semantic/db-ebrowse.el
+++ b/lisp/cedet/semantic/db-ebrowse.el
@@ -90,7 +90,7 @@ be searched."
90 :initarg :global-extract 90 :initarg :global-extract
91 :documentation 91 :documentation
92 "Table of ebrowse tags specific to this file. 92 "Table of ebrowse tags specific to this file.
93This table is compisited from the ebrowse *Globals* section.") 93This table is composited from the ebrowse *Globals* section.")
94 ) 94 )
95 "A table for returning search results from ebrowse.") 95 "A table for returning search results from ebrowse.")
96 96
@@ -128,7 +128,7 @@ EBROWSE is a C/C++ parser for use with `ebrowse' Emacs program.")
128 ))) 128 )))
129 129
130(defun semanticdb-create-ebrowse-database (dir) 130(defun semanticdb-create-ebrowse-database (dir)
131 "Create an EBROSE database for directory DIR. 131 "Create an EBROWSE database for directory DIR.
132The database file is stored in ~/.semanticdb, or whichever directory 132The database file is stored in ~/.semanticdb, or whichever directory
133is specified by `semanticdb-default-save-directory'." 133is specified by `semanticdb-default-save-directory'."
134 (interactive "DDirectory: ") 134 (interactive "DDirectory: ")
@@ -597,7 +597,7 @@ Return a list of tags."
597 597
598(defmethod semanticdb-find-tags-for-completion-method 598(defmethod semanticdb-find-tags-for-completion-method
599 ((table semanticdb-table-ebrowse) prefix &optional tags) 599 ((table semanticdb-table-ebrowse) prefix &optional tags)
600 "In TABLE, find all occurances of tags matching PREFIX. 600 "In TABLE, find all occurrences of tags matching PREFIX.
601Optional argument TAGS is a list of tags to search. 601Optional argument TAGS is a list of tags to search.
602Returns a table of all matching tags." 602Returns a table of all matching tags."
603 (if tags (call-next-method) 603 (if tags (call-next-method)
@@ -607,7 +607,7 @@ Returns a table of all matching tags."
607 607
608(defmethod semanticdb-find-tags-by-class-method 608(defmethod semanticdb-find-tags-by-class-method
609 ((table semanticdb-table-ebrowse) class &optional tags) 609 ((table semanticdb-table-ebrowse) class &optional tags)
610 "In TABLE, find all occurances of tags of CLASS. 610 "In TABLE, find all occurrences of tags of CLASS.
611Optional argument TAGS is a list of tags to search. 611Optional argument TAGS is a list of tags to search.
612Returns a table of all matching tags." 612Returns a table of all matching tags."
613 (if tags (call-next-method) 613 (if tags (call-next-method)
@@ -625,7 +625,7 @@ Returns a table of all matching tags."
625(defmethod semanticdb-deep-find-tags-by-name-method 625(defmethod semanticdb-deep-find-tags-by-name-method
626 ((table semanticdb-table-ebrowse) name &optional tags) 626 ((table semanticdb-table-ebrowse) name &optional tags)
627 "Find all tags name NAME in TABLE. 627 "Find all tags name NAME in TABLE.
628Optional argument TAGS is a list of tags t 628Optional argument TAGS is a list of tags to search.
629Like `semanticdb-find-tags-by-name-method' for ebrowse." 629Like `semanticdb-find-tags-by-name-method' for ebrowse."
630 ;;(semanticdb-find-tags-by-name-method table name tags) 630 ;;(semanticdb-find-tags-by-name-method table name tags)
631 (call-next-method)) 631 (call-next-method))
@@ -640,7 +640,7 @@ Like `semanticdb-find-tags-by-name-method' for ebrowse."
640 640
641(defmethod semanticdb-deep-find-tags-for-completion-method 641(defmethod semanticdb-deep-find-tags-for-completion-method
642 ((table semanticdb-table-ebrowse) prefix &optional tags) 642 ((table semanticdb-table-ebrowse) prefix &optional tags)
643 "In TABLE, find all occurances of tags matching PREFIX. 643 "In TABLE, find all occurrences of tags matching PREFIX.
644Optional argument TAGS is a list of tags to search. 644Optional argument TAGS is a list of tags to search.
645Like `semanticdb-find-tags-for-completion-method' for ebrowse." 645Like `semanticdb-find-tags-for-completion-method' for ebrowse."
646 ;;(semanticdb-find-tags-for-completion-method table prefix tags) 646 ;;(semanticdb-find-tags-for-completion-method table prefix tags)
diff --git a/lisp/cedet/semantic/db-el.el b/lisp/cedet/semantic/db-el.el
index d46f727fca6..d313d1dc578 100644
--- a/lisp/cedet/semantic/db-el.el
+++ b/lisp/cedet/semantic/db-el.el
@@ -76,7 +76,7 @@ It does not need refreshing."
76(defvar-mode-local emacs-lisp-mode semanticdb-find-default-throttle 76(defvar-mode-local emacs-lisp-mode semanticdb-find-default-throttle
77 '(project omniscience) 77 '(project omniscience)
78 "Search project files, then search this omniscience database. 78 "Search project files, then search this omniscience database.
79It is not necessary to to system or recursive searching because of 79It is not necessary to do system or recursive searching because of
80the omniscience database.") 80the omniscience database.")
81 81
82;;; Filename based methods 82;;; Filename based methods
@@ -246,12 +246,12 @@ TOKTYPE is a hint to the type of tag desired."
246;;; Search Overrides 246;;; Search Overrides
247;; 247;;
248(defvar semanticdb-elisp-mapatom-collector nil 248(defvar semanticdb-elisp-mapatom-collector nil
249 "Variable used to collect mapatoms output.") 249 "Variable used to collect `mapatoms' output.")
250 250
251(defmethod semanticdb-find-tags-by-name-method 251(defmethod semanticdb-find-tags-by-name-method
252 ((table semanticdb-table-emacs-lisp) name &optional tags) 252 ((table semanticdb-table-emacs-lisp) name &optional tags)
253 "Find all tags name NAME in TABLE. 253 "Find all tags named NAME in TABLE.
254Uses `inter-soft' to match NAME to emacs symbols. 254Uses `intern-soft' to match NAME to Emacs symbols.
255Return a list of tags." 255Return a list of tags."
256 (if tags (call-next-method) 256 (if tags (call-next-method)
257 ;; No need to search. Use `intern-soft' which does the same thing for us. 257 ;; No need to search. Use `intern-soft' which does the same thing for us.
@@ -281,7 +281,7 @@ Return a list of tags."
281 281
282(defmethod semanticdb-find-tags-for-completion-method 282(defmethod semanticdb-find-tags-for-completion-method
283 ((table semanticdb-table-emacs-lisp) prefix &optional tags) 283 ((table semanticdb-table-emacs-lisp) prefix &optional tags)
284 "In TABLE, find all occurances of tags matching PREFIX. 284 "In TABLE, find all occurrences of tags matching PREFIX.
285Optional argument TAGS is a list of tags to search. 285Optional argument TAGS is a list of tags to search.
286Returns a table of all matching tags." 286Returns a table of all matching tags."
287 (if tags (call-next-method) 287 (if tags (call-next-method)
@@ -290,7 +290,7 @@ Returns a table of all matching tags."
290 290
291(defmethod semanticdb-find-tags-by-class-method 291(defmethod semanticdb-find-tags-by-class-method
292 ((table semanticdb-table-emacs-lisp) class &optional tags) 292 ((table semanticdb-table-emacs-lisp) class &optional tags)
293 "In TABLE, find all occurances of tags of CLASS. 293 "In TABLE, find all occurrences of tags of CLASS.
294Optional argument TAGS is a list of tags to search. 294Optional argument TAGS is a list of tags to search.
295Returns a table of all matching tags." 295Returns a table of all matching tags."
296 (if tags (call-next-method) 296 (if tags (call-next-method)
@@ -316,7 +316,7 @@ Like `semanticdb-find-tags-by-name-method' for Emacs Lisp."
316 316
317(defmethod semanticdb-deep-find-tags-for-completion-method 317(defmethod semanticdb-deep-find-tags-for-completion-method
318 ((table semanticdb-table-emacs-lisp) prefix &optional tags) 318 ((table semanticdb-table-emacs-lisp) prefix &optional tags)
319 "In TABLE, find all occurances of tags matching PREFIX. 319 "In TABLE, find all occurrences of tags matching PREFIX.
320Optional argument TAGS is a list of tags to search. 320Optional argument TAGS is a list of tags to search.
321Like `semanticdb-find-tags-for-completion-method' for Emacs Lisp." 321Like `semanticdb-find-tags-for-completion-method' for Emacs Lisp."
322 (semanticdb-find-tags-for-completion-method table prefix tags)) 322 (semanticdb-find-tags-for-completion-method table prefix tags))
diff --git a/lisp/cedet/semantic/db-find.el b/lisp/cedet/semantic/db-find.el
index 59b190f0073..eba04a7ee02 100644
--- a/lisp/cedet/semantic/db-find.el
+++ b/lisp/cedet/semantic/db-find.el
@@ -281,7 +281,7 @@ identified by translating PATH. Such searches use brute force to
281scan every available table. 281scan every available table.
282 282
283The return value is a list of objects of type `semanticdb-table' or 283The return value is a list of objects of type `semanticdb-table' or
284it's children. In the case of passing in a find result, the result 284their children. In the case of passing in a find result, the result
285is returned unchanged. 285is returned unchanged.
286 286
287This routine uses `semanticdb-find-table-for-include' to translate 287This routine uses `semanticdb-find-table-for-include' to translate
@@ -366,7 +366,7 @@ Default action as described in `semanticdb-find-translate-path'."
366 ans)) 366 ans))
367 367
368(defun semanticdb-find-need-cache-update-p (table) 368(defun semanticdb-find-need-cache-update-p (table)
369 "Non nil if the semanticdb TABLE cache needs to be updated." 369 "Non-nil if the semanticdb TABLE cache needs to be updated."
370 ;; If we were passed in something related to a TABLE, 370 ;; If we were passed in something related to a TABLE,
371 ;; do a caching lookup. 371 ;; do a caching lookup.
372 (let* ((index (semanticdb-get-table-index table)) 372 (let* ((index (semanticdb-get-table-index table))
@@ -431,7 +431,7 @@ Default action as described in `semanticdb-find-translate-path'."
431 "All include tags scanned, plus action taken on the tag. 431 "All include tags scanned, plus action taken on the tag.
432Each entry is an alist: 432Each entry is an alist:
433 (ACTION . TAG) 433 (ACTION . TAG)
434where ACTION is one of 'scanned, 'duplicate, 'lost. 434where ACTION is one of 'scanned, 'duplicate, 'lost
435and TAG is a clone of the include tag that was found.") 435and TAG is a clone of the include tag that was found.")
436(make-variable-buffer-local 'semanticdb-find-scanned-include-tags) 436(make-variable-buffer-local 'semanticdb-find-scanned-include-tags)
437 437
@@ -927,7 +927,7 @@ but should be good enough for debugging assertions."
927 927
928(defun semanticdb-find-result-with-nil-p (resultp) 928(defun semanticdb-find-result-with-nil-p (resultp)
929 "Non-nil of RESULTP is in the form of a semanticdb search result. 929 "Non-nil of RESULTP is in the form of a semanticdb search result.
930nil is a valid value where a TABLE usually is, but only if the TAG 930The value nil is valid where a TABLE usually is, but only if the TAG
931results include overlays. 931results include overlays.
932This query only really tests the first entry in the list that is RESULTP, 932This query only really tests the first entry in the list that is RESULTP,
933but should be good enough for debugging assertions." 933but should be good enough for debugging assertions."
@@ -1090,8 +1090,8 @@ Returns result."
1090 "Collect all tags returned by FUNCTION over PATH. 1090 "Collect all tags returned by FUNCTION over PATH.
1091The FUNCTION must take two arguments. The first is TABLE, 1091The FUNCTION must take two arguments. The first is TABLE,
1092which is a semanticdb table containing tags. The second argument 1092which is a semanticdb table containing tags. The second argument
1093to FUNCTION is TAGS. TAGS may be a list of tags. If TAGS is non-nil, then 1093to FUNCTION is TAGS. TAGS may be a list of tags. If TAGS is non-nil,
1094FUNCTION should search the TAG list, not through TABLE. 1094then FUNCTION should search the TAG list, not through TABLE.
1095 1095
1096See `semanticdb-find-translate-path' for details on PATH. 1096See `semanticdb-find-translate-path' for details on PATH.
1097FIND-FILE-MATCH indicates that any time a match is found, the file 1097FIND-FILE-MATCH indicates that any time a match is found, the file
@@ -1296,38 +1296,38 @@ associated with that tag should be loaded into a buffer."
1296 1296
1297;;; Top level Searches 1297;;; Top level Searches
1298(defmethod semanticdb-find-tags-by-name-method ((table semanticdb-abstract-table) name &optional tags) 1298(defmethod semanticdb-find-tags-by-name-method ((table semanticdb-abstract-table) name &optional tags)
1299 "In TABLE, find all occurances of tags with NAME. 1299 "In TABLE, find all occurrences of tags with NAME.
1300Optional argument TAGS is a list of tags to search. 1300Optional argument TAGS is a list of tags to search.
1301Returns a table of all matching tags." 1301Returns a table of all matching tags."
1302 (semantic-find-tags-by-name name (or tags (semanticdb-get-tags table)))) 1302 (semantic-find-tags-by-name name (or tags (semanticdb-get-tags table))))
1303 1303
1304(defmethod semanticdb-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags) 1304(defmethod semanticdb-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags)
1305 "In TABLE, find all occurances of tags matching REGEXP. 1305 "In TABLE, find all occurrences of tags matching REGEXP.
1306Optional argument TAGS is a list of tags to search. 1306Optional argument TAGS is a list of tags to search.
1307Returns a table of all matching tags." 1307Returns a table of all matching tags."
1308 (semantic-find-tags-by-name-regexp regexp (or tags (semanticdb-get-tags table)))) 1308 (semantic-find-tags-by-name-regexp regexp (or tags (semanticdb-get-tags table))))
1309 1309
1310(defmethod semanticdb-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags) 1310(defmethod semanticdb-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags)
1311 "In TABLE, find all occurances of tags matching PREFIX. 1311 "In TABLE, find all occurrences of tags matching PREFIX.
1312Optional argument TAGS is a list of tags to search. 1312Optional argument TAGS is a list of tags to search.
1313Returns a table of all matching tags." 1313Returns a table of all matching tags."
1314 (semantic-find-tags-for-completion prefix (or tags (semanticdb-get-tags table)))) 1314 (semantic-find-tags-for-completion prefix (or tags (semanticdb-get-tags table))))
1315 1315
1316(defmethod semanticdb-find-tags-by-class-method ((table semanticdb-abstract-table) class &optional tags) 1316(defmethod semanticdb-find-tags-by-class-method ((table semanticdb-abstract-table) class &optional tags)
1317 "In TABLE, find all occurances of tags of CLASS. 1317 "In TABLE, find all occurrences of tags of CLASS.
1318Optional argument TAGS is a list of tags to search. 1318Optional argument TAGS is a list of tags to search.
1319Returns a table of all matching tags." 1319Returns a table of all matching tags."
1320 (semantic-find-tags-by-class class (or tags (semanticdb-get-tags table)))) 1320 (semantic-find-tags-by-class class (or tags (semanticdb-get-tags table))))
1321 1321
1322(defmethod semanticdb-find-tags-external-children-of-type-method ((table semanticdb-abstract-table) parent &optional tags) 1322(defmethod semanticdb-find-tags-external-children-of-type-method ((table semanticdb-abstract-table) parent &optional tags)
1323 "In TABLE, find all occurances of tags whose parent is the PARENT type. 1323 "In TABLE, find all occurrences of tags whose parent is the PARENT type.
1324Optional argument TAGS is a list of tags to search. 1324Optional argument TAGS is a list of tags to search.
1325Returns a table of all matching tags." 1325Returns a table of all matching tags."
1326 (require 'semantic/find) 1326 (require 'semantic/find)
1327 (semantic-find-tags-external-children-of-type parent (or tags (semanticdb-get-tags table)))) 1327 (semantic-find-tags-external-children-of-type parent (or tags (semanticdb-get-tags table))))
1328 1328
1329(defmethod semanticdb-find-tags-subclasses-of-type-method ((table semanticdb-abstract-table) parent &optional tags) 1329(defmethod semanticdb-find-tags-subclasses-of-type-method ((table semanticdb-abstract-table) parent &optional tags)
1330 "In TABLE, find all occurances of tags whose parent is the PARENT type. 1330 "In TABLE, find all occurrences of tags whose parent is the PARENT type.
1331Optional argument TAGS is a list of tags to search. 1331Optional argument TAGS is a list of tags to search.
1332Returns a table of all matching tags." 1332Returns a table of all matching tags."
1333 (require 'semantic/find) 1333 (require 'semantic/find)
@@ -1335,7 +1335,7 @@ Returns a table of all matching tags."
1335 1335
1336;;; Deep Searches 1336;;; Deep Searches
1337(defmethod semanticdb-deep-find-tags-by-name-method ((table semanticdb-abstract-table) name &optional tags) 1337(defmethod semanticdb-deep-find-tags-by-name-method ((table semanticdb-abstract-table) name &optional tags)
1338 "In TABLE, find all occurances of tags with NAME. 1338 "In TABLE, find all occurrences of tags with NAME.
1339Search in all tags in TABLE, and all components of top level tags in 1339Search in all tags in TABLE, and all components of top level tags in
1340TABLE. 1340TABLE.
1341Optional argument TAGS is a list of tags to search. 1341Optional argument TAGS is a list of tags to search.
@@ -1343,7 +1343,7 @@ Return a table of all matching tags."
1343 (semantic-find-tags-by-name name (semantic-flatten-tags-table (or tags (semanticdb-get-tags table))))) 1343 (semantic-find-tags-by-name name (semantic-flatten-tags-table (or tags (semanticdb-get-tags table)))))
1344 1344
1345(defmethod semanticdb-deep-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags) 1345(defmethod semanticdb-deep-find-tags-by-name-regexp-method ((table semanticdb-abstract-table) regexp &optional tags)
1346 "In TABLE, find all occurances of tags matching REGEXP. 1346 "In TABLE, find all occurrences of tags matching REGEXP.
1347Search in all tags in TABLE, and all components of top level tags in 1347Search in all tags in TABLE, and all components of top level tags in
1348TABLE. 1348TABLE.
1349Optional argument TAGS is a list of tags to search. 1349Optional argument TAGS is a list of tags to search.
@@ -1351,7 +1351,7 @@ Return a table of all matching tags."
1351 (semantic-find-tags-by-name-regexp regexp (semantic-flatten-tags-table (or tags (semanticdb-get-tags table))))) 1351 (semantic-find-tags-by-name-regexp regexp (semantic-flatten-tags-table (or tags (semanticdb-get-tags table)))))
1352 1352
1353(defmethod semanticdb-deep-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags) 1353(defmethod semanticdb-deep-find-tags-for-completion-method ((table semanticdb-abstract-table) prefix &optional tags)
1354 "In TABLE, find all occurances of tags matching PREFIX. 1354 "In TABLE, find all occurrences of tags matching PREFIX.
1355Search in all tags in TABLE, and all components of top level tags in 1355Search in all tags in TABLE, and all components of top level tags in
1356TABLE. 1356TABLE.
1357Optional argument TAGS is a list of tags to search. 1357Optional argument TAGS is a list of tags to search.
diff --git a/lisp/cedet/semantic/db-global.el b/lisp/cedet/semantic/db-global.el
index bfd97fc5a54..444efbd17e0 100644
--- a/lisp/cedet/semantic/db-global.el
+++ b/lisp/cedet/semantic/db-global.el
@@ -66,7 +66,7 @@ in a GNU Global supported hierarchy."
66 ) 66 )
67 67
68(defun semanticdb-enable-gnu-global-hook () 68(defun semanticdb-enable-gnu-global-hook ()
69 "Add support for GNU Global in the current buffer via semantic-init-hook. 69 "Add support for GNU Global in the current buffer via `semantic-init-hook'.
70MODE is the major mode to support." 70MODE is the major mode to support."
71 (semanticdb-enable-gnu-global-in-buffer t)) 71 (semanticdb-enable-gnu-global-in-buffer t))
72 72
@@ -78,8 +78,8 @@ MODE is the major mode to support."
78 78
79(defun semanticdb-enable-gnu-global-in-buffer (&optional dont-err-if-not-available) 79(defun semanticdb-enable-gnu-global-in-buffer (&optional dont-err-if-not-available)
80 "Enable a GNU Global database in the current buffer. 80 "Enable a GNU Global database in the current buffer.
81Argument DONT-ERR-IF-NOT-AVAILABLE will throw an error if GNU Global 81When GNU Global is not available for this directory, display a message
82is not available for this directory." 82if optional DONT-ERR-IF-NOT-AVAILABLE is non-nil; else throw an error."
83 (interactive "P") 83 (interactive "P")
84 (if (cedet-gnu-global-root) 84 (if (cedet-gnu-global-root)
85 (setq 85 (setq
@@ -168,7 +168,7 @@ Return a list of tags."
168 168
169(defmethod semanticdb-find-tags-for-completion-method 169(defmethod semanticdb-find-tags-for-completion-method
170 ((table semanticdb-table-global) prefix &optional tags) 170 ((table semanticdb-table-global) prefix &optional tags)
171 "In TABLE, find all occurances of tags matching PREFIX. 171 "In TABLE, find all occurrences of tags matching PREFIX.
172Optional argument TAGS is a list of tags to search. 172Optional argument TAGS is a list of tags to search.
173Returns a table of all matching tags." 173Returns a table of all matching tags."
174 (if tags (call-next-method) 174 (if tags (call-next-method)
@@ -195,7 +195,7 @@ Returns a table of all matching tags."
195(defmethod semanticdb-deep-find-tags-by-name-method 195(defmethod semanticdb-deep-find-tags-by-name-method
196 ((table semanticdb-table-global) name &optional tags) 196 ((table semanticdb-table-global) name &optional tags)
197 "Find all tags name NAME in TABLE. 197 "Find all tags name NAME in TABLE.
198Optional argument TAGS is a list of tags t 198Optional argument TAGS is a list of tags to search.
199Like `semanticdb-find-tags-by-name-method' for global." 199Like `semanticdb-find-tags-by-name-method' for global."
200 (semanticdb-find-tags-by-name-method table name tags)) 200 (semanticdb-find-tags-by-name-method table name tags))
201 201
@@ -208,7 +208,7 @@ Like `semanticdb-find-tags-by-name-method' for global."
208 208
209(defmethod semanticdb-deep-find-tags-for-completion-method 209(defmethod semanticdb-deep-find-tags-for-completion-method
210 ((table semanticdb-table-global) prefix &optional tags) 210 ((table semanticdb-table-global) prefix &optional tags)
211 "In TABLE, find all occurances of tags matching PREFIX. 211 "In TABLE, find all occurrences of tags matching PREFIX.
212Optional argument TAGS is a list of tags to search. 212Optional argument TAGS is a list of tags to search.
213Like `semanticdb-find-tags-for-completion-method' for global." 213Like `semanticdb-find-tags-for-completion-method' for global."
214 (semanticdb-find-tags-for-completion-method table prefix tags)) 214 (semanticdb-find-tags-for-completion-method table prefix tags))
diff --git a/lisp/cedet/semantic/db-javascript.el b/lisp/cedet/semantic/db-javascript.el
index 2e357e677e2..a972c33f32a 100644
--- a/lisp/cedet/semantic/db-javascript.el
+++ b/lisp/cedet/semantic/db-javascript.el
@@ -77,7 +77,7 @@
77 (("uriComponent" variable nil nil nil))) 77 (("uriComponent" variable nil nil nil)))
78 nil nil)) 78 nil nil))
79 "Hard-coded list of javascript tags for semanticdb. 79 "Hard-coded list of javascript tags for semanticdb.
80See bottom of this file for instruction on managing this list.") 80See bottom of this file for instructions on managing this list.")
81 81
82;;; Classes: 82;;; Classes:
83(defclass semanticdb-table-javascript (semanticdb-search-results-table) 83(defclass semanticdb-table-javascript (semanticdb-search-results-table)
@@ -87,7 +87,7 @@ See bottom of this file for instruction on managing this list.")
87 87
88(defclass semanticdb-project-database-javascript 88(defclass semanticdb-project-database-javascript
89 (semanticdb-project-database 89 (semanticdb-project-database
90 eieio-singleton ;this db is for js globals, so singleton is apropriate 90 eieio-singleton ;this db is for js globals, so singleton is appropriate
91 ) 91 )
92 ((new-table-class :initform semanticdb-table-javascript 92 ((new-table-class :initform semanticdb-table-javascript
93 :type class 93 :type class
@@ -107,7 +107,7 @@ See bottom of this file for instruction on managing this list.")
107(defvar-mode-local javascript-mode semanticdb-find-default-throttle 107(defvar-mode-local javascript-mode semanticdb-find-default-throttle
108 '(project omniscience) 108 '(project omniscience)
109 "Search project files, then search this omniscience database. 109 "Search project files, then search this omniscience database.
110It is not necessary to to system or recursive searching because of 110It is not necessary to do system or recursive searching because of
111the omniscience database.") 111the omniscience database.")
112 112
113;;; Filename based methods 113;;; Filename based methods
@@ -157,7 +157,7 @@ local variable."
157;; to a search list. 157;; to a search list.
158(define-mode-local-override semanticdb-find-translate-path javascript-mode 158(define-mode-local-override semanticdb-find-translate-path javascript-mode
159 (path brutish) 159 (path brutish)
160 "Return a list of semanticdb tables asociated with PATH. 160 "Return a list of semanticdb tables associated with PATH.
161If brutish, do the default action. 161If brutish, do the default action.
162If not brutish, do the default action, and append the system 162If not brutish, do the default action, and append the system
163database (if available.)" 163database (if available.)"
@@ -216,7 +216,7 @@ Return a list of tags."
216 216
217(defmethod semanticdb-find-tags-for-completion-method 217(defmethod semanticdb-find-tags-for-completion-method
218 ((table semanticdb-table-javascript) prefix &optional tags) 218 ((table semanticdb-table-javascript) prefix &optional tags)
219 "In TABLE, find all occurances of tags matching PREFIX. 219 "In TABLE, find all occurrences of tags matching PREFIX.
220Optional argument TAGS is a list of tags to search. 220Optional argument TAGS is a list of tags to search.
221Returns a table of all matching tags." 221Returns a table of all matching tags."
222 (if tags (call-next-method) 222 (if tags (call-next-method)
@@ -226,7 +226,7 @@ Returns a table of all matching tags."
226 226
227(defmethod semanticdb-find-tags-by-class-method 227(defmethod semanticdb-find-tags-by-class-method
228 ((table semanticdb-table-javascript) class &optional tags) 228 ((table semanticdb-table-javascript) class &optional tags)
229 "In TABLE, find all occurances of tags of CLASS. 229 "In TABLE, find all occurrences of tags of CLASS.
230Optional argument TAGS is a list of tags to search. 230Optional argument TAGS is a list of tags to search.
231Returns a table of all matching tags." 231Returns a table of all matching tags."
232 (if tags (call-next-method) 232 (if tags (call-next-method)
@@ -248,7 +248,7 @@ Returns a table of all matching tags."
248(defmethod semanticdb-deep-find-tags-by-name-method 248(defmethod semanticdb-deep-find-tags-by-name-method
249 ((table semanticdb-table-javascript) name &optional tags) 249 ((table semanticdb-table-javascript) name &optional tags)
250 "Find all tags name NAME in TABLE. 250 "Find all tags name NAME in TABLE.
251Optional argument TAGS is a list of tags t 251Optional argument TAGS is a list of tags to search.
252Like `semanticdb-find-tags-by-name-method' for javascript." 252Like `semanticdb-find-tags-by-name-method' for javascript."
253 (semanticdb-find-tags-by-name-method table name tags)) 253 (semanticdb-find-tags-by-name-method table name tags))
254 254
@@ -261,7 +261,7 @@ Like `semanticdb-find-tags-by-name-method' for javascript."
261 261
262(defmethod semanticdb-deep-find-tags-for-completion-method 262(defmethod semanticdb-deep-find-tags-for-completion-method
263 ((table semanticdb-table-javascript) prefix &optional tags) 263 ((table semanticdb-table-javascript) prefix &optional tags)
264 "In TABLE, find all occurances of tags matching PREFIX. 264 "In TABLE, find all occurrences of tags matching PREFIX.
265Optional argument TAGS is a list of tags to search. 265Optional argument TAGS is a list of tags to search.
266Like `semanticdb-find-tags-for-completion-method' for javascript." 266Like `semanticdb-find-tags-for-completion-method' for javascript."
267 (semanticdb-find-tags-for-completion-method table prefix tags)) 267 (semanticdb-find-tags-for-completion-method table prefix tags))
@@ -270,7 +270,7 @@ Like `semanticdb-find-tags-for-completion-method' for javascript."
270;; 270;;
271(defmethod semanticdb-find-tags-external-children-of-type-method 271(defmethod semanticdb-find-tags-external-children-of-type-method
272 ((table semanticdb-table-javascript) type &optional tags) 272 ((table semanticdb-table-javascript) type &optional tags)
273 "Find all nonterminals which are child elements of TYPE 273 "Find all nonterminals which are child elements of TYPE.
274Optional argument TAGS is a list of tags to search. 274Optional argument TAGS is a list of tags to search.
275Return a list of tags." 275Return a list of tags."
276 (if tags (call-next-method) 276 (if tags (call-next-method)
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el
index cf107232645..ba7a49757a5 100644
--- a/lisp/cedet/semantic/idle.el
+++ b/lisp/cedet/semantic/idle.el
@@ -338,7 +338,7 @@ Disable to prevent lots of excessive parsing in idle time."
338(defun semantic-idle-work-for-one-buffer (buffer) 338(defun semantic-idle-work-for-one-buffer (buffer)
339 "Do long-processing work for BUFFER. 339 "Do long-processing work for BUFFER.
340Uses `semantic-safe' and returns the output. 340Uses `semantic-safe' and returns the output.
341Returns t of all processing succeeded." 341Returns t if all processing succeeded."
342 (with-current-buffer buffer 342 (with-current-buffer buffer
343 (not (and 343 (not (and
344 ;; Just in case 344 ;; Just in case
@@ -367,7 +367,7 @@ Returns t of all processing succeeded."
367 367
368(defun semantic-idle-work-core-handler () 368(defun semantic-idle-work-core-handler ()
369 "Core handler for idle work processing of long running tasks. 369 "Core handler for idle work processing of long running tasks.
370Visits semantic controlled buffers, and makes sure all needed 370Visits Semantic controlled buffers, and makes sure all needed
371include files have been parsed, and that the typecache is up to date. 371include files have been parsed, and that the typecache is up to date.
372Uses `semantic-idle-work-for-on-buffer' to do the work." 372Uses `semantic-idle-work-for-on-buffer' to do the work."
373 (let ((errbuf nil) 373 (let ((errbuf nil)
@@ -577,7 +577,7 @@ Does nothing if the current buffer doesn't need reparsing."
577DOC will be a documentation string describing FORMS. 577DOC will be a documentation string describing FORMS.
578FORMS will be called during idle time after the current buffer's 578FORMS will be called during idle time after the current buffer's
579semantic tag information has been updated. 579semantic tag information has been updated.
580This routines creates the following functions and variables:" 580This routine creates the following functions and variables:"
581 (let ((global (intern (concat "global-" (symbol-name name) "-mode"))) 581 (let ((global (intern (concat "global-" (symbol-name name) "-mode")))
582 (mode (intern (concat (symbol-name name) "-mode"))) 582 (mode (intern (concat (symbol-name name) "-mode")))
583 (hook (intern (concat (symbol-name name) "-mode-hook"))) 583 (hook (intern (concat (symbol-name name) "-mode-hook")))
@@ -764,7 +764,7 @@ specific to a major mode. For example, in jde mode:
764 jde-java-font-lock-code-face)))") 764 jde-java-font-lock-code-face)))")
765 765
766(defun semantic-idle-summary-useful-context-p () 766(defun semantic-idle-summary-useful-context-p ()
767 "Non-nil of we should show a summary based on context." 767 "Non-nil if we should show a summary based on context."
768 (if (and (boundp 'font-lock-mode) 768 (if (and (boundp 'font-lock-mode)
769 font-lock-mode 769 font-lock-mode
770 (memq (get-text-property (point) 'face) 770 (memq (get-text-property (point) 'face)
@@ -959,7 +959,7 @@ Call `semantic-symref-hits-in-region' to identify local references."
959;;;###autoload 959;;;###autoload
960(defun global-semantic-idle-scheduler-mode (&optional arg) 960(defun global-semantic-idle-scheduler-mode (&optional arg)
961 "Toggle global use of option `semantic-idle-scheduler-mode'. 961 "Toggle global use of option `semantic-idle-scheduler-mode'.
962The idle scheduler with automatically reparse buffers in idle time, 962The idle scheduler will automatically reparse buffers in idle time,
963and then schedule other jobs setup with `semantic-idle-scheduler-add'. 963and then schedule other jobs setup with `semantic-idle-scheduler-add'.
964If ARG is positive, enable, if it is negative, disable. 964If ARG is positive, enable, if it is negative, disable.
965If ARG is nil, then toggle." 965If ARG is nil, then toggle."
diff --git a/lisp/cedet/semantic/util-modes.el b/lisp/cedet/semantic/util-modes.el
index 21087ef2506..7e3a615d0b1 100644
--- a/lisp/cedet/semantic/util-modes.el
+++ b/lisp/cedet/semantic/util-modes.el
@@ -337,7 +337,7 @@ semantic parser cannot match is highlighted with a red underline."
337 (((class color) (background light)) 337 (((class color) (background light))
338 (:underline "red"))) 338 (:underline "red")))
339 "Face used to show unmatched syntax in. 339 "Face used to show unmatched syntax in.
340The face is used in `semantic-show-unmatched-syntax-mode'." 340The face is used in `semantic-show-unmatched-syntax-mode'."
341 :group 'semantic-faces) 341 :group 'semantic-faces)
342 342
343(defsubst semantic-unmatched-syntax-overlay-p (overlay) 343(defsubst semantic-unmatched-syntax-overlay-p (overlay)
@@ -767,7 +767,7 @@ This makes it appear that the first line of that tag is
767 ] 767 ]
768 [ "Narrow To Headerline Tag" senator-narrow-to-defun 768 [ "Narrow To Headerline Tag" senator-narrow-to-defun
769 :active (semantic-current-tag) 769 :active (semantic-current-tag)
770 :help "Narrow to the bounds of the current tag."] 770 :help "Narrow to the bounds of the current tag"]
771 [ "Fold Headerline Tag" senator-fold-tag-toggle 771 [ "Fold Headerline Tag" senator-fold-tag-toggle
772 :active (semantic-current-tag) 772 :active (semantic-current-tag)
773 :style toggle 773 :style toggle
@@ -854,7 +854,7 @@ when it lands in the sticky line."
854 :type 'string) 854 :type 'string)
855 855
856(defvar semantic-stickyfunc-old-hlf nil 856(defvar semantic-stickyfunc-old-hlf nil
857 "Value of the header line when entering sticky func mode.") 857 "Value of the header line when entering stickyfunc mode.")
858 858
859(defconst semantic-stickyfunc-header-line-format 859(defconst semantic-stickyfunc-header-line-format
860 (cond ((featurep 'xemacs) 860 (cond ((featurep 'xemacs)
@@ -868,7 +868,7 @@ when it lands in the sticky line."
868 '(:eval (list semantic-stickyfunc-indent-string 868 '(:eval (list semantic-stickyfunc-indent-string
869 (semantic-stickyfunc-fetch-stickyline)))) 869 (semantic-stickyfunc-fetch-stickyline))))
870 (t nil)) 870 (t nil))
871 "The header line format used by sticky func mode.") 871 "The header line format used by stickyfunc mode.")
872 872
873(defun semantic-stickyfunc-mode-setup () 873(defun semantic-stickyfunc-mode-setup ()
874 "Setup option `semantic-stickyfunc-mode'. 874 "Setup option `semantic-stickyfunc-mode'.
@@ -936,7 +936,7 @@ minor mode is enabled."
936 936
937(defvar semantic-stickyfunc-sticky-classes 937(defvar semantic-stickyfunc-sticky-classes
938 '(function type) 938 '(function type)
939 "List of tag classes which sticky func will display in the header line.") 939 "List of tag classes which stickyfunc will display in the header line.")
940(make-variable-buffer-local 'semantic-stickyfunc-sticky-classes) 940(make-variable-buffer-local 'semantic-stickyfunc-sticky-classes)
941 941
942(defun semantic-stickyfunc-tag-to-stick () 942(defun semantic-stickyfunc-tag-to-stick ()
@@ -953,7 +953,7 @@ minor mode is enabled."
953 953
954(defun semantic-stickyfunc-fetch-stickyline () 954(defun semantic-stickyfunc-fetch-stickyline ()
955 "Make the function at the top of the current window sticky. 955 "Make the function at the top of the current window sticky.
956Capture it's function declaration, and place it in the header line. 956Capture its function declaration, and place it in the header line.
957If there is no function, disable the header line." 957If there is no function, disable the header line."
958 (let ((str 958 (let ((str
959 (save-excursion 959 (save-excursion
@@ -962,7 +962,7 @@ If there is no function, disable the header line."
962 (end-of-line) 962 (end-of-line)
963 ;; Capture this function 963 ;; Capture this function
964 (let* ((tag (semantic-stickyfunc-tag-to-stick))) 964 (let* ((tag (semantic-stickyfunc-tag-to-stick)))
965 ;; TAG is nil if there was nothing of the apropriate type there. 965 ;; TAG is nil if there was nothing of the appropriate type there.
966 (if (not tag) 966 (if (not tag)
967 ;; Set it to be the text under the header line 967 ;; Set it to be the text under the header line
968 (buffer-substring (point-at-bol) (point-at-eol)) 968 (buffer-substring (point-at-bol) (point-at-eol))
@@ -1080,7 +1080,7 @@ When enabled, the first line of the current tag is highlighted."
1080 ] 1080 ]
1081 [ "Narrow To Tag" senator-narrow-to-defun 1081 [ "Narrow To Tag" senator-narrow-to-defun
1082 :active (semantic-current-tag) 1082 :active (semantic-current-tag)
1083 :help "Narrow to the bounds of the current tag."] 1083 :help "Narrow to the bounds of the current tag"]
1084 [ "Fold Tag" senator-fold-tag-toggle 1084 [ "Fold Tag" senator-fold-tag-toggle
1085 :active (semantic-current-tag) 1085 :active (semantic-current-tag)
1086 :style toggle 1086 :style toggle
@@ -1129,7 +1129,7 @@ Use the command `semantic-highlight-func-mode' to change this variable.")
1129 1129
1130(defun semantic-highlight-func-mode-setup () 1130(defun semantic-highlight-func-mode-setup ()
1131 "Setup option `semantic-highlight-func-mode'. 1131 "Setup option `semantic-highlight-func-mode'.
1132For semantic enabled buffers, highlight the first line of the 1132For Semantic enabled buffers, highlight the first line of the
1133current tag declaration." 1133current tag declaration."
1134 (if semantic-highlight-func-mode 1134 (if semantic-highlight-func-mode
1135 (progn 1135 (progn
@@ -1202,7 +1202,7 @@ function was called, move the overlay."
1202 (setq semantic-highlight-func-ct-overlay ol) 1202 (setq semantic-highlight-func-ct-overlay ol)
1203 ) 1203 )
1204 1204
1205 ;; TAG is nil if there was nothing of the apropriate type there. 1205 ;; TAG is nil if there was nothing of the appropriate type there.
1206 (if (or (not tag) disable) 1206 (if (or (not tag) disable)
1207 ;; No tag, make the overlay go away. 1207 ;; No tag, make the overlay go away.
1208 (progn 1208 (progn
diff --git a/lisp/cedet/srecode/dictionary.el b/lisp/cedet/srecode/dictionary.el
index deadc06abba..8d168a7f339 100644
--- a/lisp/cedet/srecode/dictionary.el
+++ b/lisp/cedet/srecode/dictionary.el
@@ -240,7 +240,7 @@ You can add several dictionaries to the same section macro.
240For each dictionary added to a macro, the block of codes in the 240For each dictionary added to a macro, the block of codes in the
241template will be repeated. 241template will be repeated.
242 242
243If optional argument SHOW-ONLY is non-nil, then don't add a new dictionarly 243If optional argument SHOW-ONLY is non-nil, then don't add a new dictionary
244if there is already one in place. Also, don't add FIRST/LAST entries. 244if there is already one in place. Also, don't add FIRST/LAST entries.
245These entries are not needed when we are just showing a section. 245These entries are not needed when we are just showing a section.
246 246
@@ -402,7 +402,7 @@ FUNCTION and DICTIONARY are as for the baseclass."
402(defclass srecode-field-value (srecode-dictionary-compound-value) 402(defclass srecode-field-value (srecode-dictionary-compound-value)
403 ((firstinserter :initarg :firstinserter 403 ((firstinserter :initarg :firstinserter
404 :documentation 404 :documentation
405 "The inserter object for the first occurance of this field.") 405 "The inserter object for the first occurrence of this field.")
406 (defaultvalue :initarg :defaultvalue 406 (defaultvalue :initarg :defaultvalue
407 :documentation 407 :documentation
408 "The default value for this inserter.") 408 "The default value for this inserter.")
diff --git a/lisp/cedet/srecode/extract.el b/lisp/cedet/srecode/extract.el
index 8a324550c4d..90eda533335 100644
--- a/lisp/cedet/srecode/extract.el
+++ b/lisp/cedet/srecode/extract.el
@@ -216,7 +216,7 @@ Return nil if nothing was extracted."
216 (srecode-insert-include-lookup ins dict) 216 (srecode-insert-include-lookup ins dict)
217 ;; There are two modes for includes. One is with no dict, 217 ;; There are two modes for includes. One is with no dict,
218 ;; so it is inserted straight. If the dict has a name, then 218 ;; so it is inserted straight. If the dict has a name, then
219 ;; we need to run once per dictionary occurance. 219 ;; we need to run once per dictionary occurrence.
220 (if (not (string= (oref ins :object-name) "")) 220 (if (not (string= (oref ins :object-name) ""))
221 ;; With a name, do the insertion. 221 ;; With a name, do the insertion.
222 (let ((subdict (srecode-dictionary-add-section-dictionary 222 (let ((subdict (srecode-dictionary-add-section-dictionary