aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cedet/semantic
diff options
context:
space:
mode:
authorJoakim Verona2011-11-22 15:39:42 +0100
committerJoakim Verona2011-11-22 15:39:42 +0100
commit40bb789236e486a3f36eefb2840c293369ce2af3 (patch)
tree8e81d3aa5f232ec7f2c5187c683cb0998d2dc4e2 /lisp/cedet/semantic
parent62318aed495a48e24ff73fe79e420dd801df3189 (diff)
parenta8e1496d750ab0f571b3412ff61aaa4da640a036 (diff)
downloademacs-40bb789236e486a3f36eefb2840c293369ce2af3.tar.gz
emacs-40bb789236e486a3f36eefb2840c293369ce2af3.zip
upstream
Diffstat (limited to 'lisp/cedet/semantic')
-rw-r--r--lisp/cedet/semantic/analyze.el8
-rw-r--r--lisp/cedet/semantic/analyze/complete.el2
-rw-r--r--lisp/cedet/semantic/bovine.el2
-rw-r--r--lisp/cedet/semantic/bovine/c.el8
-rw-r--r--lisp/cedet/semantic/bovine/el.el10
-rw-r--r--lisp/cedet/semantic/complete.el10
-rw-r--r--lisp/cedet/semantic/ctxt.el4
-rw-r--r--lisp/cedet/semantic/db-ebrowse.el6
-rw-r--r--lisp/cedet/semantic/db-file.el2
-rw-r--r--lisp/cedet/semantic/db-find.el4
-rw-r--r--lisp/cedet/semantic/db-typecache.el8
-rw-r--r--lisp/cedet/semantic/db.el8
-rw-r--r--lisp/cedet/semantic/decorate.el2
-rw-r--r--lisp/cedet/semantic/decorate/include.el6
-rw-r--r--lisp/cedet/semantic/doc.el2
-rw-r--r--lisp/cedet/semantic/edit.el8
-rw-r--r--lisp/cedet/semantic/find.el2
-rw-r--r--lisp/cedet/semantic/format.el6
-rw-r--r--lisp/cedet/semantic/html.el2
-rw-r--r--lisp/cedet/semantic/ia-sb.el2
-rw-r--r--lisp/cedet/semantic/ia.el12
-rw-r--r--lisp/cedet/semantic/idle.el2
-rw-r--r--lisp/cedet/semantic/imenu.el4
-rw-r--r--lisp/cedet/semantic/lex-spp.el4
-rw-r--r--lisp/cedet/semantic/lex.el10
-rw-r--r--lisp/cedet/semantic/sb.el4
-rw-r--r--lisp/cedet/semantic/scope.el12
-rw-r--r--lisp/cedet/semantic/symref/grep.el2
-rw-r--r--lisp/cedet/semantic/tag-file.el2
-rw-r--r--lisp/cedet/semantic/tag-ls.el8
-rw-r--r--lisp/cedet/semantic/texi.el6
-rw-r--r--lisp/cedet/semantic/wisent/python.el4
32 files changed, 86 insertions, 86 deletions
diff --git a/lisp/cedet/semantic/analyze.el b/lisp/cedet/semantic/analyze.el
index 5cdd1577a6e..43e998b852e 100644
--- a/lisp/cedet/semantic/analyze.el
+++ b/lisp/cedet/semantic/analyze.el
@@ -106,7 +106,7 @@ called in a dereference sequence.")
106 (prefixclass :initarg :prefixclass 106 (prefixclass :initarg :prefixclass
107 :type list 107 :type list
108 :documentation "Tag classes expected at this context. 108 :documentation "Tag classes expected at this context.
109These are clases for tags, such as 'function, or 'variable.") 109These are classes for tags, such as 'function, or 'variable.")
110 (prefixtypes :initarg :prefixtypes 110 (prefixtypes :initarg :prefixtypes
111 :type list 111 :type list
112 :documentation "List of tags defining types for :prefix. 112 :documentation "List of tags defining types for :prefix.
@@ -287,7 +287,7 @@ Optional argument THROWSYM specifies a symbol the throw on non-recoverable error
287 287
288 ;; For the middle entries 288 ;; For the middle entries
289 (while s 289 (while s
290 ;; Using the tag found in TMP, lets find the tag 290 ;; Using the tag found in TMP, let's find the tag
291 ;; representing the full typeographic information of its 291 ;; representing the full typeographic information of its
292 ;; type, and use that to determine the search context for 292 ;; type, and use that to determine the search context for
293 ;; (car s) 293 ;; (car s)
@@ -302,7 +302,7 @@ Optional argument THROWSYM specifies a symbol the throw on non-recoverable error
302 (mapcar 'semantic-tag-type-members 302 (mapcar 'semantic-tag-type-members
303 tagtype)))) 303 tagtype))))
304 (oset miniscope fullscope rawscope))) 304 (oset miniscope fullscope rawscope)))
305 ;; Now analayze the type to remove metatypes. 305 ;; Now analyze the type to remove metatypes.
306 (or (semantic-analyze-type tmp miniscope) 306 (or (semantic-analyze-type tmp miniscope)
307 tmp)) 307 tmp))
308 (t 308 (t
@@ -476,7 +476,7 @@ If called interactively, display interesting information about POSITION
476in a separate buffer. 476in a separate buffer.
477Returns an object based on symbol `semantic-analyze-context'. 477Returns an object based on symbol `semantic-analyze-context'.
478 478
479This function can be overriden with the symbol `analyze-context'. 479This function can be overridden with the symbol `analyze-context'.
480When overriding this function, your override will be called while 480When overriding this function, your override will be called while
481cursor is at POSITION. In addition, your function will not be called 481cursor is at POSITION. In addition, your function will not be called
482if a cached copy of the return object is found." 482if a cached copy of the return object is found."
diff --git a/lisp/cedet/semantic/analyze/complete.el b/lisp/cedet/semantic/analyze/complete.el
index ae993a743d6..89937f45ec8 100644
--- a/lisp/cedet/semantic/analyze/complete.el
+++ b/lisp/cedet/semantic/analyze/complete.el
@@ -188,7 +188,7 @@ FLAGS can be any number of:
188 ;; Reset c. 188 ;; Reset c.
189 (setq c nil) 189 (setq c nil)
190 190
191 ;; Loop over all the found matches, and catagorize them 191 ;; Loop over all the found matches, and categorize them
192 ;; as being possible features. 192 ;; as being possible features.
193 (while (and loopc do-typeconstraint) 193 (while (and loopc do-typeconstraint)
194 194
diff --git a/lisp/cedet/semantic/bovine.el b/lisp/cedet/semantic/bovine.el
index 1dfbb72d416..036a6f38724 100644
--- a/lisp/cedet/semantic/bovine.el
+++ b/lisp/cedet/semantic/bovine.el
@@ -240,7 +240,7 @@ list of semantic tokens found."
240 matchlist nil) ;;generate exit condition 240 matchlist nil) ;;generate exit condition
241 (if (not end) 241 (if (not end)
242 (setq out nil))) 242 (setq out nil)))
243 ;; Nothin? 243 ;; Nothing?
244 )) 244 ))
245 (setq result 245 (setq result
246 (if (eq s starting-stream) 246 (if (eq s starting-stream)
diff --git a/lisp/cedet/semantic/bovine/c.el b/lisp/cedet/semantic/bovine/c.el
index 0b3e6881891..d8b004df1bd 100644
--- a/lisp/cedet/semantic/bovine/c.el
+++ b/lisp/cedet/semantic/bovine/c.el
@@ -240,7 +240,7 @@ Return the defined symbol as a special spp lex token."
240 (goto-char (match-end 0)) 240 (goto-char (match-end 0))
241 (looking-at "("))) 241 (looking-at "(")))
242 (semantic-lex-spp-replacements-enabled nil) 242 (semantic-lex-spp-replacements-enabled nil)
243 ;; Temporarilly override the lexer to include 243 ;; Temporarily override the lexer to include
244 ;; special items needed inside a macro 244 ;; special items needed inside a macro
245 (semantic-lex-analyzer #'semantic-cpp-lexer) 245 (semantic-lex-analyzer #'semantic-cpp-lexer)
246 (raw-stream 246 (raw-stream
@@ -249,7 +249,7 @@ Return the defined symbol as a special spp lex token."
249 (point)))) 249 (point))))
250 ) 250 )
251 251
252 ;; Only do argument checking if the paren was immediatly after 252 ;; Only do argument checking if the paren was immediately after
253 ;; the macro name. 253 ;; the macro name.
254 (if with-args 254 (if with-args
255 (semantic-lex-spp-first-token-arg-list (car raw-stream))) 255 (semantic-lex-spp-first-token-arg-list (car raw-stream)))
@@ -1092,7 +1092,7 @@ Optional argument STAR and REF indicate the number of * and & in the typedef."
1092 ;; `throws' as a common name for things that toss 1092 ;; `throws' as a common name for things that toss
1093 ;; exceptions about. 1093 ;; exceptions about.
1094 :throws (nth 5 tokenpart) 1094 :throws (nth 5 tokenpart)
1095 ;; Reemtrant is a C++ thingy. Add it here 1095 ;; Reentrant is a C++ thingy. Add it here
1096 :reentrant-flag (if (member "reentrant" (nth 6 tokenpart)) t) 1096 :reentrant-flag (if (member "reentrant" (nth 6 tokenpart)) t)
1097 ;; A function post-const is funky. Try stuff 1097 ;; A function post-const is funky. Try stuff
1098 :methodconst-flag (if (member "const" (nth 6 tokenpart)) t) 1098 :methodconst-flag (if (member "const" (nth 6 tokenpart)) t)
@@ -1128,7 +1128,7 @@ Optional PARENT and COLOR are ignored."
1128 1128
1129(define-mode-local-override semantic-format-tag-canonical-name 1129(define-mode-local-override semantic-format-tag-canonical-name
1130 c-mode (tag &optional parent color) 1130 c-mode (tag &optional parent color)
1131 "Create a cannonical name for TAG. 1131 "Create a canonical name for TAG.
1132PARENT specifies a parent class. 1132PARENT specifies a parent class.
1133COLOR indicates that the text should be type colorized. 1133COLOR indicates that the text should be type colorized.
1134Enhances the base class to search for the entire parent 1134Enhances the base class to search for the entire parent
diff --git a/lisp/cedet/semantic/bovine/el.el b/lisp/cedet/semantic/bovine/el.el
index cfdd4cf6f6c..2151e9ef53b 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 ;; Try an Emacs 22 fcn. This throws errors. 463 ;; Try an Emacs 22 fcn. This throws errors.
464 (find-library-name (semantic-tag-name tag)) 464 (find-library-name (semantic-tag-name tag))
465 (error 465 (error
466 (message "semantic: connot find source file %s" 466 (message "semantic: cannot find source file %s"
467 (semantic-tag-name tag)))) 467 (semantic-tag-name tag))))
468 ;; No handy function available. (Older Emacsen) 468 ;; No handy function available. (Older Emacsen)
469 (let* ((lib (locate-library (semantic-tag-name tag))) 469 (let* ((lib (locate-library (semantic-tag-name tag)))
@@ -515,7 +515,7 @@ Optional argument NOSNARF is ignored."
515 (let ((d (semantic-tag-docstring tag))) 515 (let ((d (semantic-tag-docstring tag)))
516 (when (not d) 516 (when (not d)
517 (cond ((semantic-tag-with-position-p tag) 517 (cond ((semantic-tag-with-position-p tag)
518 ;; Doc isn't in the tag itself. Lets pull it out of the 518 ;; Doc isn't in the tag itself. Let's pull it out of the
519 ;; sources. 519 ;; sources.
520 (let ((semantic-elisp-store-documentation-in-tag t)) 520 (let ((semantic-elisp-store-documentation-in-tag t))
521 (setq tag (with-current-buffer (semantic-tag-buffer tag) 521 (setq tag (with-current-buffer (semantic-tag-buffer tag)
@@ -534,9 +534,9 @@ Optional argument NOSNARF is ignored."
534 (t 534 (t
535 (setq d (documentation-property 535 (setq d (documentation-property
536 sym 'variable-documentation))))) 536 sym 'variable-documentation)))))
537 ;; Label it as system doc.. perhaps just for debugging 537 ;; Label it as system doc. perhaps just for debugging
538 ;; purposes. 538 ;; purposes.
539 (if d (setq d (concat "Sytem Doc: \n" d))) 539 (if d (setq d (concat "System Doc: \n" d)))
540 )) 540 ))
541 ) 541 )
542 542
@@ -823,7 +823,7 @@ In Emacs Lisp this is easily defined by parenthesis bounding."
823 (&optional point) 823 (&optional point)
824 "Return a list of tag classes allowed at POINT. 824 "Return a list of tag classes allowed at POINT.
825Emacs Lisp knows much more about the class of the tag needed to perform 825Emacs Lisp knows much more about the class of the tag needed to perform
826completion than some languages. We distincly know if we are to be a 826completion than some languages. We distinctly know if we are to be a
827function name, variable name, or any type of symbol. We could identify 827function name, variable name, or any type of symbol. We could identify
828fields and such to, but that is for some other day." 828fields and such to, but that is for some other day."
829 (save-excursion 829 (save-excursion
diff --git a/lisp/cedet/semantic/complete.el b/lisp/cedet/semantic/complete.el
index 18c7b5a1a50..41a569564d0 100644
--- a/lisp/cedet/semantic/complete.el
+++ b/lisp/cedet/semantic/complete.el
@@ -54,7 +54,7 @@
54;; 54;;
55;; Here, we will treat each section separately (excluding D) 55;; Here, we will treat each section separately (excluding D)
56;; They can then be strung together in user-visible commands to 56;; They can then be strung together in user-visible commands to
57;; fulfil specific needs. 57;; fulfill specific needs.
58;; 58;;
59;; COLLECTORS: 59;; COLLECTORS:
60;; 60;;
@@ -891,7 +891,7 @@ making the action of homing in on a token faster.")
891This completion is calculated and saved for future use.") 891This completion is calculated and saved for future use.")
892 (last-whitespace-completion :type (or null string) 892 (last-whitespace-completion :type (or null string)
893 :documentation "The last whitespace completion. 893 :documentation "The last whitespace completion.
894For partial completion, SPC will disabiguate over whitespace type 894For partial completion, SPC will disambiguate over whitespace type
895characters. This is the last calculated version.") 895characters. This is the last calculated version.")
896 (current-exact-match :type list 896 (current-exact-match :type list
897 :protection :protected 897 :protection :protected
@@ -1353,7 +1353,7 @@ to click on the items to aid in completion.")
1353(defmethod semantic-displayor-show-request ((obj semantic-displayor-traditional)) 1353(defmethod semantic-displayor-show-request ((obj semantic-displayor-traditional))
1354 "A request to show the current tags table." 1354 "A request to show the current tags table."
1355 1355
1356 ;; NOTE TO SELF. Find the character to type next, and emphesize it. 1356 ;; NOTE TO SELF. Find the character to type next, and emphasize it.
1357 1357
1358 (with-output-to-temp-buffer "*Completions*" 1358 (with-output-to-temp-buffer "*Completions*"
1359 (display-completion-list 1359 (display-completion-list
@@ -1377,7 +1377,7 @@ given tag, by highlighting its location.")
1377 ) 1377 )
1378 "Abstract displayor supporting `focus'. 1378 "Abstract displayor supporting `focus'.
1379A displayor which has the ability to focus in on one tag. 1379A displayor which has the ability to focus in on one tag.
1380Focusing is a way of differentiationg between multiple tags 1380Focusing is a way of differentiating among multiple tags
1381which have the same name." 1381which have the same name."
1382 :abstract t) 1382 :abstract t)
1383 1383
@@ -1618,7 +1618,7 @@ Display mechanism using tooltip for a list of possible completions.")
1618 (string= (this-command-keys) "\C-i")) 1618 (string= (this-command-keys) "\C-i"))
1619 (oset obj typing-count (1+ typing-count))) 1619 (oset obj typing-count (1+ typing-count)))
1620 ;; At this point, we know we have too many items. 1620 ;; At this point, we know we have too many items.
1621 ;; Lets be brave, and truncate l 1621 ;; Let's be brave, and truncate l
1622 (setcdr (nthcdr (oref obj max-tags) l) nil) 1622 (setcdr (nthcdr (oref obj max-tags) l) nil)
1623 (setq msg (mapconcat 'identity l "\n")) 1623 (setq msg (mapconcat 'identity l "\n"))
1624 (cond 1624 (cond
diff --git a/lisp/cedet/semantic/ctxt.el b/lisp/cedet/semantic/ctxt.el
index 2eddfdc1c8e..4fef5937bc3 100644
--- a/lisp/cedet/semantic/ctxt.el
+++ b/lisp/cedet/semantic/ctxt.el
@@ -154,7 +154,7 @@ Return non-nil if there is no upper context."
154(define-overloadable-function semantic-get-local-variables (&optional point) 154(define-overloadable-function semantic-get-local-variables (&optional point)
155 "Get the local variables based on POINT's context. 155 "Get the local variables based on POINT's context.
156Local variables are returned in Semantic tag format. 156Local variables are returned in Semantic tag format.
157This can be overriden with `get-local-variables'." 157This can be overridden with `get-local-variables'."
158 ;; Disable parsing messages 158 ;; Disable parsing messages
159 (let ((semantic--progress-reporter nil)) 159 (let ((semantic--progress-reporter nil))
160 (save-excursion 160 (save-excursion
@@ -410,7 +410,7 @@ Depends on `semantic-type-relation-separator-character'."
410 ;; Set our end point. 410 ;; Set our end point.
411 (setq end (point)) 411 (setq end (point))
412 412
413 ;; Now that we have gotten started, lets do the rest. 413 ;; Now that we have gotten started, let's do the rest.
414 (condition-case nil 414 (condition-case nil
415 (while (save-excursion 415 (while (save-excursion
416 (forward-char -1) 416 (forward-char -1)
diff --git a/lisp/cedet/semantic/db-ebrowse.el b/lisp/cedet/semantic/db-ebrowse.el
index d719fde3174..fe5f3c193df 100644
--- a/lisp/cedet/semantic/db-ebrowse.el
+++ b/lisp/cedet/semantic/db-ebrowse.el
@@ -219,7 +219,7 @@ warn instead."
219 219
220;JAVE this just instantiates a default empty ebrowse struct? 220;JAVE this just instantiates a default empty ebrowse struct?
221; how would new instances wind up here? 221; how would new instances wind up here?
222; the ebrowse class isnt singleton, unlike the emacs lisp one 222; the ebrowse class isn't singleton, unlike the emacs lisp one
223(defvar-mode-local c++-mode semanticdb-project-system-databases 223(defvar-mode-local c++-mode semanticdb-project-system-databases
224 () 224 ()
225 "Search Ebrowse for symbols.") 225 "Search Ebrowse for symbols.")
@@ -296,7 +296,7 @@ If there is no database for DIRECTORY available, then
296 (when (string= (oref (car dbs) reference-directory) directory) 296 (when (string= (oref (car dbs) reference-directory) directory)
297 (setq found (car dbs)))) 297 (setq found (car dbs))))
298 (setq dbs (cdr dbs))) 298 (setq dbs (cdr dbs)))
299 ;;STATIC means DBE cant be used as object, only as a class 299 ;;STATIC means DBE can't be used as object, only as a class
300 (let* ((ebrowse-data (semanticdb-ebrowse-get-ebrowse-structure directory)) 300 (let* ((ebrowse-data (semanticdb-ebrowse-get-ebrowse-structure directory))
301 (dat (car (cdr ebrowse-data))) 301 (dat (car (cdr ebrowse-data)))
302 (ebd (car dat)) 302 (ebd (car dat))
@@ -331,7 +331,7 @@ If there is no database for DIRECTORY available, then
331;JAVE what it actually seems to do is split the original tree in "tables" associated with files 331;JAVE what it actually seems to do is split the original tree in "tables" associated with files
332; im not sure it actually works: 332; im not sure it actually works:
333; the filename slot sometimes gets to be nil, 333; the filename slot sometimes gets to be nil,
334; apparently for classes which definition cant be found, yet needs to be included in the tree 334; apparently for classes which definition can't be found, yet needs to be included in the tree
335; like library baseclasses 335; like library baseclasses
336; a file can define several classes 336; a file can define several classes
337 (let ((T (car (cdr data))));1st comes a header, then the tree 337 (let ((T (car (cdr data))));1st comes a header, then the tree
diff --git a/lisp/cedet/semantic/db-file.el b/lisp/cedet/semantic/db-file.el
index 661bc8d6841..943ccf23031 100644
--- a/lisp/cedet/semantic/db-file.el
+++ b/lisp/cedet/semantic/db-file.el
@@ -289,7 +289,7 @@ Argument OBJ is the object to write."
289 (when (and (boundp semantic-show-unmatched-syntax-mode) 289 (when (and (boundp semantic-show-unmatched-syntax-mode)
290 semantic-show-unmatched-syntax-mode) 290 semantic-show-unmatched-syntax-mode)
291 ;; Only do this if the user runs unmatched syntax 291 ;; Only do this if the user runs unmatched syntax
292 ;; mode display enties. 292 ;; mode display entries.
293 (oset obj unmatched-syntax 293 (oset obj unmatched-syntax
294 (semantic-show-unmatched-lex-tokens-fetch)) 294 (semantic-show-unmatched-lex-tokens-fetch))
295 ) 295 )
diff --git a/lisp/cedet/semantic/db-find.el b/lisp/cedet/semantic/db-find.el
index 34718d1fdd2..35aef5d16ef 100644
--- a/lisp/cedet/semantic/db-find.el
+++ b/lisp/cedet/semantic/db-find.el
@@ -862,7 +862,7 @@ instead."
862 (let ((tab (car (car tmp))) 862 (let ((tab (car (car tmp)))
863 (tags (cdr (car tmp)))) 863 (tags (cdr (car tmp))))
864 (dolist (T tags) 864 (dolist (T tags)
865 ;; Normilzation gives specialty database tables a chance 865 ;; Normalization gives specialty database tables a chance
866 ;; to convert into a more stable tag format. 866 ;; to convert into a more stable tag format.
867 (let* ((norm (semanticdb-normalize-one-tag tab T)) 867 (let* ((norm (semanticdb-normalize-one-tag tab T))
868 (ntab (car norm)) 868 (ntab (car norm))
@@ -918,7 +918,7 @@ but should be good enough for debugging assertions."
918 result 918 result
919 " ") 919 " ")
920 ">") 920 ">")
921 ;; Longer results should have an abreviated form. 921 ;; Longer results should have an abbreviated form.
922 (format "#<FIND RESULT %d TAGS in %d FILES>" 922 (format "#<FIND RESULT %d TAGS in %d FILES>"
923 (semanticdb-find-result-length result) 923 (semanticdb-find-result-length result)
924 (length result)))) 924 (length result))))
diff --git a/lisp/cedet/semantic/db-typecache.el b/lisp/cedet/semantic/db-typecache.el
index 0096c1aab09..a4c4bd99f26 100644
--- a/lisp/cedet/semantic/db-typecache.el
+++ b/lisp/cedet/semantic/db-typecache.el
@@ -97,7 +97,7 @@ Said object must support `semantic-reset' methods.")
97 (when (semantic-find-tags-by-class 'type new-tags) 97 (when (semantic-find-tags-by-class 'type new-tags)
98 ;; Reset our index 98 ;; Reset our index
99 (oset tc filestream nil) 99 (oset tc filestream nil)
100 t ;; Return true, our core file tags have changed in a relavant way. 100 t ;; Return true, our core file tags have changed in a relevant way.
101 ) 101 )
102 102
103 ;; NO CODE HERE 103 ;; NO CODE HERE
@@ -368,7 +368,7 @@ a master list."
368 (semanticdb-typecache-merge-streams 368 (semanticdb-typecache-merge-streams
369 incstream 369 incstream
370 ;; Getting the cache from this table will also cause this 370 ;; Getting the cache from this table will also cause this
371 ;; file to update it's cache from it's decendants. 371 ;; file to update its cache from its decendents.
372 ;; 372 ;;
373 ;; In theory, caches are only built for most includes 373 ;; In theory, caches are only built for most includes
374 ;; only once (in the loop before this one), so this ends 374 ;; only once (in the loop before this one), so this ends
@@ -473,7 +473,7 @@ found tag to be loaded."
473 ;; find a type/namespace because everything else is excluded. 473 ;; find a type/namespace because everything else is excluded.
474 474
475 ;; If this is not the last entry from the list, then it 475 ;; If this is not the last entry from the list, then it
476 ;; must be a type or a namespace. Lets double check. 476 ;; must be a type or a namespace. Let's double check.
477 (when (cdr type) 477 (when (cdr type)
478 478
479 ;; From above, there is only one tag in ans, and we prefer 479 ;; From above, there is only one tag in ans, and we prefer
@@ -511,7 +511,7 @@ found tag to be loaded."
511 ;; This won't liven up the tag since we have a copy, but 511 ;; This won't liven up the tag since we have a copy, but
512 ;; we ought to be able to get there and go to the right line. 512 ;; we ought to be able to get there and go to the right line.
513 (find-file-noselect lastfile) 513 (find-file-noselect lastfile)
514 ;; We don't want to find-file match, so instead lets 514 ;; We don't want to find-file match, so instead let's
515 ;; push the filename onto the return tag. 515 ;; push the filename onto the return tag.
516 (when lastans 516 (when lastans
517 (setq lastans (semantic-tag-copy lastans nil lastfile)) 517 (setq lastans (semantic-tag-copy lastans nil lastfile))
diff --git a/lisp/cedet/semantic/db.el b/lisp/cedet/semantic/db.el
index 65897b96adb..c9013ed8c90 100644
--- a/lisp/cedet/semantic/db.el
+++ b/lisp/cedet/semantic/db.el
@@ -459,7 +459,7 @@ other than :table."
459 (setq cache (cdr cache))) 459 (setq cache (cdr cache)))
460 (if obj 460 (if obj
461 obj ;; Just return it. 461 obj ;; Just return it.
462 ;; No object, lets create a new one and return that. 462 ;; No object, let's create a new one and return that.
463 (setq obj (funcall desired-class "Cache" :table table)) 463 (setq obj (funcall desired-class "Cache" :table table))
464 (object-add-to-list table 'cache obj) 464 (object-add-to-list table 'cache obj)
465 obj))) 465 obj)))
@@ -510,7 +510,7 @@ other than :table."
510 (setq cache (cdr cache))) 510 (setq cache (cdr cache)))
511 (if obj 511 (if obj
512 obj ;; Just return it. 512 obj ;; Just return it.
513 ;; No object, lets create a new one and return that. 513 ;; No object, let's create a new one and return that.
514 (setq obj (funcall desired-class "Cache" :db db)) 514 (setq obj (funcall desired-class "Cache" :db db))
515 (object-add-to-list db 'cache obj) 515 (object-add-to-list db 'cache obj)
516 obj))) 516 obj)))
@@ -606,7 +606,7 @@ The file associated with OBJ does not need to be in a buffer."
606 ;; The lexical table should be good too. 606 ;; The lexical table should be good too.
607 (when (featurep 'semantic/lex-spp) 607 (when (featurep 'semantic/lex-spp)
608 (oset table lexical-table (semantic-lex-spp-save-table))) 608 (oset table lexical-table (semantic-lex-spp-save-table)))
609 ;; this implies dirtyness 609 ;; this implies dirtiness
610 (semanticdb-set-dirty table) 610 (semanticdb-set-dirty table)
611 611
612 ;; Synchronize the index 612 ;; Synchronize the index
@@ -941,7 +941,7 @@ DONTLOAD does not affect the creation of new database objects."
941 (setq fullfile (file-truename file)) 941 (setq fullfile (file-truename file))
942 ) 942 )
943 943
944 ;; If we have a table, but no fullfile, that's ok. Lets get the filename 944 ;; If we have a table, but no fullfile, that's ok. Let's get the filename
945 ;; from the table which is pre-truenamed. 945 ;; from the table which is pre-truenamed.
946 (when (and (not fullfile) tab) 946 (when (and (not fullfile) tab)
947 (setq fullfile (semanticdb-full-filename tab))) 947 (setq fullfile (semanticdb-full-filename tab)))
diff --git a/lisp/cedet/semantic/decorate.el b/lisp/cedet/semantic/decorate.el
index ee356ad3a9e..4eeac8de141 100644
--- a/lisp/cedet/semantic/decorate.el
+++ b/lisp/cedet/semantic/decorate.el
@@ -107,7 +107,7 @@ the extent 'intangible' property does not exist."
107 "Hook used in modification hooks to prevent modification. 107 "Hook used in modification hooks to prevent modification.
108Allows deletion of the entire text. 108Allows deletion of the entire text.
109Argument OVERLAY, AFTER, START, END, and LEN are passed in by the system." 109Argument OVERLAY, AFTER, START, END, and LEN are passed in by the system."
110 ;; Stolen blithly from cpp.el in Emacs 21.1 110 ;; Stolen blithely from cpp.el in Emacs 21.1
111 (if (and (not after) 111 (if (and (not after)
112 (or (< (semantic-overlay-start overlay) start) 112 (or (< (semantic-overlay-start overlay) start)
113 (> (semantic-overlay-end overlay) end))) 113 (> (semantic-overlay-end overlay) end)))
diff --git a/lisp/cedet/semantic/decorate/include.el b/lisp/cedet/semantic/decorate/include.el
index e984965a737..766a13023e8 100644
--- a/lisp/cedet/semantic/decorate/include.el
+++ b/lisp/cedet/semantic/decorate/include.el
@@ -296,7 +296,7 @@ This mode provides a nice context menu on the include statements."
296 ;; Set ourselves up for synchronization 296 ;; Set ourselves up for synchronization
297 (semanticdb-cache-get 297 (semanticdb-cache-get
298 table 'semantic-decoration-unparsed-include-cache) 298 table 'semantic-decoration-unparsed-include-cache)
299 ;; Add a dependancy. 299 ;; Add a dependency.
300 (let ((table semanticdb-current-table)) 300 (let ((table semanticdb-current-table))
301 (semanticdb-add-reference table tag)) 301 (semanticdb-add-reference table tag))
302 ) 302 )
@@ -459,7 +459,7 @@ to add the path to Semantic's search.
459If this is an include file that belongs to your project, then you may 459If this is an include file that belongs to your project, then you may
460need to update `semanticdb-project-roots' or better yet, use `ede' 460need to update `semanticdb-project-roots' or better yet, use `ede'
461to manage your project. See the ede manual for projects that will 461to manage your project. See the ede manual for projects that will
462wrap existing project code for Semantic's benifit. 462wrap existing project code for Semantic's benefit.
463") 463")
464 464
465 (when (or (eq mm 'c++-mode) (eq mm 'c-mode)) 465 (when (or (eq mm 'c++-mode) (eq mm 'c-mode))
@@ -739,7 +739,7 @@ any decorated referring includes.")
739 "Refresh any highlighting in buffers referred to by TABLE. 739 "Refresh any highlighting in buffers referred to by TABLE.
740If TABLE is not in a buffer, do nothing." 740If TABLE is not in a buffer, do nothing."
741 ;; This cache removal may seem odd in that we are "creating one", but 741 ;; This cache removal may seem odd in that we are "creating one", but
742 ;; since we cant get in the fcn unless one exists, this ought to be 742 ;; since we can't get in the fcn unless one exists, this ought to be
743 ;; ok. 743 ;; ok.
744 (let ((c (semanticdb-cache-get 744 (let ((c (semanticdb-cache-get
745 table 'semantic-decoration-unparsed-include-cache))) 745 table 'semantic-decoration-unparsed-include-cache)))
diff --git a/lisp/cedet/semantic/doc.el b/lisp/cedet/semantic/doc.el
index e5579d09113..ec3b5878c63 100644
--- a/lisp/cedet/semantic/doc.el
+++ b/lisp/cedet/semantic/doc.el
@@ -56,7 +56,7 @@ If nosnarf if 'lex, then only return the lex token."
56 ;; Check just before the definition. 56 ;; Check just before the definition.
57 (when (semantic-tag-with-position-p tag) 57 (when (semantic-tag-with-position-p tag)
58 (semantic-documentation-comment-preceeding-tag tag nosnarf)) 58 (semantic-documentation-comment-preceeding-tag tag nosnarf))
59 ;; Lets look for comments either after the definition, but before code: 59 ;; Let's look for comments either after the definition, but before code:
60 ;; Not sure yet. Fill in something clever later.... 60 ;; Not sure yet. Fill in something clever later....
61 nil)))))) 61 nil))))))
62 62
diff --git a/lisp/cedet/semantic/edit.el b/lisp/cedet/semantic/edit.el
index 7f7e82a95c2..4ac2733a34f 100644
--- a/lisp/cedet/semantic/edit.el
+++ b/lisp/cedet/semantic/edit.el
@@ -316,7 +316,7 @@ See `semantic-edits-change-leaf-tag' for details on parents."
316 (setq list-to-search nil))) 316 (setq list-to-search nil)))
317 ;; Search list is nil. 317 ;; Search list is nil.
318 )) 318 ))
319 ;; If we have a search list, lets go. Otherwise nothing. 319 ;; If we have a search list, let's go. Otherwise nothing.
320 (while (and list-to-search (not found)) 320 (while (and list-to-search (not found))
321 (if (cdr list-to-search) 321 (if (cdr list-to-search)
322 ;; We end when the start of the CDR is after the end of our 322 ;; We end when the start of the CDR is after the end of our
@@ -427,7 +427,7 @@ See `semantic-edits-change-leaf-tag' for details on parents."
427 ;; which must have a value by now. 427 ;; which must have a value by now.
428 428
429 ;; Loop over the search list to find the preceding CDR. 429 ;; Loop over the search list to find the preceding CDR.
430 ;; Fortunatly, (car overlapped-tags) happens to be 430 ;; Fortunately, (car overlapped-tags) happens to be
431 ;; the first tag positionally. 431 ;; the first tag positionally.
432 (let ((tokstart (semantic-tag-start (car overlapped-tags)))) 432 (let ((tokstart (semantic-tag-start (car overlapped-tags))))
433 (while (and list-to-search 433 (while (and list-to-search
@@ -537,7 +537,7 @@ This function is for internal use by `semantic-edits-incremental-parser'."
537 ;; We want to take some set of changes, and group them 537 ;; We want to take some set of changes, and group them
538 ;; together into a small change group. One change forces 538 ;; together into a small change group. One change forces
539 ;; a reparse of a larger region (the size of some set of 539 ;; a reparse of a larger region (the size of some set of
540 ;; tags it encompases.) It may contain several tags. 540 ;; tags it encompasses.) It may contain several tags.
541 ;; That region may have other changes in it (several small 541 ;; That region may have other changes in it (several small
542 ;; changes in one function, for example.) 542 ;; changes in one function, for example.)
543 ;; Optimize for the simple cases here, but try to handle 543 ;; Optimize for the simple cases here, but try to handle
@@ -595,7 +595,7 @@ This function is for internal use by `semantic-edits-incremental-parser'."
595 ;; Feb 06 - 595 ;; Feb 06 -
596 ;; IDed when the first cache-list tag is after 596 ;; IDed when the first cache-list tag is after
597 ;; our change, meaning there is nothing before 597 ;; our change, meaning there is nothing before
598 ;; the chnge. 598 ;; the change.
599 ((> (semantic-tag-start (car cache-list)) 599 ((> (semantic-tag-start (car cache-list))
600 (semantic-overlay-end (car changes))) 600 (semantic-overlay-end (car changes)))
601 (setq last-cond "Beginning of buffer") 601 (setq last-cond "Beginning of buffer")
diff --git a/lisp/cedet/semantic/find.el b/lisp/cedet/semantic/find.el
index c2d07fbcc35..b4d94321bc1 100644
--- a/lisp/cedet/semantic/find.el
+++ b/lisp/cedet/semantic/find.el
@@ -574,7 +574,7 @@ FUNCTION must return non-nil if an element of STREAM will be included
574in the new list. 574in the new list.
575 575
576If optional argument SEARCH-PARTS is non-nil, all sub-parts of tags 576If optional argument SEARCH-PARTS is non-nil, all sub-parts of tags
577are searched. The overloadable function `semantic-tag-componenets' is 577are searched. The overloadable function `semantic-tag-components' is
578used for the searching child lists. If SEARCH-PARTS is the symbol 578used for the searching child lists. If SEARCH-PARTS is the symbol
579'positiononly, then only children that have positional information are 579'positiononly, then only children that have positional information are
580searched. 580searched.
diff --git a/lisp/cedet/semantic/format.el b/lisp/cedet/semantic/format.el
index fa6e7517624..876ec9bbd4a 100644
--- a/lisp/cedet/semantic/format.el
+++ b/lisp/cedet/semantic/format.el
@@ -291,7 +291,7 @@ local definitions."
291 ;; Try and find a trail of parents from PARENT 291 ;; Try and find a trail of parents from PARENT
292 (let ((rlist (list parent)) 292 (let ((rlist (list parent))
293 ) 293 )
294 ;; IMPLELEMENT ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 294 ;; IMPLEMENT ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
295 (reverse rlist))) 295 (reverse rlist)))
296 296
297(define-overloadable-function semantic-format-tag-canonical-name (tag &optional parent color) 297(define-overloadable-function semantic-format-tag-canonical-name (tag &optional parent color)
@@ -431,7 +431,7 @@ Optional argument COLOR means highlight the prototype with font-lock colors."
431 (doc (semantic-tag-docstring tag buf))) 431 (doc (semantic-tag-docstring tag buf)))
432 (when (and (not doc) (not buf) fname) 432 (when (and (not doc) (not buf) fname)
433 ;; If there is no doc, and no buffer, but we have a filename, 433 ;; If there is no doc, and no buffer, but we have a filename,
434 ;; lets try again. 434 ;; let's try again.
435 (save-match-data 435 (save-match-data
436 (setq buf (find-file-noselect fname))) 436 (setq buf (find-file-noselect fname)))
437 (setq doc (semantic-tag-docstring tag buf))) 437 (setq doc (semantic-tag-docstring tag buf)))
@@ -603,7 +603,7 @@ This associates a symbol, such as 'public with the st ring \"+\".")
603 "Convert PROTECTION-SYMBOL to a string for UML. 603 "Convert PROTECTION-SYMBOL to a string for UML.
604By default, uses `semantic-format-tag-protection-symbol-to-string-assoc-list' 604By default, uses `semantic-format-tag-protection-symbol-to-string-assoc-list'
605to convert. 605to convert.
606By defaul character returns are: 606By default character returns are:
607 public -- + 607 public -- +
608 private -- - 608 private -- -
609 protected -- #. 609 protected -- #.
diff --git a/lisp/cedet/semantic/html.el b/lisp/cedet/semantic/html.el
index 972ce5e26bc..137759d46ac 100644
--- a/lisp/cedet/semantic/html.el
+++ b/lisp/cedet/semantic/html.el
@@ -61,7 +61,7 @@
61(define-mode-local-override semantic-parse-region 61(define-mode-local-override semantic-parse-region
62 html-mode (&rest ignore) 62 html-mode (&rest ignore)
63 "Parse the current html buffer for semantic tags. 63 "Parse the current html buffer for semantic tags.
64INGNORE any arguments. Always parse the whole buffer. 64IGNORE any arguments. Always parse the whole buffer.
65Each tag returned is of the form: 65Each tag returned is of the form:
66 (\"NAME\" section (:members CHILDREN)) 66 (\"NAME\" section (:members CHILDREN))
67or 67or
diff --git a/lisp/cedet/semantic/ia-sb.el b/lisp/cedet/semantic/ia-sb.el
index 57067936a90..95a68673b8c 100644
--- a/lisp/cedet/semantic/ia-sb.el
+++ b/lisp/cedet/semantic/ia-sb.el
@@ -36,7 +36,7 @@
36 nil 36 nil
37 (setq semantic-ia-sb-key-map (speedbar-make-specialized-keymap)) 37 (setq semantic-ia-sb-key-map (speedbar-make-specialized-keymap))
38 38
39 ;; Basic featuers. 39 ;; Basic features.
40 (define-key semantic-ia-sb-key-map "\C-m" 'speedbar-edit-line) 40 (define-key semantic-ia-sb-key-map "\C-m" 'speedbar-edit-line)
41 (define-key semantic-ia-sb-key-map "I" 'semantic-ia-sb-show-tag-info) 41 (define-key semantic-ia-sb-key-map "I" 'semantic-ia-sb-show-tag-info)
42 ) 42 )
diff --git a/lisp/cedet/semantic/ia.el b/lisp/cedet/semantic/ia.el
index 69b1dba0bcf..2aae39d4b21 100644
--- a/lisp/cedet/semantic/ia.el
+++ b/lisp/cedet/semantic/ia.el
@@ -115,11 +115,11 @@ Completion options are calculated with `semantic-analyze-possible-completions'."
115 (if (null syms) 115 (if (null syms)
116 (if (semantic-analyze-context-p a) 116 (if (semantic-analyze-context-p a)
117 ;; This is a clever hack. If we were unable to find any 117 ;; This is a clever hack. If we were unable to find any
118 ;; smart completions, lets divert to how senator derives 118 ;; smart completions, let's divert to how senator derives
119 ;; completions. 119 ;; completions.
120 ;; 120 ;;
121 ;; This is a way of making this fcn more useful since 121 ;; This is a way of making this fcn more useful since
122 ;; the smart completion engine sometimes failes. 122 ;; the smart completion engine sometimes fails.
123 (semantic-complete-symbol)) 123 (semantic-complete-symbol))
124 ;; Use try completion to seek a common substring. 124 ;; Use try completion to seek a common substring.
125 (let ((tc (try-completion (or pre "") syms))) 125 (let ((tc (try-completion (or pre "") syms)))
@@ -199,7 +199,7 @@ Completion options are calculated with `semantic-analyze-possible-completions'."
199 ) 199 )
200 (if pf 200 (if pf
201 (message "%s" (semantic-format-tag-summarize pf nil t)) 201 (message "%s" (semantic-format-tag-summarize pf nil t))
202 (message "No summary info availalble")))) 202 (message "No summary info available"))))
203 203
204;;; Variants 204;;; Variants
205;; 205;;
@@ -245,14 +245,14 @@ Completion options are calculated with `semantic-analyze-possible-completions'."
245;; Jump to a destination based on the local context. 245;; Jump to a destination based on the local context.
246;; 246;;
247;; This shows how to use the analyzer context, and the 247;; This shows how to use the analyzer context, and the
248;; analyer references objects to choose a good destination. 248;; analyzer references objects to choose a good destination.
249 249
250(defun semantic-ia--fast-jump-helper (dest) 250(defun semantic-ia--fast-jump-helper (dest)
251 "Jump to DEST, a Semantic tag. 251 "Jump to DEST, a Semantic tag.
252This helper manages the mark, buffer switching, and pulsing." 252This helper manages the mark, buffer switching, and pulsing."
253 ;; We have a tag, but in C++, we usually get a prototype instead 253 ;; We have a tag, but in C++, we usually get a prototype instead
254 ;; because of header files. Lets try to find the actual 254 ;; because of header files. Let's try to find the actual
255 ;; implementaion instead. 255 ;; implementation instead.
256 (when (semantic-tag-prototype-p dest) 256 (when (semantic-tag-prototype-p dest)
257 (let* ((refs (semantic-analyze-tag-references dest)) 257 (let* ((refs (semantic-analyze-tag-references dest))
258 (impl (semantic-analyze-refs-impl refs t)) 258 (impl (semantic-analyze-refs-impl refs t))
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el
index 1c1233303e9..b49d1db1ad5 100644
--- a/lisp/cedet/semantic/idle.el
+++ b/lisp/cedet/semantic/idle.el
@@ -427,7 +427,7 @@ datasets."
427 427
428(defun semantic-idle-scheduler-work-parse-neighboring-files () 428(defun semantic-idle-scheduler-work-parse-neighboring-files ()
429 "Parse all the files in similar directories to buffers being edited." 429 "Parse all the files in similar directories to buffers being edited."
430 ;; Lets check to see if EDE matters. 430 ;; Let's check to see if EDE matters.
431 (let ((ede-auto-add-method 'never)) 431 (let ((ede-auto-add-method 'never))
432 (dolist (a auto-mode-alist) 432 (dolist (a auto-mode-alist)
433 (when (eq (cdr a) major-mode) 433 (when (eq (cdr a) major-mode)
diff --git a/lisp/cedet/semantic/imenu.el b/lisp/cedet/semantic/imenu.el
index e7e1da55ce3..033c34e1b83 100644
--- a/lisp/cedet/semantic/imenu.el
+++ b/lisp/cedet/semantic/imenu.el
@@ -96,7 +96,7 @@ This option is ignored if `semantic-imenu-bucketize-file' is nil."
96(defcustom semantic-imenu-bucketize-type-members t 96(defcustom semantic-imenu-bucketize-type-members t
97 "*Non-nil if members of a type should be grouped into buckets. 97 "*Non-nil if members of a type should be grouped into buckets.
98A nil value means to keep them in the same order. 98A nil value means to keep them in the same order.
99Overriden to nil if `semantic-imenu-bucketize-file' is nil." 99Overridden to nil if `semantic-imenu-bucketize-file' is nil."
100 :group 'semantic-imenu 100 :group 'semantic-imenu
101 :type 'boolean) 101 :type 'boolean)
102(make-variable-buffer-local 'semantic-imenu-bucketize-type-members) 102(make-variable-buffer-local 'semantic-imenu-bucketize-type-members)
@@ -393,7 +393,7 @@ Optional argument PARENT is a tag parent of STREAM."
393 semantic-imenu-bucketize-file) 393 semantic-imenu-bucketize-file)
394 (semantic-create-imenu-index-1 parts tag) 394 (semantic-create-imenu-index-1 parts tag)
395 (semantic-create-imenu-subindex parts)))) 395 (semantic-create-imenu-subindex parts))))
396 ;; Only add a *definition* if we have a postion 396 ;; Only add a *definition* if we have a position
397 ;; in that type tag. 397 ;; in that type tag.
398 (if (semantic-tag-with-position-p tag) 398 (if (semantic-tag-with-position-p tag)
399 (cons 399 (cons
diff --git a/lisp/cedet/semantic/lex-spp.el b/lisp/cedet/semantic/lex-spp.el
index e49968b07e7..8009a257a7b 100644
--- a/lisp/cedet/semantic/lex-spp.el
+++ b/lisp/cedet/semantic/lex-spp.el
@@ -639,7 +639,7 @@ and what valid VAL values are."
639 639
640;;; Macro Merging 640;;; Macro Merging
641;; 641;;
642;; Used when token streams from different macros include eachother. 642;; Used when token streams from different macros include each other.
643;; Merged macro streams perform in place replacements. 643;; Merged macro streams perform in place replacements.
644 644
645(defun semantic-lex-spp-merge-streams (raw-stream) 645(defun semantic-lex-spp-merge-streams (raw-stream)
@@ -709,7 +709,7 @@ ARGVALUES are values for any arg list, or nil."
709 709
710;;; Symbol Is Macro 710;;; Symbol Is Macro
711;; 711;;
712;; An analyser that will push tokens from a macro in place 712;; An analyzer that will push tokens from a macro in place
713;; of the macro symbol. 713;; of the macro symbol.
714;; 714;;
715(defun semantic-lex-spp-anlyzer-do-replace (sym val beg end) 715(defun semantic-lex-spp-anlyzer-do-replace (sym val beg end)
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el
index d6b8e1a8bf5..4da3be98f37 100644
--- a/lisp/cedet/semantic/lex.el
+++ b/lisp/cedet/semantic/lex.el
@@ -491,7 +491,7 @@ For compatibility with Semantic 1.x it defaults to `semantic-flex'.")
491 (symbol) 491 (symbol)
492 (whitespace) 492 (whitespace)
493 ) 493 )
494 "An alist of of semantic token types. 494 "An alist of semantic token types.
495As of December 2001 (semantic 1.4beta13), this variable is not used in 495As of December 2001 (semantic 1.4beta13), this variable is not used in
496any code. The only use is to refer to the doc-string from elsewhere. 496any code. The only use is to refer to the doc-string from elsewhere.
497 497
@@ -1437,7 +1437,7 @@ Return either a paren token or a semantic list token depending on
1437;;; Comment lexer 1437;;; Comment lexer
1438;; 1438;;
1439;; Predefined lexers that could be used instead of creating new 1439;; Predefined lexers that could be used instead of creating new
1440;; analyers. 1440;; analyzers.
1441 1441
1442(define-lex semantic-comment-lexer 1442(define-lex semantic-comment-lexer
1443 "A simple lexical analyzer that handles comments. 1443 "A simple lexical analyzer that handles comments.
@@ -1677,7 +1677,7 @@ When the lexer encounters the open-paren delimiter \"(\":
1677;;; Lexical Safety 1677;;; Lexical Safety
1678;; 1678;;
1679;; The semantic lexers, unlike other lexers, can throw errors on 1679;; The semantic lexers, unlike other lexers, can throw errors on
1680;; unbalanced syntax. Since editing is all about changeging test 1680;; unbalanced syntax. Since editing is all about changing text
1681;; we need to provide a convenient way to protect against syntactic 1681;; we need to provide a convenient way to protect against syntactic
1682;; inequalities. 1682;; inequalities.
1683 1683
@@ -1758,7 +1758,7 @@ If there is no error, then the last value of FORMS is returned."
1758(semantic-alias-obsolete 'semantic-flex-map-keywords 'semantic-lex-map-keywords "23.2") 1758(semantic-alias-obsolete 'semantic-flex-map-keywords 'semantic-lex-map-keywords "23.2")
1759(semantic-alias-obsolete 'semantic-flex-keywords 'semantic-lex-keywords "23.2") 1759(semantic-alias-obsolete 'semantic-flex-keywords 'semantic-lex-keywords "23.2")
1760(semantic-alias-obsolete 'semantic-flex-buffer 'semantic-lex-buffer "23.2") 1760(semantic-alias-obsolete 'semantic-flex-buffer 'semantic-lex-buffer "23.2")
1761(semantic-alias-obsolete 'semantic-flex-list 'semantic-lex-list "23.2") 1761(semantic-alias-obsolete 'semantic-flex-list 'semantic-lex-list "23.2")
1762 1762
1763;; This simple scanner uses the syntax table to generate a stream of 1763;; This simple scanner uses the syntax table to generate a stream of
1764;; simple tokens of the form: 1764;; simple tokens of the form:
@@ -1769,7 +1769,7 @@ If there is no error, then the last value of FORMS is returned."
1769;; objects boundary. 1769;; objects boundary.
1770 1770
1771(defvar semantic-flex-tokens semantic-lex-tokens 1771(defvar semantic-flex-tokens semantic-lex-tokens
1772 "An alist of of semantic token types. 1772 "An alist of semantic token types.
1773See variable `semantic-lex-tokens'.") 1773See variable `semantic-lex-tokens'.")
1774 1774
1775(defvar semantic-flex-unterminated-syntax-end-function 1775(defvar semantic-flex-unterminated-syntax-end-function
diff --git a/lisp/cedet/semantic/sb.el b/lisp/cedet/semantic/sb.el
index 88b0cc33d43..d9a3ede360d 100644
--- a/lisp/cedet/semantic/sb.el
+++ b/lisp/cedet/semantic/sb.el
@@ -313,7 +313,7 @@ TEXT TOKEN and INDENT are the details."
313 (save-excursion (speedbar-stealthy-updates)) 313 (save-excursion (speedbar-stealthy-updates))
314 (semantic-go-to-tag token parent) 314 (semantic-go-to-tag token parent)
315 (switch-to-buffer (current-buffer)) 315 (switch-to-buffer (current-buffer))
316 ;; Reset the timer with a new timeout when cliking a file 316 ;; Reset the timer with a new timeout when clicking a file
317 ;; in case the user was navigating directories, we can cancel 317 ;; in case the user was navigating directories, we can cancel
318 ;; that other timer. 318 ;; that other timer.
319 ;; (speedbar-set-timer dframe-update-speed) 319 ;; (speedbar-set-timer dframe-update-speed)
@@ -399,7 +399,7 @@ Returns the tag list, or t for an error."
399 (if (listp out) 399 (if (listp out)
400 (condition-case nil 400 (condition-case nil
401 (progn 401 (progn
402 ;; This brings externally defind methods into 402 ;; This brings externally defined methods into
403 ;; their classes, and creates meta classes for 403 ;; their classes, and creates meta classes for
404 ;; orphans. 404 ;; orphans.
405 (setq out (semantic-adopt-external-members out)) 405 (setq out (semantic-adopt-external-members out))
diff --git a/lisp/cedet/semantic/scope.el b/lisp/cedet/semantic/scope.el
index 78a1fd049f0..16deb245527 100644
--- a/lisp/cedet/semantic/scope.el
+++ b/lisp/cedet/semantic/scope.el
@@ -186,7 +186,7 @@ Use `semantic-ctxt-scoped-types' to find types."
186 (save-excursion 186 (save-excursion
187 (goto-char position) 187 (goto-char position)
188 (let ((code-scoped-types nil)) 188 (let ((code-scoped-types nil))
189 ;; Lets ask if any types are currently scoped. Scoped 189 ;; Let's ask if any types are currently scoped. Scoped
190 ;; classes and types provide their public methods and types 190 ;; classes and types provide their public methods and types
191 ;; in source code, but are unrelated hierarchically. 191 ;; in source code, but are unrelated hierarchically.
192 (let ((sp (semantic-ctxt-scoped-types))) 192 (let ((sp (semantic-ctxt-scoped-types)))
@@ -249,7 +249,7 @@ are from nesting data types."
249 ;; Analyze the stack of tags we are nested in as parents. 249 ;; Analyze the stack of tags we are nested in as parents.
250 ;; 250 ;;
251 251
252 ;; If we have a pparent tag, lets go there 252 ;; If we have a pparent tag, let's go there
253 ;; an analyze that stack of tags. 253 ;; an analyze that stack of tags.
254 (when (and pparent (semantic-tag-with-position-p pparent)) 254 (when (and pparent (semantic-tag-with-position-p pparent))
255 (semantic-go-to-tag pparent) 255 (semantic-go-to-tag pparent)
@@ -384,7 +384,7 @@ be found."
384;;------------------------------------------------------------ 384;;------------------------------------------------------------
385 385
386(define-overloadable-function semantic-analyze-scoped-tags (typelist parentlist) 386(define-overloadable-function semantic-analyze-scoped-tags (typelist parentlist)
387 "Return accessable tags when TYPELIST and PARENTLIST is in scope. 387 "Return accessible tags when TYPELIST and PARENTLIST is in scope.
388Tags returned are not in the global name space, but are instead 388Tags returned are not in the global name space, but are instead
389scoped inside a class or namespace. Such items can be referenced 389scoped inside a class or namespace. Such items can be referenced
390without use of \"object.function()\" style syntax due to an 390without use of \"object.function()\" style syntax due to an
@@ -412,7 +412,7 @@ implicit \"object\"."
412 )) 412 ))
413 (setq typelist (cdr typelist))) 413 (setq typelist (cdr typelist)))
414 414
415 ;; Loop over the types (which should be sorted by postion 415 ;; Loop over the types (which should be sorted by position)
416 ;; adding to the scopelist as we go, and using the scopelist 416 ;; adding to the scopelist as we go, and using the scopelist
417 ;; for additional searching! 417 ;; for additional searching!
418 (while typelist2 418 (while typelist2
@@ -424,9 +424,9 @@ implicit \"object\"."
424 currentscope)) 424 currentscope))
425 (setq typelist2 (cdr typelist2))) 425 (setq typelist2 (cdr typelist2)))
426 426
427 ;; Collect all the types (class, etc) that are in our heratage. 427 ;; Collect all the types (class, etc) that are in our heritage.
428 ;; These are types that we can extract members from, not those 428 ;; These are types that we can extract members from, not those
429 ;; delclared in using statements, or the like. 429 ;; declared in using statements, or the like.
430 ;; Get the PARENTS including nesting scope for this location. 430 ;; Get the PARENTS including nesting scope for this location.
431 (while parentlist 431 (while parentlist
432 (oset miniscope scope currentscope) 432 (oset miniscope scope currentscope)
diff --git a/lisp/cedet/semantic/symref/grep.el b/lisp/cedet/semantic/symref/grep.el
index 1571622b29a..da250e66bb5 100644
--- a/lisp/cedet/semantic/symref/grep.el
+++ b/lisp/cedet/semantic/symref/grep.el
@@ -102,7 +102,7 @@ ROOTDIR is the root location to run the `find' from.
102FILEPATTERN is a string representing find flags for searching file patterns. 102FILEPATTERN is a string representing find flags for searching file patterns.
103GREPFLAGS are flags passed to grep, such as -n or -l. 103GREPFLAGS are flags passed to grep, such as -n or -l.
104GREPPATTERN is the pattern used by grep." 104GREPPATTERN is the pattern used by grep."
105 ;; We have grep-compute-defaults. Lets use it. 105 ;; We have grep-compute-defaults. Let's use it.
106 (grep-compute-defaults) 106 (grep-compute-defaults)
107 (let* ((grep-expand-keywords semantic-symref-grep-expand-keywords) 107 (let* ((grep-expand-keywords semantic-symref-grep-expand-keywords)
108 (cmd (grep-expand-template grep-find-template 108 (cmd (grep-expand-template grep-find-template
diff --git a/lisp/cedet/semantic/tag-file.el b/lisp/cedet/semantic/tag-file.el
index 17fd3b45356..d118d9b6203 100644
--- a/lisp/cedet/semantic/tag-file.el
+++ b/lisp/cedet/semantic/tag-file.el
@@ -154,7 +154,7 @@ Depends on `semantic-dependency-include-path' for searching. Always searches
154 (setq result 154 (setq result
155 ;; I don't have a plan for refreshing tags with a dependency 155 ;; I don't have a plan for refreshing tags with a dependency
156 ;; stuck on them somehow. I'm thinking that putting a cache 156 ;; stuck on them somehow. I'm thinking that putting a cache
157 ;; onto the dependancy finding with a hash table might be best. 157 ;; onto the dependency finding with a hash table might be best.
158 ;;(if (semantic--tag-get-property tag 'dependency-file) 158 ;;(if (semantic--tag-get-property tag 'dependency-file)
159 ;; (semantic--tag-get-property tag 'dependency-file) 159 ;; (semantic--tag-get-property tag 'dependency-file)
160 (:override 160 (:override
diff --git a/lisp/cedet/semantic/tag-ls.el b/lisp/cedet/semantic/tag-ls.el
index 8f54698d506..4d001322108 100644
--- a/lisp/cedet/semantic/tag-ls.el
+++ b/lisp/cedet/semantic/tag-ls.el
@@ -41,7 +41,7 @@
41 41
42(define-overloadable-function semantic-tag-calculate-parent (tag) 42(define-overloadable-function semantic-tag-calculate-parent (tag)
43 "Attempt to calculate the parent of TAG. 43 "Attempt to calculate the parent of TAG.
44The default behavior (if not overriden with `tag-calculate-parent') 44The default behavior (if not overridden with `tag-calculate-parent')
45is to search a buffer found with TAG, and if externally defined, 45is to search a buffer found with TAG, and if externally defined,
46search locally, then semanticdb for that tag (when enabled.)") 46search locally, then semanticdb for that tag (when enabled.)")
47 47
@@ -98,7 +98,7 @@ See `semantic-tag-protection'."
98 prot)) 98 prot))
99 99
100(defun semantic-tag-protected-p (tag protection &optional parent) 100(defun semantic-tag-protected-p (tag protection &optional parent)
101 "Non-nil if TAG is is protected. 101 "Non-nil if TAG is protected.
102PROTECTION is a symbol which can be returned by the method 102PROTECTION is a symbol which can be returned by the method
103`semantic-tag-protection'. 103`semantic-tag-protection'.
104PARENT is the parent data type which contains TAG. 104PARENT is the parent data type which contains TAG.
@@ -106,7 +106,7 @@ PARENT is the parent data type which contains TAG.
106For these PROTECTIONs, true is returned if TAG is: 106For these PROTECTIONs, true is returned if TAG is:
107@table @asis 107@table @asis
108@item nil 108@item nil
109 Always true 109 Always true.
110@item private 110@item private
111 True if nil. 111 True if nil.
112@item protected 112@item protected
@@ -221,7 +221,7 @@ something without an implementation."
221 221
222(define-overloadable-function semantic-tag-full-name (tag &optional stream-or-buffer) 222(define-overloadable-function semantic-tag-full-name (tag &optional stream-or-buffer)
223 "Return the fully qualified name of TAG in the package hierarchy. 223 "Return the fully qualified name of TAG in the package hierarchy.
224STREAM-OR-BUFFER can be anything convertable by `semantic-something-to-stream', 224STREAM-OR-BUFFER can be anything convertible by `semantic-something-to-stream',
225but must be a toplevel semantic tag stream that contains TAG. 225but must be a toplevel semantic tag stream that contains TAG.
226A Package Hierarchy is defined in UML by the way classes and methods 226A Package Hierarchy is defined in UML by the way classes and methods
227are organized on disk. Some language use this concept such that a 227are organized on disk. Some language use this concept such that a
diff --git a/lisp/cedet/semantic/texi.el b/lisp/cedet/semantic/texi.el
index 393d64e6420..c2f080ce75b 100644
--- a/lisp/cedet/semantic/texi.el
+++ b/lisp/cedet/semantic/texi.el
@@ -421,7 +421,7 @@ Optional argument POINT is where to look for the environment."
421 texinfo-mode (context) 421 texinfo-mode (context)
422 "List smart completions at point. 422 "List smart completions at point.
423Since texinfo is not a programming language the default version is not 423Since texinfo is not a programming language the default version is not
424useful. Insted, look at the current symbol. If it is a command 424useful. Instead, look at the current symbol. If it is a command
425do primitive texinfo built ins. If not, use ispell to lookup words 425do primitive texinfo built ins. If not, use ispell to lookup words
426that start with that symbol." 426that start with that symbol."
427 (let ((prefix (car (oref context :prefix))) 427 (let ((prefix (car (oref context :prefix)))
@@ -579,7 +579,7 @@ Note: TYPE not yet implemented."
579;; (setq doctag (if docstring sourcetag nil)))) 579;; (setq doctag (if docstring sourcetag nil))))
580;; (setq tags (cdr tags))))) 580;; (setq tags (cdr tags)))))
581;; ;; If we found a prototype of the function that has some doc, but not the 581;; ;; If we found a prototype of the function that has some doc, but not the
582;; ;; actual function, lets make due with that. 582;; ;; actual function, let's make due with that.
583;; (if (not docstring) 583;; (if (not docstring)
584;; (cond ((stringp docstringvar) 584;; (cond ((stringp docstringvar)
585;; (setq docstring docstringvar 585;; (setq docstring docstringvar
@@ -597,7 +597,7 @@ Note: TYPE not yet implemented."
597;; ;; If we have a string, do the replacement. 597;; ;; If we have a string, do the replacement.
598;; (delete-region (semantic-tag-start tag) 598;; (delete-region (semantic-tag-start tag)
599;; (semantic-tag-end tag)) 599;; (semantic-tag-end tag))
600;; ;; Use useful functions from the docaument library. 600;; ;; Use useful functions from the document library.
601;; (srecode-texi-insert-tag-as-doc doctag) 601;; (srecode-texi-insert-tag-as-doc doctag)
602;; ;(semantic-insert-foreign-tag doctag) 602;; ;(semantic-insert-foreign-tag doctag)
603;; )) 603;; ))
diff --git a/lisp/cedet/semantic/wisent/python.el b/lisp/cedet/semantic/wisent/python.el
index 095a817f08d..1f52e9eb3b6 100644
--- a/lisp/cedet/semantic/wisent/python.el
+++ b/lisp/cedet/semantic/wisent/python.el
@@ -108,7 +108,7 @@ line ends at the end of the buffer, leave the point there."
108(defun wisent-python-forward-line-skip-indented () 108(defun wisent-python-forward-line-skip-indented ()
109 "Move point to the next logical line, skipping indented lines. 109 "Move point to the next logical line, skipping indented lines.
110That is the next line whose indentation is less than or equal to the 110That is the next line whose indentation is less than or equal to the
111identation of the current line." 111indentation of the current line."
112 (let ((indent (current-indentation))) 112 (let ((indent (current-indentation)))
113 (while (progn (wisent-python-forward-line) 113 (while (progn (wisent-python-forward-line)
114 (and (not (eobp)) 114 (and (not (eobp))
@@ -291,7 +291,7 @@ To be implemented for Python! For now just return nil."
291 ;; Character used to separation a parent/child relationship 291 ;; Character used to separation a parent/child relationship
292 semantic-type-relation-separator-character '(".") 292 semantic-type-relation-separator-character '(".")
293 semantic-command-separation-character ";" 293 semantic-command-separation-character ";"
294 ;; The following is no more necessary as semantic-lex is overriden 294 ;; The following is no more necessary as semantic-lex is overridden
295 ;; in python-mode. 295 ;; in python-mode.
296 ;; semantic-lex-analyzer 'wisent-python-lexer 296 ;; semantic-lex-analyzer 'wisent-python-lexer
297 297