diff options
| author | Joakim Verona | 2011-12-28 11:34:15 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-12-28 11:34:15 +0100 |
| commit | 2f74c36bf173b5ad01f99e0d1b31b9b8fa5c8f2f (patch) | |
| tree | 034e65ef002631d0aba8fc1a41e9984fc557e630 /lisp/cedet | |
| parent | bb29f044aa967831cd664c54eba0de0c701436ce (diff) | |
| parent | d23ab8e8726ecb7e3554644857b4a58e5f7408f1 (diff) | |
| download | emacs-2f74c36bf173b5ad01f99e0d1b31b9b8fa5c8f2f.tar.gz emacs-2f74c36bf173b5ad01f99e0d1b31b9b8fa5c8f2f.zip | |
upstream
Diffstat (limited to 'lisp/cedet')
27 files changed, 63 insertions, 54 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index f3ff89ddd7f..0e46ba73e6e 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-12-19 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * semantic/edit.el (semantic-edits-incremental-parser): Add the | ||
| 4 | autoload cookie, necessary for JDEE. | ||
| 5 | |||
| 6 | 2011-12-06 Juanma Barranquero <lekktu@gmail.com> | ||
| 7 | |||
| 8 | * semantic/bovine/c.el (semantic-tag-abstract-p): Fix typo. | ||
| 9 | |||
| 1 | 2011-11-26 Chong Yidong <cyd@gnu.org> | 10 | 2011-11-26 Chong Yidong <cyd@gnu.org> |
| 2 | 11 | ||
| 3 | * semantic/wisent/python-wy.el: | 12 | * semantic/wisent/python-wy.el: |
diff --git a/lisp/cedet/data-debug.el b/lisp/cedet/data-debug.el index 329d1c608c2..d553c433fc4 100644 --- a/lisp/cedet/data-debug.el +++ b/lisp/cedet/data-debug.el | |||
| @@ -1060,11 +1060,11 @@ If the result is a list or vector, then use the data debugger to display it." | |||
| 1060 | (setq values (cons (eval expr) values)) | 1060 | (setq values (cons (eval expr) values)) |
| 1061 | (let ((old-value (make-symbol "t")) new-value) | 1061 | (let ((old-value (make-symbol "t")) new-value) |
| 1062 | ;; Bind debug-on-error to something unique so that we can | 1062 | ;; Bind debug-on-error to something unique so that we can |
| 1063 | ;; detect when evaled code changes it. | 1063 | ;; detect when evalled code changes it. |
| 1064 | (let ((debug-on-error old-value)) | 1064 | (let ((debug-on-error old-value)) |
| 1065 | (setq values (cons (eval expr) values)) | 1065 | (setq values (cons (eval expr) values)) |
| 1066 | (setq new-value debug-on-error)) | 1066 | (setq new-value debug-on-error)) |
| 1067 | ;; If evaled code has changed the value of debug-on-error, | 1067 | ;; If evalled code has changed the value of debug-on-error, |
| 1068 | ;; propagate that change to the global binding. | 1068 | ;; propagate that change to the global binding. |
| 1069 | (unless (eq old-value new-value) | 1069 | (unless (eq old-value new-value) |
| 1070 | (setq debug-on-error new-value)))) | 1070 | (setq debug-on-error new-value)))) |
diff --git a/lisp/cedet/ede/pmake.el b/lisp/cedet/ede/pmake.el index d78e95af27f..4065b848f54 100644 --- a/lisp/cedet/ede/pmake.el +++ b/lisp/cedet/ede/pmake.el | |||
| @@ -335,7 +335,7 @@ NOTE: Not yet in use! This is part of an SRecode conversion of | |||
| 335 | ; | 335 | ; |
| 336 | ; (oref this variables)) | 336 | ; (oref this variables)) |
| 337 | ; | 337 | ; |
| 338 | ; ;; Add in all variables from the configuration not allready covered. | 338 | ; ;; Add in all variables from the configuration not already covered. |
| 339 | ; (mapc (lambda (c) | 339 | ; (mapc (lambda (c) |
| 340 | ; | 340 | ; |
| 341 | ; (if (member (car c) conf-done) | 341 | ; (if (member (car c) conf-done) |
| @@ -372,7 +372,7 @@ NOTE: Not yet in use! This is part of an SRecode conversion of | |||
| 372 | (setq conf-done (cons (car c) conf-done)))) | 372 | (setq conf-done (cons (car c) conf-done)))) |
| 373 | (insert (cdr c) "\n")) | 373 | (insert (cdr c) "\n")) |
| 374 | (oref this variables)) | 374 | (oref this variables)) |
| 375 | ;; Add in all variables from the configuration not allready covered. | 375 | ;; Add in all variables from the configuration not already covered. |
| 376 | (mapc (lambda (c) | 376 | (mapc (lambda (c) |
| 377 | (if (member (car c) conf-done) | 377 | (if (member (car c) conf-done) |
| 378 | nil | 378 | nil |
| @@ -430,7 +430,7 @@ sources variable." | |||
| 430 | this (oref proj configuration-default))) | 430 | this (oref proj configuration-default))) |
| 431 | (conf-done nil) | 431 | (conf-done nil) |
| 432 | ) | 432 | ) |
| 433 | ;; Add in all variables from the configuration not allready covered. | 433 | ;; Add in all variables from the configuration not already covered. |
| 434 | (mapc (lambda (c) | 434 | (mapc (lambda (c) |
| 435 | (if (member (car c) conf-done) | 435 | (if (member (car c) conf-done) |
| 436 | nil | 436 | nil |
diff --git a/lisp/cedet/ede/proj-archive.el b/lisp/cedet/ede/proj-archive.el index 23d3aa05000..23ef4850b6a 100644 --- a/lisp/cedet/ede/proj-archive.el +++ b/lisp/cedet/ede/proj-archive.el | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | (defmethod ede-proj-makefile-insert-source-variables :BEFORE | 46 | (defmethod ede-proj-makefile-insert-source-variables :BEFORE |
| 47 | ((this ede-proj-target-makefile-archive) &optional moresource) | 47 | ((this ede-proj-target-makefile-archive) &optional moresource) |
| 48 | "Insert bin_PROGRAMS variables needed by target THIS. | 48 | "Insert bin_PROGRAMS variables needed by target THIS. |
| 49 | We aren't acutally inserting SOURCE details, but this is used by the | 49 | We aren't actually inserting SOURCE details, but this is used by the |
| 50 | Makefile.am generator, so use it to add this important bin program." | 50 | Makefile.am generator, so use it to add this important bin program." |
| 51 | (ede-pmake-insert-variable-shared | 51 | (ede-pmake-insert-variable-shared |
| 52 | (concat "lib" (ede-name this) "_a_LIBRARIES") | 52 | (concat "lib" (ede-name this) "_a_LIBRARIES") |
diff --git a/lisp/cedet/ede/proj-shared.el b/lisp/cedet/ede/proj-shared.el index 4e233f56a12..7268fb95646 100644 --- a/lisp/cedet/ede/proj-shared.el +++ b/lisp/cedet/ede/proj-shared.el | |||
| @@ -181,7 +181,7 @@ Results in --add-missing being passed to automake." | |||
| 181 | (defmethod ede-proj-makefile-insert-automake-pre-variables | 181 | (defmethod ede-proj-makefile-insert-automake-pre-variables |
| 182 | ((this ede-proj-target-makefile-shared-object)) | 182 | ((this ede-proj-target-makefile-shared-object)) |
| 183 | "Insert bin_PROGRAMS variables needed by target THIS. | 183 | "Insert bin_PROGRAMS variables needed by target THIS. |
| 184 | We aren't acutally inserting SOURCE details, but this is used by the | 184 | We aren't actually inserting SOURCE details, but this is used by the |
| 185 | Makefile.am generator, so use it to add this important bin program." | 185 | Makefile.am generator, so use it to add this important bin program." |
| 186 | (ede-pmake-insert-variable-shared "lib_LTLIBRARIES" | 186 | (ede-pmake-insert-variable-shared "lib_LTLIBRARIES" |
| 187 | (insert (concat "lib" (ede-name this) ".la")))) | 187 | (insert (concat "lib" (ede-name this) ".la")))) |
diff --git a/lisp/cedet/inversion.el b/lisp/cedet/inversion.el index 53639b19a96..35841d2a6b2 100644 --- a/lisp/cedet/inversion.el +++ b/lisp/cedet/inversion.el | |||
| @@ -199,12 +199,12 @@ not an indication of new features or bug fixes." | |||
| 199 | (= v1-1 v2-1) | 199 | (= v1-1 v2-1) |
| 200 | (= v1-2 v2-2) | 200 | (= v1-2 v2-2) |
| 201 | (= v1-3 v2-3) | 201 | (= v1-3 v2-3) |
| 202 | v1-4 v2-4 ; all or nothin if elt - is = | 202 | v1-4 v2-4 ; all or nothing if elt - is = |
| 203 | (< v1-4 v2-4)) | 203 | (< v1-4 v2-4)) |
| 204 | (and (= v1-0 v2-0) | 204 | (and (= v1-0 v2-0) |
| 205 | (= v1-1 v2-1) | 205 | (= v1-1 v2-1) |
| 206 | (= v1-2 v2-2) | 206 | (= v1-2 v2-2) |
| 207 | v1-3 v2-3 ; all or nothin if elt - is = | 207 | v1-3 v2-3 ; all or nothing if elt - is = |
| 208 | (< v1-3 v2-3)) | 208 | (< v1-3 v2-3)) |
| 209 | (and (= v1-1 v2-1) | 209 | (and (= v1-1 v2-1) |
| 210 | (< v1-2 v2-2)) | 210 | (< v1-2 v2-2)) |
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el index 3355ed83a91..337413caf75 100644 --- a/lisp/cedet/semantic.el +++ b/lisp/cedet/semantic.el | |||
| @@ -680,7 +680,7 @@ Does nothing if the current buffer doesn't need reparsing." | |||
| 680 | (save-excursion (semantic-fetch-tags)) | 680 | (save-excursion (semantic-fetch-tags)) |
| 681 | nil) | 681 | nil) |
| 682 | ;; If we are here, it is because the lexical step failed, | 682 | ;; If we are here, it is because the lexical step failed, |
| 683 | ;; proably due to unterminated lists or something like that. | 683 | ;; probably due to unterminated lists or something like that. |
| 684 | 684 | ||
| 685 | ;; We do nothing, and just wait for the next idle timer | 685 | ;; We do nothing, and just wait for the next idle timer |
| 686 | ;; to go off. In the meantime, remember this, and make sure | 686 | ;; to go off. In the meantime, remember this, and make sure |
diff --git a/lisp/cedet/semantic/analyze/debug.el b/lisp/cedet/semantic/analyze/debug.el index b02358b7243..ce8e79b19dc 100644 --- a/lisp/cedet/semantic/analyze/debug.el +++ b/lisp/cedet/semantic/analyze/debug.el | |||
| @@ -70,7 +70,7 @@ | |||
| 70 | (let ((pentry (nth idx pf)) | 70 | (let ((pentry (nth idx pf)) |
| 71 | (ptentry (nth idx pft))) | 71 | (ptentry (nth idx pft))) |
| 72 | (if (or (stringp pentry) (not ptentry)) | 72 | (if (or (stringp pentry) (not ptentry)) |
| 73 | ;; Found someting ok. stop | 73 | ;; Found something ok. Stop. |
| 74 | (setq stop t) | 74 | (setq stop t) |
| 75 | (setq idx (1+ idx))))) | 75 | (setq idx (1+ idx))))) |
| 76 | ;; We found the first non-tag entry. What is the situation? | 76 | ;; We found the first non-tag entry. What is the situation? |
diff --git a/lisp/cedet/semantic/bovine/c.el b/lisp/cedet/semantic/bovine/c.el index fe659d118e1..4da23498cfc 100644 --- a/lisp/cedet/semantic/bovine/c.el +++ b/lisp/cedet/semantic/bovine/c.el | |||
| @@ -816,7 +816,7 @@ now. | |||
| 816 | ;; | 816 | ;; |
| 817 | ;; will create 2 toplevel tags, one is type A, and the other variable B | 817 | ;; will create 2 toplevel tags, one is type A, and the other variable B |
| 818 | ;; where the :type of B is just a type tag A that is a prototype, and | 818 | ;; where the :type of B is just a type tag A that is a prototype, and |
| 819 | ;; the actual struct info of A is it's own toplevel tag. | 819 | ;; the actual struct info of A is its own toplevel tag. |
| 820 | (when (or (semantic-tag-of-class-p tag 'function) | 820 | (when (or (semantic-tag-of-class-p tag 'function) |
| 821 | (semantic-tag-of-class-p tag 'variable)) | 821 | (semantic-tag-of-class-p tag 'variable)) |
| 822 | (let* ((basetype (semantic-tag-type tag)) | 822 | (let* ((basetype (semantic-tag-type tag)) |
| @@ -1311,7 +1311,7 @@ Optional PARENT and COLOR as specified with | |||
| 1311 | "Return non-nil if TAG is considered abstract. | 1311 | "Return non-nil if TAG is considered abstract. |
| 1312 | PARENT is tag's parent. | 1312 | PARENT is tag's parent. |
| 1313 | In C, a method is abstract if it is `virtual', which is already | 1313 | In C, a method is abstract if it is `virtual', which is already |
| 1314 | handled. A class is abstract iff it's destructor is virtual." | 1314 | handled. A class is abstract iff its destructor is virtual." |
| 1315 | (cond | 1315 | (cond |
| 1316 | ((eq (semantic-tag-class tag) 'type) | 1316 | ((eq (semantic-tag-class tag) 'type) |
| 1317 | (require 'semantic/find) | 1317 | (require 'semantic/find) |
diff --git a/lisp/cedet/semantic/bovine/el.el b/lisp/cedet/semantic/bovine/el.el index 98f744dca6e..1a2061d01e7 100644 --- a/lisp/cedet/semantic/bovine/el.el +++ b/lisp/cedet/semantic/bovine/el.el | |||
| @@ -497,15 +497,15 @@ used to perform the override." | |||
| 497 | Unfortunately, this requires that the tag in question has been loaded | 497 | Unfortunately, this requires that the tag in question has been loaded |
| 498 | into Emacs Lisp's memory." | 498 | into Emacs Lisp's memory." |
| 499 | (let ((obsoletethis (intern-soft (semantic-tag-name tag))) | 499 | (let ((obsoletethis (intern-soft (semantic-tag-name tag))) |
| 500 | (obsoletor nil)) | 500 | (obsoleter nil)) |
| 501 | ;; This asks if our tag is available in the Emacs name space for querying. | 501 | ;; This asks if our tag is available in the Emacs name space for querying. |
| 502 | (when obsoletethis | 502 | (when obsoletethis |
| 503 | (mapatoms (lambda (a) | 503 | (mapatoms (lambda (a) |
| 504 | (let ((oi (get a 'byte-obsolete-info))) | 504 | (let ((oi (get a 'byte-obsolete-info))) |
| 505 | (if (and oi (eq (car oi) obsoletethis)) | 505 | (if (and oi (eq (car oi) obsoletethis)) |
| 506 | (setq obsoletor a))))) | 506 | (setq obsoleter a))))) |
| 507 | (if obsoletor | 507 | (if obsoleter |
| 508 | (format "\n@obsolete{%s,%s}" obsoletor (semantic-tag-name tag)) | 508 | (format "\n@obsolete{%s,%s}" obsoleter (semantic-tag-name tag)) |
| 509 | "")))) | 509 | "")))) |
| 510 | 510 | ||
| 511 | (define-mode-local-override semantic-documentation-for-tag | 511 | (define-mode-local-override semantic-documentation-for-tag |
diff --git a/lisp/cedet/semantic/db-file.el b/lisp/cedet/semantic/db-file.el index 943ccf23031..9df240a3681 100644 --- a/lisp/cedet/semantic/db-file.el +++ b/lisp/cedet/semantic/db-file.el | |||
| @@ -193,16 +193,16 @@ If DIRECTORY doesn't exist, create a new one." | |||
| 193 | (eieio-instance-tracker-find filename 'file 'semanticdb-database-list)) | 193 | (eieio-instance-tracker-find filename 'file 'semanticdb-database-list)) |
| 194 | 194 | ||
| 195 | (defmethod semanticdb-file-directory-exists-p ((DB semanticdb-project-database-file) | 195 | (defmethod semanticdb-file-directory-exists-p ((DB semanticdb-project-database-file) |
| 196 | &optional supress-questions) | 196 | &optional suppress-questions) |
| 197 | "Does the directory the database DB needs to write to exist? | 197 | "Does the directory the database DB needs to write to exist? |
| 198 | If SUPRESS-QUESTIONS, then do not ask to create the directory." | 198 | If SUPPRESS-QUESTIONS, then do not ask to create the directory." |
| 199 | (let ((dest (file-name-directory (oref DB file))) | 199 | (let ((dest (file-name-directory (oref DB file))) |
| 200 | ) | 200 | ) |
| 201 | (cond ((null dest) | 201 | (cond ((null dest) |
| 202 | ;; @TODO - If it was never set up... what should we do ? | 202 | ;; @TODO - If it was never set up... what should we do ? |
| 203 | nil) | 203 | nil) |
| 204 | ((file-exists-p dest) t) | 204 | ((file-exists-p dest) t) |
| 205 | ((or supress-questions | 205 | ((or suppress-questions |
| 206 | (and (boundp 'semanticdb--inhibit-make-directory) | 206 | (and (boundp 'semanticdb--inhibit-make-directory) |
| 207 | semanticdb--inhibit-make-directory)) | 207 | semanticdb--inhibit-make-directory)) |
| 208 | nil) | 208 | nil) |
| @@ -216,13 +216,13 @@ If SUPRESS-QUESTIONS, then do not ask to create the directory." | |||
| 216 | 216 | ||
| 217 | (defmethod semanticdb-save-db ((DB semanticdb-project-database-file) | 217 | (defmethod semanticdb-save-db ((DB semanticdb-project-database-file) |
| 218 | &optional | 218 | &optional |
| 219 | supress-questions) | 219 | suppress-questions) |
| 220 | "Write out the database DB to its file. | 220 | "Write out the database DB to its file. |
| 221 | If DB is not specified, then use the current database." | 221 | If DB is not specified, then use the current database." |
| 222 | (let ((objname (oref DB file))) | 222 | (let ((objname (oref DB file))) |
| 223 | (when (and (semanticdb-dirty-p DB) | 223 | (when (and (semanticdb-dirty-p DB) |
| 224 | (semanticdb-live-p DB) | 224 | (semanticdb-live-p DB) |
| 225 | (semanticdb-file-directory-exists-p DB supress-questions) | 225 | (semanticdb-file-directory-exists-p DB suppress-questions) |
| 226 | (semanticdb-write-directory-p DB) | 226 | (semanticdb-write-directory-p DB) |
| 227 | ) | 227 | ) |
| 228 | ;;(message "Saving tag summary for %s..." objname) | 228 | ;;(message "Saving tag summary for %s..." objname) |
| @@ -243,7 +243,7 @@ If DB is not specified, then use the current database." | |||
| 243 | (t | 243 | (t |
| 244 | ;; @todo - It should ask if we are not called from a hook. | 244 | ;; @todo - It should ask if we are not called from a hook. |
| 245 | ;; How? | 245 | ;; How? |
| 246 | (if (or supress-questions | 246 | (if (or suppress-questions |
| 247 | (y-or-n-p (format "Skip Error: %s ?" (car (cdr foo))))) | 247 | (y-or-n-p (format "Skip Error: %s ?" (car (cdr foo))))) |
| 248 | (message "Save Error: %S: %s" (car (cdr foo)) | 248 | (message "Save Error: %S: %s" (car (cdr foo)) |
| 249 | objname) | 249 | objname) |
diff --git a/lisp/cedet/semantic/db-find.el b/lisp/cedet/semantic/db-find.el index 4d5d8f35f51..a651e08d53c 100644 --- a/lisp/cedet/semantic/db-find.el +++ b/lisp/cedet/semantic/db-find.el | |||
| @@ -210,7 +210,7 @@ This class will cache data derived during various searches.") | |||
| 210 | "Synchronize the search index IDX with some NEW-TAGS." | 210 | "Synchronize the search index IDX with some NEW-TAGS." |
| 211 | ;; Reset our parts. | 211 | ;; Reset our parts. |
| 212 | (semantic-reset idx) | 212 | (semantic-reset idx) |
| 213 | ;; Notify dependants by clearning their indicies. | 213 | ;; Notify dependants by clearing their indices. |
| 214 | (semanticdb-notify-references | 214 | (semanticdb-notify-references |
| 215 | (oref idx table) | 215 | (oref idx table) |
| 216 | (lambda (tab me) | 216 | (lambda (tab me) |
| @@ -224,7 +224,7 @@ This class will cache data derived during various searches.") | |||
| 224 | (if (semantic-find-tags-by-class 'include new-tags) | 224 | (if (semantic-find-tags-by-class 'include new-tags) |
| 225 | (progn | 225 | (progn |
| 226 | (semantic-reset idx) | 226 | (semantic-reset idx) |
| 227 | ;; Notify dependants by clearning their indicies. | 227 | ;; Notify dependants by clearing their indices. |
| 228 | (semanticdb-notify-references | 228 | (semanticdb-notify-references |
| 229 | (oref idx table) | 229 | (oref idx table) |
| 230 | (lambda (tab me) | 230 | (lambda (tab me) |
| @@ -234,7 +234,7 @@ This class will cache data derived during various searches.") | |||
| 234 | (when (oref idx type-cache) | 234 | (when (oref idx type-cache) |
| 235 | (when (semanticdb-partial-synchronize (oref idx type-cache) new-tags) | 235 | (when (semanticdb-partial-synchronize (oref idx type-cache) new-tags) |
| 236 | ;; If the synchronize returns true, we need to notify. | 236 | ;; If the synchronize returns true, we need to notify. |
| 237 | ;; Notify dependants by clearning their indicies. | 237 | ;; Notify dependants by clearing their indices. |
| 238 | (semanticdb-notify-references | 238 | (semanticdb-notify-references |
| 239 | (oref idx table) | 239 | (oref idx table) |
| 240 | (lambda (tab me) | 240 | (lambda (tab me) |
| @@ -405,10 +405,10 @@ Default action as described in `semanticdb-find-translate-path'." | |||
| 405 | ;; do a caching lookup. | 405 | ;; do a caching lookup. |
| 406 | (let ((index (semanticdb-get-table-index table))) | 406 | (let ((index (semanticdb-get-table-index table))) |
| 407 | (if (semanticdb-find-need-cache-update-p table) | 407 | (if (semanticdb-find-need-cache-update-p table) |
| 408 | ;; Lets go look up our indicies | 408 | ;; Let's go look up our indices. |
| 409 | (let ((ans (semanticdb-find-translate-path-includes--internal path))) | 409 | (let ((ans (semanticdb-find-translate-path-includes--internal path))) |
| 410 | (oset index include-path ans) | 410 | (oset index include-path ans) |
| 411 | ;; Once we have our new indicies set up, notify those | 411 | ;; Once we have our new indices set up, notify those |
| 412 | ;; who depend on us if we found something for them to | 412 | ;; who depend on us if we found something for them to |
| 413 | ;; depend on. | 413 | ;; depend on. |
| 414 | (when ans (semanticdb-refresh-references table)) | 414 | (when ans (semanticdb-refresh-references table)) |
| @@ -575,7 +575,7 @@ a new path from the provided PATH." | |||
| 575 | (setq ans (semanticdb-file-table | 575 | (setq ans (semanticdb-file-table |
| 576 | (car systemdb) | 576 | (car systemdb) |
| 577 | ;; I would expect most omniscient to return the same | 577 | ;; I would expect most omniscient to return the same |
| 578 | ;; thing reguardless of filename, but we may have | 578 | ;; thing regardless of filename, but we may have |
| 579 | ;; one that can return a table of all things the | 579 | ;; one that can return a table of all things the |
| 580 | ;; current file needs. | 580 | ;; current file needs. |
| 581 | (buffer-file-name (current-buffer)))) | 581 | (buffer-file-name (current-buffer)))) |
diff --git a/lisp/cedet/semantic/db.el b/lisp/cedet/semantic/db.el index 3d2128db29a..c159a26dc1e 100644 --- a/lisp/cedet/semantic/db.el +++ b/lisp/cedet/semantic/db.el | |||
| @@ -227,7 +227,7 @@ it is in Emacs.") | |||
| 227 | "Non nil if this table needs to be `Saved'.") | 227 | "Non nil if this table needs to be `Saved'.") |
| 228 | (db-refs :initform nil | 228 | (db-refs :initform nil |
| 229 | :documentation | 229 | :documentation |
| 230 | "List of `semanticdb-table' objects refering to this one. | 230 | "List of `semanticdb-table' objects referring to this one. |
| 231 | These aren't saved, but are instead recalculated after load. | 231 | These aren't saved, but are instead recalculated after load. |
| 232 | See the file semantic/db-ref.el for how this slot is used.") | 232 | See the file semantic/db-ref.el for how this slot is used.") |
| 233 | (pointmax :initarg :pointmax | 233 | (pointmax :initarg :pointmax |
| @@ -657,7 +657,7 @@ The file associated with OBJ does not need to be in a buffer." | |||
| 657 | ;;; SAVE/LOAD | 657 | ;;; SAVE/LOAD |
| 658 | ;; | 658 | ;; |
| 659 | (defmethod semanticdb-save-db ((DB semanticdb-project-database) | 659 | (defmethod semanticdb-save-db ((DB semanticdb-project-database) |
| 660 | &optional supress-questions) | 660 | &optional suppress-questions) |
| 661 | "Cause a database to save itself. | 661 | "Cause a database to save itself. |
| 662 | The database base class does not save itself persistently. | 662 | The database base class does not save itself persistently. |
| 663 | Subclasses could save themselves to a file, or to a database, or other | 663 | Subclasses could save themselves to a file, or to a database, or other |
diff --git a/lisp/cedet/semantic/debug.el b/lisp/cedet/semantic/debug.el index 45b807df12b..6db47f8b0be 100644 --- a/lisp/cedet/semantic/debug.el +++ b/lisp/cedet/semantic/debug.el | |||
| @@ -175,7 +175,7 @@ TOKEN is a lexical token." | |||
| 175 | "For IFACE, highlight NONTERM in the parser buffer. | 175 | "For IFACE, highlight NONTERM in the parser buffer. |
| 176 | NONTERM is the name of the rule currently being processed that shows up | 176 | NONTERM is the name of the rule currently being processed that shows up |
| 177 | as a nonterminal (or tag) in the source buffer. | 177 | as a nonterminal (or tag) in the source buffer. |
| 178 | If RULE and MATCH indicies are specified, highlight those also." | 178 | If RULE and MATCH indices are specified, highlight those also." |
| 179 | (set-buffer (oref iface :parser-buffer)) | 179 | (set-buffer (oref iface :parser-buffer)) |
| 180 | 180 | ||
| 181 | (let* ((rules (semantic-find-tags-by-class 'nonterminal (current-buffer))) | 181 | (let* ((rules (semantic-find-tags-by-class 'nonterminal (current-buffer))) |
diff --git a/lisp/cedet/semantic/edit.el b/lisp/cedet/semantic/edit.el index a2c8c5efd40..d33454eb56b 100644 --- a/lisp/cedet/semantic/edit.el +++ b/lisp/cedet/semantic/edit.el | |||
| @@ -470,6 +470,7 @@ a 'semantic-parse-changes-failed exception with value t." | |||
| 470 | (buffer-name (current-buffer)))) | 470 | (buffer-name (current-buffer)))) |
| 471 | (run-hooks 'semantic-edits-incremental-reparse-failed-hook)) | 471 | (run-hooks 'semantic-edits-incremental-reparse-failed-hook)) |
| 472 | 472 | ||
| 473 | ;;;###autoload | ||
| 473 | (defun semantic-edits-incremental-parser () | 474 | (defun semantic-edits-incremental-parser () |
| 474 | "Incrementally reparse the current buffer. | 475 | "Incrementally reparse the current buffer. |
| 475 | Incremental parser allows semantic to only reparse those sections of | 476 | Incremental parser allows semantic to only reparse those sections of |
| @@ -859,7 +860,7 @@ pre-positioned to a convenient location." | |||
| 859 | (setq cacheend chil) | 860 | (setq cacheend chil) |
| 860 | (while (and cacheend (not (eq last (car cacheend)))) | 861 | (while (and cacheend (not (eq last (car cacheend)))) |
| 861 | (setq cacheend (cdr cacheend))) | 862 | (setq cacheend (cdr cacheend))) |
| 862 | ;; The splicable part is after cacheend.. so move cacheend | 863 | ;; The spliceable part is after cacheend.. so move cacheend |
| 863 | ;; one more tag. | 864 | ;; one more tag. |
| 864 | (setq cacheend (cdr cacheend)) | 865 | (setq cacheend (cdr cacheend)) |
| 865 | ;; Splice the found end tag into the cons cell | 866 | ;; Splice the found end tag into the cons cell |
diff --git a/lisp/cedet/semantic/find.el b/lisp/cedet/semantic/find.el index b4d94321bc1..a6d86691206 100644 --- a/lisp/cedet/semantic/find.el +++ b/lisp/cedet/semantic/find.el | |||
| @@ -427,7 +427,7 @@ TABLE is a tag table. See `semantic-something-to-tag-table'." | |||
| 427 | 427 | ||
| 428 | ;;; Old Style Brute Force Search Routines | 428 | ;;; Old Style Brute Force Search Routines |
| 429 | ;; | 429 | ;; |
| 430 | ;; These functions will search through tags lists explicity for | 430 | ;; These functions will search through tags lists explicitly for |
| 431 | ;; desired information. | 431 | ;; desired information. |
| 432 | 432 | ||
| 433 | ;; The -by-name nonterminal search can use the built in fcn | 433 | ;; The -by-name nonterminal search can use the built in fcn |
diff --git a/lisp/cedet/semantic/grammar.el b/lisp/cedet/semantic/grammar.el index 98b1ab55c32..1a79adc650d 100644 --- a/lisp/cedet/semantic/grammar.el +++ b/lisp/cedet/semantic/grammar.el | |||
| @@ -1290,7 +1290,7 @@ the change bounds to encompass the whole nonterminal tag." | |||
| 1290 | semantic-grammar-mode-keywords-3) | 1290 | semantic-grammar-mode-keywords-3) |
| 1291 | nil ;; perform string/comment fontification | 1291 | nil ;; perform string/comment fontification |
| 1292 | nil ;; keywords are case sensitive. | 1292 | nil ;; keywords are case sensitive. |
| 1293 | ;; This puts _ & - as a word constituant, | 1293 | ;; This puts _ & - as a word constituent, |
| 1294 | ;; simplifying our keywords significantly | 1294 | ;; simplifying our keywords significantly |
| 1295 | ((?_ . "w") (?- . "w")))) | 1295 | ((?_ . "w") (?- . "w")))) |
| 1296 | ;; Setup Semantic to parse grammar | 1296 | ;; Setup Semantic to parse grammar |
diff --git a/lisp/cedet/semantic/idle.el b/lisp/cedet/semantic/idle.el index 6761a7f532b..c60ca4b4b6a 100644 --- a/lisp/cedet/semantic/idle.el +++ b/lisp/cedet/semantic/idle.el | |||
| @@ -246,8 +246,8 @@ And also manages services that depend on tag values." | |||
| 246 | 246 | ||
| 247 | ;; NOTE ON COMMENTED SAFE HERE | 247 | ;; NOTE ON COMMENTED SAFE HERE |
| 248 | ;; We used to not execute the services if the buffer was | 248 | ;; We used to not execute the services if the buffer was |
| 249 | ;; unparseable. We now assume that they are lexically | 249 | ;; unparsable. We now assume that they are lexically |
| 250 | ;; safe to do, because we have marked the buffer unparseable | 250 | ;; safe to do, because we have marked the buffer unparsable |
| 251 | ;; if there was a problem. | 251 | ;; if there was a problem. |
| 252 | ;;(when safe | 252 | ;;(when safe |
| 253 | (dolist (service semantic-idle-scheduler-queue) | 253 | (dolist (service semantic-idle-scheduler-queue) |
| @@ -476,7 +476,7 @@ Does nothing if the current buffer doesn't need reparsing." | |||
| 476 | ;; do them here, then all the bovination hooks are not run, and | 476 | ;; do them here, then all the bovination hooks are not run, and |
| 477 | ;; we save lots of time. | 477 | ;; we save lots of time. |
| 478 | (cond | 478 | (cond |
| 479 | ;; If the buffer was previously marked unparseable, | 479 | ;; If the buffer was previously marked unparsable, |
| 480 | ;; then don't waste our time. | 480 | ;; then don't waste our time. |
| 481 | ((semantic-parse-tree-unparseable-p) | 481 | ((semantic-parse-tree-unparseable-p) |
| 482 | nil) | 482 | nil) |
| @@ -515,7 +515,7 @@ Does nothing if the current buffer doesn't need reparsing." | |||
| 515 | (save-excursion (semantic-fetch-tags)) | 515 | (save-excursion (semantic-fetch-tags)) |
| 516 | nil) | 516 | nil) |
| 517 | ;; If we are here, it is because the lexical step failed, | 517 | ;; If we are here, it is because the lexical step failed, |
| 518 | ;; proably due to unterminated lists or something like that. | 518 | ;; probably due to unterminated lists or something like that. |
| 519 | 519 | ||
| 520 | ;; We do nothing, and just wait for the next idle timer | 520 | ;; We do nothing, and just wait for the next idle timer |
| 521 | ;; to go off. In the meantime, remember this, and make sure | 521 | ;; to go off. In the meantime, remember this, and make sure |
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el index ba43ba657a1..f8e72c1027c 100644 --- a/lisp/cedet/semantic/lex.el +++ b/lisp/cedet/semantic/lex.el | |||
| @@ -1248,7 +1248,7 @@ they are comment end characters) AND when you want whitespace tokens." | |||
| 1248 | (if (eq (semantic-lex-token-class (car semantic-lex-token-stream)) | 1248 | (if (eq (semantic-lex-token-class (car semantic-lex-token-stream)) |
| 1249 | 'whitespace) | 1249 | 'whitespace) |
| 1250 | ;; Merge whitespace tokens together if they are adjacent. Two | 1250 | ;; Merge whitespace tokens together if they are adjacent. Two |
| 1251 | ;; whitespace tokens may be sperated by a comment which is not in | 1251 | ;; whitespace tokens may be separated by a comment which is not in |
| 1252 | ;; the token stream. | 1252 | ;; the token stream. |
| 1253 | (setcdr (semantic-lex-token-bounds (car semantic-lex-token-stream)) | 1253 | (setcdr (semantic-lex-token-bounds (car semantic-lex-token-stream)) |
| 1254 | (match-end 0)) | 1254 | (match-end 0)) |
| @@ -1271,7 +1271,7 @@ they are comment end characters)." | |||
| 1271 | (if (eq (semantic-lex-token-class (car semantic-lex-token-stream)) | 1271 | (if (eq (semantic-lex-token-class (car semantic-lex-token-stream)) |
| 1272 | 'whitespace) | 1272 | 'whitespace) |
| 1273 | ;; Merge whitespace tokens together if they are adjacent. Two | 1273 | ;; Merge whitespace tokens together if they are adjacent. Two |
| 1274 | ;; whitespace tokens may be sperated by a comment which is not in | 1274 | ;; whitespace tokens may be separated by a comment which is not in |
| 1275 | ;; the token stream. | 1275 | ;; the token stream. |
| 1276 | (progn | 1276 | (progn |
| 1277 | (setq semantic-lex-end-point (match-end 0)) | 1277 | (setq semantic-lex-end-point (match-end 0)) |
| @@ -1704,7 +1704,7 @@ If there is no error, then the last value of FORMS is returned." | |||
| 1704 | nil)))) | 1704 | nil)))) |
| 1705 | ;; Great Sadness. Assume that FORMS execute within the | 1705 | ;; Great Sadness. Assume that FORMS execute within the |
| 1706 | ;; confines of the current buffer only! Mark this thing | 1706 | ;; confines of the current buffer only! Mark this thing |
| 1707 | ;; unparseable iff the special symbol was thrown. This | 1707 | ;; unparsable iff the special symbol was thrown. This |
| 1708 | ;; will prevent future calls from parsing, but will allow | 1708 | ;; will prevent future calls from parsing, but will allow |
| 1709 | ;; then to still return the cache. | 1709 | ;; then to still return the cache. |
| 1710 | (when ,ret | 1710 | (when ,ret |
diff --git a/lisp/cedet/semantic/scope.el b/lisp/cedet/semantic/scope.el index ea4903c70ea..937936032d2 100644 --- a/lisp/cedet/semantic/scope.el +++ b/lisp/cedet/semantic/scope.el | |||
| @@ -725,7 +725,7 @@ The class returned from the scope calculation is variable | |||
| 725 | (oset scopecache localargs localargs) | 725 | (oset scopecache localargs localargs) |
| 726 | (oset scopecache localvar localvar) | 726 | (oset scopecache localvar localvar) |
| 727 | ))) | 727 | ))) |
| 728 | ;; Make sure we become dependant on the typecache. | 728 | ;; Make sure we become dependent on the typecache. |
| 729 | (semanticdb-typecache-add-dependant scopecache) | 729 | (semanticdb-typecache-add-dependant scopecache) |
| 730 | ;; Handy debug output. | 730 | ;; Handy debug output. |
| 731 | (when (called-interactively-p 'any) | 731 | (when (called-interactively-p 'any) |
diff --git a/lisp/cedet/semantic/tag-ls.el b/lisp/cedet/semantic/tag-ls.el index 4d001322108..2f585cbdf45 100644 --- a/lisp/cedet/semantic/tag-ls.el +++ b/lisp/cedet/semantic/tag-ls.el | |||
| @@ -195,7 +195,7 @@ See `semantic-tag-static-p'." | |||
| 195 | ;;;###autoload | 195 | ;;;###autoload |
| 196 | (define-overloadable-function semantic-tag-prototype-p (tag) | 196 | (define-overloadable-function semantic-tag-prototype-p (tag) |
| 197 | "Return non nil if TAG is a prototype. | 197 | "Return non nil if TAG is a prototype. |
| 198 | For some laguages, such as C, a prototype is a declaration of | 198 | For some languages, such as C, a prototype is a declaration of |
| 199 | something without an implementation." | 199 | something without an implementation." |
| 200 | ) | 200 | ) |
| 201 | 201 | ||
diff --git a/lisp/cedet/semantic/util-modes.el b/lisp/cedet/semantic/util-modes.el index a08f4a31b30..13836f64b85 100644 --- a/lisp/cedet/semantic/util-modes.el +++ b/lisp/cedet/semantic/util-modes.el | |||
| @@ -109,7 +109,7 @@ Only minor modes that are locally enabled are shown in the mode line." | |||
| 109 | (tail (or (memq elem minor-mode-alist) | 109 | (tail (or (memq elem minor-mode-alist) |
| 110 | (setq minor-mode-alist | 110 | (setq minor-mode-alist |
| 111 | (cons elem minor-mode-alist))))) | 111 | (cons elem minor-mode-alist))))) |
| 112 | (setcdr tail (nconc locals (cdr tail))))))))) | 112 | (setcdr tail (nconc locals (cdr tail))))))))) |
| 113 | 113 | ||
| 114 | (defun semantic-desktop-ignore-this-minor-mode (buffer) | 114 | (defun semantic-desktop-ignore-this-minor-mode (buffer) |
| 115 | "Installed as a minor-mode initializer for Desktop mode. | 115 | "Installed as a minor-mode initializer for Desktop mode. |
| @@ -438,7 +438,7 @@ The state is indicated in the modeline with the following characters: | |||
| 438 | `-' -> The cache is up to date. | 438 | `-' -> The cache is up to date. |
| 439 | `!' -> The cache requires a full update. | 439 | `!' -> The cache requires a full update. |
| 440 | `~' -> The cache needs to be incrementally parsed. | 440 | `~' -> The cache needs to be incrementally parsed. |
| 441 | `%' -> The cache is not currently parseable. | 441 | `%' -> The cache is not currently parsable. |
| 442 | `@' -> Auto-parse in progress (not set here.) | 442 | `@' -> Auto-parse in progress (not set here.) |
| 443 | With prefix argument ARG, turn on if positive, otherwise off. The | 443 | With prefix argument ARG, turn on if positive, otherwise off. The |
| 444 | minor mode can be turned on only if semantic feature is available and | 444 | minor mode can be turned on only if semantic feature is available and |
| @@ -524,7 +524,7 @@ This marker is one of the following: | |||
| 524 | `-' -> The cache is up to date. | 524 | `-' -> The cache is up to date. |
| 525 | `!' -> The cache requires a full update. | 525 | `!' -> The cache requires a full update. |
| 526 | `~' -> The cache needs to be incrementally parsed. | 526 | `~' -> The cache needs to be incrementally parsed. |
| 527 | `%' -> The cache is not currently parseable. | 527 | `%' -> The cache is not currently parsable. |
| 528 | `@' -> Auto-parse in progress (not set here.) | 528 | `@' -> Auto-parse in progress (not set here.) |
| 529 | Arguments IGNORE are ignored, and accepted so this can be used as a hook | 529 | Arguments IGNORE are ignored, and accepted so this can be used as a hook |
| 530 | in many situations." | 530 | in many situations." |
diff --git a/lisp/cedet/semantic/wisent/comp.el b/lisp/cedet/semantic/wisent/comp.el index f92ae88c14e..0aff8325252 100644 --- a/lisp/cedet/semantic/wisent/comp.el +++ b/lisp/cedet/semantic/wisent/comp.el | |||
| @@ -51,7 +51,7 @@ | |||
| 51 | ;; name space. Elisp dynamic binding allows that ;-) | 51 | ;; name space. Elisp dynamic binding allows that ;-) |
| 52 | 52 | ||
| 53 | ;; Here are simple macros to easily define and use set of variables | 53 | ;; Here are simple macros to easily define and use set of variables |
| 54 | ;; binded locally, without all these "reference to free variable" | 54 | ;; bound locally, without all these "reference to free variable" |
| 55 | ;; compiler warnings! | 55 | ;; compiler warnings! |
| 56 | 56 | ||
| 57 | (defmacro wisent-context-name (name) | 57 | (defmacro wisent-context-name (name) |
| @@ -2640,7 +2640,7 @@ there are any reduce/reduce conflicts.") | |||
| 2640 | 2640 | ||
| 2641 | (defun wisent-print-results () | 2641 | (defun wisent-print-results () |
| 2642 | "Print information on generated parser. | 2642 | "Print information on generated parser. |
| 2643 | Report detailed informations if `wisent-verbose-flag' or | 2643 | Report detailed information if `wisent-verbose-flag' or |
| 2644 | `wisent-debug-flag' are non-nil." | 2644 | `wisent-debug-flag' are non-nil." |
| 2645 | (when (or wisent-verbose-flag wisent-debug-flag) | 2645 | (when (or wisent-verbose-flag wisent-debug-flag) |
| 2646 | (wisent-print-useless)) | 2646 | (wisent-print-useless)) |
diff --git a/lisp/cedet/srecode/args.el b/lisp/cedet/srecode/args.el index d8e02f978b2..73445fbf13d 100644 --- a/lisp/cedet/srecode/args.el +++ b/lisp/cedet/srecode/args.el | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | ;;; :blank | 32 | ;;; :blank |
| 33 | ;; | 33 | ;; |
| 34 | ;; Using :blank means that the template should force blank lines | 34 | ;; Using :blank means that the template should force blank lines |
| 35 | ;; before and after the template, reguardless of where the insertion | 35 | ;; before and after the template, regardless of where the insertion |
| 36 | ;; is occurring. | 36 | ;; is occurring. |
| 37 | (defun srecode-semantic-handle-:blank (dict) | 37 | (defun srecode-semantic-handle-:blank (dict) |
| 38 | "Add macros into the dictionary DICT specifying blank line spacing. | 38 | "Add macros into the dictionary DICT specifying blank line spacing. |
| @@ -185,4 +185,3 @@ do not contain any text from preceding or following text." | |||
| 185 | (provide 'srecode/args) | 185 | (provide 'srecode/args) |
| 186 | 186 | ||
| 187 | ;;; srecode/args.el ends here | 187 | ;;; srecode/args.el ends here |
| 188 | |||
diff --git a/lisp/cedet/srecode/fields.el b/lisp/cedet/srecode/fields.el index f13fb17ca8f..f4d34a0f2ab 100644 --- a/lisp/cedet/srecode/fields.el +++ b/lisp/cedet/srecode/fields.el | |||
| @@ -324,7 +324,7 @@ Try to use this to provide useful completion when available.") | |||
| 324 | ) | 324 | ) |
| 325 | 325 | ||
| 326 | (defvar srecode-field-replication-max-size 100 | 326 | (defvar srecode-field-replication-max-size 100 |
| 327 | "Maximum size of a field before cancelling replication.") | 327 | "Maximum size of a field before canceling replication.") |
| 328 | 328 | ||
| 329 | (defun srecode-field-mod-hook (ol after start end &optional pre-len) | 329 | (defun srecode-field-mod-hook (ol after start end &optional pre-len) |
| 330 | "Modification hook for the field overlay. | 330 | "Modification hook for the field overlay. |
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el index 60f277b2c9f..bbf8b881c4d 100644 --- a/lisp/cedet/srecode/insert.el +++ b/lisp/cedet/srecode/insert.el | |||
| @@ -312,7 +312,7 @@ occur in your template.") | |||
| 312 | (setq doit nil))) | 312 | (setq doit nil))) |
| 313 | (goto-char pm) | 313 | (goto-char pm) |
| 314 | ) | 314 | ) |
| 315 | ;; Do indentation reguardless of the newline. | 315 | ;; Do indentation regardless of the newline. |
| 316 | (when (and (eq i t) inbuff) | 316 | (when (and (eq i t) inbuff) |
| 317 | (indent-according-to-mode) | 317 | (indent-according-to-mode) |
| 318 | (goto-char pm)) | 318 | (goto-char pm)) |
diff --git a/lisp/cedet/srecode/srt-mode.el b/lisp/cedet/srecode/srt-mode.el index 0a99b7869e8..ed2b0e2cfdb 100644 --- a/lisp/cedet/srecode/srt-mode.el +++ b/lisp/cedet/srecode/srt-mode.el | |||
| @@ -194,7 +194,7 @@ we can tell font lock about them.") | |||
| 194 | '(srecode-font-lock-keywords | 194 | '(srecode-font-lock-keywords |
| 195 | nil ;; perform string/comment fontification | 195 | nil ;; perform string/comment fontification |
| 196 | nil ;; keywords are case sensitive. | 196 | nil ;; keywords are case sensitive. |
| 197 | ;; This puts _ & - as a word constituant, | 197 | ;; This puts _ & - as a word constituent, |
| 198 | ;; simplifying our keywords significantly | 198 | ;; simplifying our keywords significantly |
| 199 | ((?_ . "w") (?- . "w"))))) | 199 | ((?_ . "w") (?- . "w"))))) |
| 200 | 200 | ||