diff options
| author | Joakim Verona | 2011-11-22 15:39:42 +0100 |
|---|---|---|
| committer | Joakim Verona | 2011-11-22 15:39:42 +0100 |
| commit | 40bb789236e486a3f36eefb2840c293369ce2af3 (patch) | |
| tree | 8e81d3aa5f232ec7f2c5187c683cb0998d2dc4e2 /lisp/cedet | |
| parent | 62318aed495a48e24ff73fe79e420dd801df3189 (diff) | |
| parent | a8e1496d750ab0f571b3412ff61aaa4da640a036 (diff) | |
| download | emacs-40bb789236e486a3f36eefb2840c293369ce2af3.tar.gz emacs-40bb789236e486a3f36eefb2840c293369ce2af3.zip | |
upstream
Diffstat (limited to 'lisp/cedet')
65 files changed, 158 insertions, 140 deletions
diff --git a/lisp/cedet/ChangeLog b/lisp/cedet/ChangeLog index 2dc345b45da..e5969a3c291 100644 --- a/lisp/cedet/ChangeLog +++ b/lisp/cedet/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2011-11-16 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * semantic/lex.el (semantic-lex-tokens): | ||
| 4 | * semantic/tag-ls.el (semantic-tag-protected-p): | ||
| 5 | * srecode/mode.el (srecode-prefix-map): Fix typos. | ||
| 6 | |||
| 7 | 2011-11-15 Juanma Barranquero <lekktu@gmail.com> | ||
| 8 | |||
| 9 | * ede/project-am.el (project-compile-target-command): Fix typo. | ||
| 10 | |||
| 11 | 2011-11-14 Juanma Barranquero <lekktu@gmail.com> | ||
| 12 | |||
| 13 | * ede/auto.el (ede-project-autoload): | ||
| 14 | * ede/proj-comp.el (ede-makefile-rule): | ||
| 15 | * semantic/analyze.el (semantic-analyze-current-context): | ||
| 16 | * semantic/ctxt.el (semantic-get-local-variables): | ||
| 17 | * semantic/tag-ls.el (semantic-tag-calculate-parent): Fix typos. | ||
| 18 | |||
| 1 | 2011-11-03 David Engster <dengste@eml.cc> | 19 | 2011-11-03 David Engster <dengste@eml.cc> |
| 2 | 20 | ||
| 3 | * srecode.el: | 21 | * srecode.el: |
| @@ -444,7 +462,7 @@ | |||
| 444 | * semantic/decorate/include.el | 462 | * semantic/decorate/include.el |
| 445 | (semantic-decoration-on-unknown-includes): Change light bgcolor. | 463 | (semantic-decoration-on-unknown-includes): Change light bgcolor. |
| 446 | (semantic-decoration-on-includes-highlight-default): Check that | 464 | (semantic-decoration-on-includes-highlight-default): Check that |
| 447 | the include tag has a postion. | 465 | the include tag has a position. |
| 448 | 466 | ||
| 449 | * semantic/complete.el (semantic-collector-local-members): | 467 | * semantic/complete.el (semantic-collector-local-members): |
| 450 | (semantic-complete-read-tag-local-members) | 468 | (semantic-complete-read-tag-local-members) |
| @@ -547,7 +565,7 @@ | |||
| 547 | (semantic-analyzer-debug-missing-innertype): Change "prefix" to | 565 | (semantic-analyzer-debug-missing-innertype): Change "prefix" to |
| 548 | "symbol" in messages. | 566 | "symbol" in messages. |
| 549 | 567 | ||
| 550 | * semantic/analyze/refs.el: (semantic-analyze-refs-impl) | 568 | * semantic/analyze/refs.el (semantic-analyze-refs-impl) |
| 551 | (semantic-analyze-refs-proto): When calculating value, make sure | 569 | (semantic-analyze-refs-proto): When calculating value, make sure |
| 552 | the found tag is 'similar' to the originating tag. | 570 | the found tag is 'similar' to the originating tag. |
| 553 | (semantic--analyze-refs-find-tags-with-parent): Attempt to | 571 | (semantic--analyze-refs-find-tags-with-parent): Attempt to |
diff --git a/lisp/cedet/cedet.el b/lisp/cedet/cedet.el index d2fb066515b..d7645bc97ed 100644 --- a/lisp/cedet/cedet.el +++ b/lisp/cedet/cedet.el | |||
| @@ -75,7 +75,7 @@ | |||
| 75 | This is used by `semantic-mode' and `global-ede-mode'.") | 75 | This is used by `semantic-mode' and `global-ede-mode'.") |
| 76 | 76 | ||
| 77 | (defun cedet-version () | 77 | (defun cedet-version () |
| 78 | "Display all active versions of CEDET and Dependant packages. | 78 | "Display all active versions of CEDET and Dependent packages. |
| 79 | 79 | ||
| 80 | The PACKAGE column is the name of a given package from CEDET. | 80 | The PACKAGE column is the name of a given package from CEDET. |
| 81 | 81 | ||
diff --git a/lisp/cedet/data-debug.el b/lisp/cedet/data-debug.el index cd910f35a6a..e50e9993af0 100644 --- a/lisp/cedet/data-debug.el +++ b/lisp/cedet/data-debug.el | |||
| @@ -955,7 +955,7 @@ we move to." | |||
| 955 | 955 | ||
| 956 | (defun data-debug-line-expandable-p () | 956 | (defun data-debug-line-expandable-p () |
| 957 | "Return non-nil if the current line is expandable. | 957 | "Return non-nil if the current line is expandable. |
| 958 | Lines that are not expandable are assumed to not be contractable." | 958 | Lines that are not expandable are assumed to not be contractible." |
| 959 | (not (get-text-property (point) 'ddebug-noexpand))) | 959 | (not (get-text-property (point) 'ddebug-noexpand))) |
| 960 | 960 | ||
| 961 | (defun data-debug-expand-current-line () | 961 | (defun data-debug-expand-current-line () |
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el index 14f09517b1d..987351a25e0 100644 --- a/lisp/cedet/ede.el +++ b/lisp/cedet/ede.el | |||
| @@ -909,7 +909,7 @@ Optional ROOTRETURN will return the root project for DIR." | |||
| 909 | ;; recomment as we go | 909 | ;; recomment as we go |
| 910 | ;;nil | 910 | ;;nil |
| 911 | )) | 911 | )) |
| 912 | ;; Do nothing if we are buiding an EDE project already | 912 | ;; Do nothing if we are building an EDE project already. |
| 913 | (ede-constructing | 913 | (ede-constructing |
| 914 | nil) | 914 | nil) |
| 915 | ;; Load in the project in question. | 915 | ;; Load in the project in question. |
diff --git a/lisp/cedet/ede/auto.el b/lisp/cedet/ede/auto.el index 09535ffce6b..d08ab543b82 100644 --- a/lisp/cedet/ede/auto.el +++ b/lisp/cedet/ede/auto.el | |||
| @@ -49,7 +49,7 @@ routine instead.") | |||
| 49 | :documentation | 49 | :documentation |
| 50 | "Initializers passed to the project object. | 50 | "Initializers passed to the project object. |
| 51 | These are used so there can be multiple types of projects | 51 | These are used so there can be multiple types of projects |
| 52 | associated with a single object class, based on the initilizeres used.") | 52 | associated with a single object class, based on the initializers used.") |
| 53 | (load-type :initarg :load-type | 53 | (load-type :initarg :load-type |
| 54 | :documentation "Fn symbol used to load this project file.") | 54 | :documentation "Fn symbol used to load this project file.") |
| 55 | (class-sym :initarg :class-sym | 55 | (class-sym :initarg :class-sym |
diff --git a/lisp/cedet/ede/custom.el b/lisp/cedet/ede/custom.el index fed1a1b2155..ac0907e8e7f 100644 --- a/lisp/cedet/ede/custom.el +++ b/lisp/cedet/ede/custom.el | |||
| @@ -40,7 +40,7 @@ | |||
| 40 | 40 | ||
| 41 | ;;; Customization Commands | 41 | ;;; Customization Commands |
| 42 | ;; | 42 | ;; |
| 43 | ;; These commands initialize custoization of EDE control objects. | 43 | ;; These commands initialize customization of EDE control objects. |
| 44 | 44 | ||
| 45 | ;;;###autoload | 45 | ;;;###autoload |
| 46 | (defun ede-customize-project () | 46 | (defun ede-customize-project () |
diff --git a/lisp/cedet/ede/emacs.el b/lisp/cedet/ede/emacs.el index b8759dd06ee..c1ca8b69208 100644 --- a/lisp/cedet/ede/emacs.el +++ b/lisp/cedet/ede/emacs.el | |||
| @@ -63,7 +63,7 @@ DIR is the directory to search from." | |||
| 63 | (if proj | 63 | (if proj |
| 64 | (ede-up-directory (file-name-directory | 64 | (ede-up-directory (file-name-directory |
| 65 | (oref proj :file))) | 65 | (oref proj :file))) |
| 66 | ;; No pre-existing project. Lets take a wild-guess if we have | 66 | ;; No pre-existing project. Let's take a wild-guess if we have |
| 67 | ;; an Emacs project here. | 67 | ;; an Emacs project here. |
| 68 | (when (string-match "emacs[^/]*" dir) | 68 | (when (string-match "emacs[^/]*" dir) |
| 69 | (let ((base (substring dir 0 (match-end 0)))) | 69 | (let ((base (substring dir 0 (match-end 0)))) |
| @@ -121,7 +121,7 @@ Return nil if there isn't one. | |||
| 121 | Argument DIR is the directory it is created for. | 121 | Argument DIR is the directory it is created for. |
| 122 | ROOTPROJ is nil, since there is only one project." | 122 | ROOTPROJ is nil, since there is only one project." |
| 123 | (or (ede-emacs-file-existing dir) | 123 | (or (ede-emacs-file-existing dir) |
| 124 | ;; Doesn't already exist, so lets make one. | 124 | ;; Doesn't already exist, so let's make one. |
| 125 | (let* ((vertuple (ede-emacs-version dir))) | 125 | (let* ((vertuple (ede-emacs-version dir))) |
| 126 | (ede-emacs-project (car vertuple) | 126 | (ede-emacs-project (car vertuple) |
| 127 | :name (car vertuple) | 127 | :name (car vertuple) |
diff --git a/lisp/cedet/ede/files.el b/lisp/cedet/ede/files.el index 3d165c39016..6179d304464 100644 --- a/lisp/cedet/ede/files.el +++ b/lisp/cedet/ede/files.el | |||
| @@ -101,7 +101,7 @@ of the anchor file for the project." | |||
| 101 | (setq ans SP) | 101 | (setq ans SP) |
| 102 | (ede-find-subproject-for-directory SP dir))))) | 102 | (ede-find-subproject-for-directory SP dir))))) |
| 103 | ans) | 103 | ans) |
| 104 | ;; We can use inodes, so lets try it. | 104 | ;; We can use inodes, so let's try it. |
| 105 | (let ((ans nil) | 105 | (let ((ans nil) |
| 106 | (inode (ede--inode-for-dir dir))) | 106 | (inode (ede--inode-for-dir dir))) |
| 107 | (ede-map-subprojects | 107 | (ede-map-subprojects |
diff --git a/lisp/cedet/ede/generic.el b/lisp/cedet/ede/generic.el index 7eef0a4121e..7efe534a640 100644 --- a/lisp/cedet/ede/generic.el +++ b/lisp/cedet/ede/generic.el | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | ;; Since these projects are all so increadibly generic, a user will | 46 | ;; Since these projects are all so increadibly generic, a user will |
| 47 | ;; need to configure some aspects of the project by hand. In order to | 47 | ;; need to configure some aspects of the project by hand. In order to |
| 48 | ;; enable this without configuring the project objects directly (which | 48 | ;; enable this without configuring the project objects directly (which |
| 49 | ;; are auto-generated) a special ede-generic-confg object is defined to | 49 | ;; are auto-generated) a special ede-generic-config object is defined to |
| 50 | ;; hold the basics. Generic projects will identify and use these | 50 | ;; hold the basics. Generic projects will identify and use these |
| 51 | ;; config files. | 51 | ;; config files. |
| 52 | ;; | 52 | ;; |
| @@ -70,7 +70,7 @@ | |||
| 70 | ;; subclasses `ede-generic-target'. The slots `shortname' and | 70 | ;; subclasses `ede-generic-target'. The slots `shortname' and |
| 71 | ;; `extension' should be given new initial values. | 71 | ;; `extension' should be given new initial values. |
| 72 | ;; | 72 | ;; |
| 73 | ;; Optionally, any target method used by EDE can then be overriden. | 73 | ;; Optionally, any target method used by EDE can then be overridden. |
| 74 | ;; The ede-generic-target-c-cpp has some example methods setting up | 74 | ;; The ede-generic-target-c-cpp has some example methods setting up |
| 75 | ;; the pre-processor map and system include path. | 75 | ;; the pre-processor map and system include path. |
| 76 | ;; | 76 | ;; |
| @@ -105,7 +105,7 @@ | |||
| 105 | :group (default build) | 105 | :group (default build) |
| 106 | :documentation | 106 | :documentation |
| 107 | "Command used for debugging this project.") | 107 | "Command used for debugging this project.") |
| 108 | ;; C target customixations | 108 | ;; C target customizations |
| 109 | (c-include-path :initarg :c-include-path | 109 | (c-include-path :initarg :c-include-path |
| 110 | :initform nil | 110 | :initform nil |
| 111 | :type list | 111 | :type list |
| @@ -133,7 +133,7 @@ | |||
| 133 | Return nil if there isn't one. | 133 | Return nil if there isn't one. |
| 134 | Argument DIR is the directory it is created for. | 134 | Argument DIR is the directory it is created for. |
| 135 | ROOTPROJ is nil, since there is only one project." | 135 | ROOTPROJ is nil, since there is only one project." |
| 136 | ;; Doesn't already exist, so lets make one. | 136 | ;; Doesn't already exist, so let's make one. |
| 137 | (let* ((alobj ede-constructing) | 137 | (let* ((alobj ede-constructing) |
| 138 | (this nil)) | 138 | (this nil)) |
| 139 | (when (not alobj) (error "Cannot load generic project without the autoload instance")) | 139 | (when (not alobj) (error "Cannot load generic project without the autoload instance")) |
| @@ -249,7 +249,7 @@ All directories need at least one target.") | |||
| 249 | "EDE Generic Project target for Misc files. | 249 | "EDE Generic Project target for Misc files. |
| 250 | All directories need at least one target.") | 250 | All directories need at least one target.") |
| 251 | 251 | ||
| 252 | ;;; Automatic target aquisition. | 252 | ;;; Automatic target acquisition. |
| 253 | (defun ede-generic-find-matching-target (class dir targets) | 253 | (defun ede-generic-find-matching-target (class dir targets) |
| 254 | "Find a target that is a CLASS and is in DIR in the list of TARGETS." | 254 | "Find a target that is a CLASS and is in DIR in the list of TARGETS." |
| 255 | (let ((match nil)) | 255 | (let ((match nil)) |
diff --git a/lisp/cedet/ede/linux.el b/lisp/cedet/ede/linux.el index e11286c710e..0ed9c3054ef 100644 --- a/lisp/cedet/ede/linux.el +++ b/lisp/cedet/ede/linux.el | |||
| @@ -62,7 +62,7 @@ DIR is the directory to search from." | |||
| 62 | (if proj | 62 | (if proj |
| 63 | (ede-up-directory (file-name-directory | 63 | (ede-up-directory (file-name-directory |
| 64 | (oref proj :file))) | 64 | (oref proj :file))) |
| 65 | ;; No pre-existing project. Lets take a wild-guess if we have | 65 | ;; No pre-existing project. Let's take a wild-guess if we have |
| 66 | ;; an Linux project here. | 66 | ;; an Linux project here. |
| 67 | (when (string-match "linux[^/]*" dir) | 67 | (when (string-match "linux[^/]*" dir) |
| 68 | (let ((base (substring dir 0 (match-end 0)))) | 68 | (let ((base (substring dir 0 (match-end 0)))) |
| @@ -101,7 +101,7 @@ Return nil if there isn't one. | |||
| 101 | Argument DIR is the directory it is created for. | 101 | Argument DIR is the directory it is created for. |
| 102 | ROOTPROJ is nil, since there is only one project." | 102 | ROOTPROJ is nil, since there is only one project." |
| 103 | (or (ede-linux-file-existing dir) | 103 | (or (ede-linux-file-existing dir) |
| 104 | ;; Doesn't already exist, so lets make one. | 104 | ;; Doesn't already exist, so let's make one. |
| 105 | (ede-linux-project "Linux" | 105 | (ede-linux-project "Linux" |
| 106 | :name "Linux" | 106 | :name "Linux" |
| 107 | :version (ede-linux-version dir) | 107 | :version (ede-linux-version dir) |
diff --git a/lisp/cedet/ede/makefile-edit.el b/lisp/cedet/ede/makefile-edit.el index 63991c54e7f..718fdf58b11 100644 --- a/lisp/cedet/ede/makefile-edit.el +++ b/lisp/cedet/ede/makefile-edit.el | |||
| @@ -71,7 +71,7 @@ | |||
| 71 | (end-of-line) | 71 | (end-of-line) |
| 72 | (= (preceding-char) ?\\))) | 72 | (= (preceding-char) ?\\))) |
| 73 | 73 | ||
| 74 | ;;; Programatic editing of a Makefile | 74 | ;;; Programmatic editing of a Makefile |
| 75 | ;; | 75 | ;; |
| 76 | (defun makefile-move-to-macro (macro &optional next) | 76 | (defun makefile-move-to-macro (macro &optional next) |
| 77 | "Move to the definition of MACRO. Return t if found. | 77 | "Move to the definition of MACRO. Return t if found. |
diff --git a/lisp/cedet/ede/pconf.el b/lisp/cedet/ede/pconf.el index 08fc98728e1..05290158189 100644 --- a/lisp/cedet/ede/pconf.el +++ b/lisp/cedet/ede/pconf.el | |||
| @@ -149,7 +149,7 @@ don't do it. A value of nil means to just do it.") | |||
| 149 | )))) | 149 | )))) |
| 150 | 150 | ||
| 151 | (defmethod ede-proj-configure-recreate ((this ede-proj-project)) | 151 | (defmethod ede-proj-configure-recreate ((this ede-proj-project)) |
| 152 | "Delete project THISes configure script and start over." | 152 | "Delete project THIS's configure script and start over." |
| 153 | (if (not (ede-proj-configure-file this)) | 153 | (if (not (ede-proj-configure-file this)) |
| 154 | (error "Could not determine configure.ac for %S" (object-name this))) | 154 | (error "Could not determine configure.ac for %S" (object-name this))) |
| 155 | (let ((b (get-file-buffer (ede-proj-configure-file this)))) | 155 | (let ((b (get-file-buffer (ede-proj-configure-file this)))) |
diff --git a/lisp/cedet/ede/proj-comp.el b/lisp/cedet/ede/proj-comp.el index 1a2843f7651..ae5796e042b 100644 --- a/lisp/cedet/ede/proj-comp.el +++ b/lisp/cedet/ede/proj-comp.el | |||
| @@ -149,7 +149,7 @@ belonging to the target name.") | |||
| 149 | :type list | 149 | :type list |
| 150 | :custom (repeat string) | 150 | :custom (repeat string) |
| 151 | :documentation "Scripts to execute. | 151 | :documentation "Scripts to execute. |
| 152 | These scripst will be executed in sh (Unless the SHELL variable is overriden). | 152 | These scripts will be executed in sh (Unless the SHELL variable is overridden). |
| 153 | Do not prefix with TAB. | 153 | Do not prefix with TAB. |
| 154 | Each individual element of this list can be either a string, or | 154 | Each individual element of this list can be either a string, or |
| 155 | a lambda function. (The custom element does not yet express that.") | 155 | a lambda function. (The custom element does not yet express that.") |
diff --git a/lisp/cedet/ede/proj-elisp.el b/lisp/cedet/ede/proj-elisp.el index 42a20cc4a1a..66c71063363 100644 --- a/lisp/cedet/ede/proj-elisp.el +++ b/lisp/cedet/ede/proj-elisp.el | |||
| @@ -217,7 +217,7 @@ is found, such as a `-version' variable, or the standard header." | |||
| 217 | (save-excursion | 217 | (save-excursion |
| 218 | (if (file-symlink-p ec) | 218 | (if (file-symlink-p ec) |
| 219 | (progn | 219 | (progn |
| 220 | ;; Desymlinkafy | 220 | ;; Desymlinkify |
| 221 | (rename-file ec (concat ec ".tmp")) | 221 | (rename-file ec (concat ec ".tmp")) |
| 222 | (copy-file (concat ec ".tmp") ec) | 222 | (copy-file (concat ec ".tmp") ec) |
| 223 | (delete-file (concat ec ".tmp")))) | 223 | (delete-file (concat ec ".tmp")))) |
diff --git a/lisp/cedet/ede/proj-misc.el b/lisp/cedet/ede/proj-misc.el index 4d68e1544a7..1c9b9bea0f4 100644 --- a/lisp/cedet/ede/proj-misc.el +++ b/lisp/cedet/ede/proj-misc.el | |||
| @@ -50,7 +50,7 @@ All listed sources are included in the distribution.") | |||
| 50 | 50 | ||
| 51 | (defvar ede-misc-source | 51 | (defvar ede-misc-source |
| 52 | (ede-sourcecode "ede-misc-source" | 52 | (ede-sourcecode "ede-misc-source" |
| 53 | :name "Miscelaneous" | 53 | :name "Miscellaneous" |
| 54 | :sourcepattern ".*") | 54 | :sourcepattern ".*") |
| 55 | "Miscellaneous field definition.") | 55 | "Miscellaneous field definition.") |
| 56 | 56 | ||
diff --git a/lisp/cedet/ede/project-am.el b/lisp/cedet/ede/project-am.el index ec54d8151bc..316309092e7 100644 --- a/lisp/cedet/ede/project-am.el +++ b/lisp/cedet/ede/project-am.el | |||
| @@ -428,7 +428,7 @@ Argument COMMAND is the command to use for compiling the target." | |||
| 428 | If a given set of projects has already been loaded, then do nothing | 428 | If a given set of projects has already been loaded, then do nothing |
| 429 | but return the project for the directory given. | 429 | but return the project for the directory given. |
| 430 | Optional ROOTPROJ is the root EDE project." | 430 | Optional ROOTPROJ is the root EDE project." |
| 431 | (let* ((ede-constructiong t) | 431 | (let* ((ede-constructing t) |
| 432 | (amo (object-assoc (expand-file-name "Makefile.am" directory) | 432 | (amo (object-assoc (expand-file-name "Makefile.am" directory) |
| 433 | 'file ede-projects))) | 433 | 'file ede-projects))) |
| 434 | (when (not amo) | 434 | (when (not amo) |
| @@ -659,7 +659,7 @@ Strip out duplicates, and recurse on variables." | |||
| 659 | ;; their object still exists! | 659 | ;; their object still exists! |
| 660 | ;; FIGURE THIS OUT | 660 | ;; FIGURE THIS OUT |
| 661 | (project-am-expand-subdirlist 'csubprojexpanded csubproj) | 661 | (project-am-expand-subdirlist 'csubprojexpanded csubproj) |
| 662 | ;; Ok, now lets look at all our sub-projects. | 662 | ;; Ok, now let's look at all our sub-projects. |
| 663 | (mapc (lambda (sp) | 663 | (mapc (lambda (sp) |
| 664 | (let* ((subdir (file-name-as-directory | 664 | (let* ((subdir (file-name-as-directory |
| 665 | (expand-file-name | 665 | (expand-file-name |
| @@ -836,7 +836,7 @@ nil means that this buffer belongs to no-one." | |||
| 836 | (oref this :name)) | 836 | (oref this :name)) |
| 837 | 837 | ||
| 838 | (defmethod project-compile-target-command ((this project-am-texinfo)) | 838 | (defmethod project-compile-target-command ((this project-am-texinfo)) |
| 839 | "Default target t- use when compling a texinfo file." | 839 | "Default target t- use when compiling a texinfo file." |
| 840 | (let ((n (oref this :name))) | 840 | (let ((n (oref this :name))) |
| 841 | (if (string-match "\\.texi?\\(nfo\\)?" n) | 841 | (if (string-match "\\.texi?\\(nfo\\)?" n) |
| 842 | (setq n (replace-match ".info" t t n))) | 842 | (setq n (replace-match ".info" t t n))) |
diff --git a/lisp/cedet/ede/speedbar.el b/lisp/cedet/ede/speedbar.el index 252ce47df67..fdf61b51b68 100644 --- a/lisp/cedet/ede/speedbar.el +++ b/lisp/cedet/ede/speedbar.el | |||
| @@ -297,7 +297,7 @@ INDENT is the current indentation level." | |||
| 297 | (let ((file (ede-find-nearest-file-line))) | 297 | (let ((file (ede-find-nearest-file-line))) |
| 298 | (speedbar-find-file-in-frame file) | 298 | (speedbar-find-file-in-frame file) |
| 299 | (save-excursion (speedbar-stealthy-updates)) | 299 | (save-excursion (speedbar-stealthy-updates)) |
| 300 | ;; Reset the timer with a new timeout when cliking a file | 300 | ;; Reset the timer with a new timeout when clicking a file |
| 301 | ;; in case the user was navigating directories, we can cancel | 301 | ;; in case the user was navigating directories, we can cancel |
| 302 | ;; that other timer. | 302 | ;; that other timer. |
| 303 | ; (speedbar-set-timer speedbar-update-speed) | 303 | ; (speedbar-set-timer speedbar-update-speed) |
diff --git a/lisp/cedet/inversion.el b/lisp/cedet/inversion.el index 71960ddecd4..065ac6d0559 100644 --- a/lisp/cedet/inversion.el +++ b/lisp/cedet/inversion.el | |||
| @@ -419,7 +419,7 @@ INSTALLDIR path." | |||
| 419 | ;;(message "%S added to `load-path'" default-directory) | 419 | ;;(message "%S added to `load-path'" default-directory) |
| 420 | (add-to-list 'load-path default-directory)) | 420 | (add-to-list 'load-path default-directory)) |
| 421 | ;; We get to this point iff we do not accept or there is no | 421 | ;; We get to this point iff we do not accept or there is no |
| 422 | ;; system file. Lets check the version of what we just | 422 | ;; system file. Let's check the version of what we just |
| 423 | ;; installed... just to be safe. | 423 | ;; installed... just to be safe. |
| 424 | (let ((newver (inversion-find-version package))) | 424 | (let ((newver (inversion-find-version package))) |
| 425 | (if (not newver) | 425 | (if (not newver) |
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el index d077dd95f3c..0e7657642c2 100644 --- a/lisp/cedet/mode-local.el +++ b/lisp/cedet/mode-local.el | |||
| @@ -637,7 +637,7 @@ SYMBOL is a function that can be overridden." | |||
| 637 | 637 | ||
| 638 | (defun mode-local-print-bindings (table) | 638 | (defun mode-local-print-bindings (table) |
| 639 | "Print bindings in TABLE." | 639 | "Print bindings in TABLE." |
| 640 | (let (us ;; List of unpecified symbols | 640 | (let (us ;; List of unspecified symbols |
| 641 | mc ;; List of mode local constants | 641 | mc ;; List of mode local constants |
| 642 | mv ;; List of mode local variables | 642 | mv ;; List of mode local variables |
| 643 | ov ;; List of overloaded functions | 643 | ov ;; List of overloaded functions |
| @@ -656,7 +656,7 @@ SYMBOL is a function that can be overridden." | |||
| 656 | table) | 656 | table) |
| 657 | ;; Print symbols by type | 657 | ;; Print symbols by type |
| 658 | (when us | 658 | (when us |
| 659 | (princ "\n !! Unpecified symbols\n") | 659 | (princ "\n !! Unspecified symbols\n") |
| 660 | (mapc 'mode-local-print-binding us)) | 660 | (mapc 'mode-local-print-binding us)) |
| 661 | (when mc | 661 | (when mc |
| 662 | (princ "\n ** Mode local constants\n") | 662 | (princ "\n ** Mode local constants\n") |
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el index 34d886b6807..639b46ad2cf 100644 --- a/lisp/cedet/semantic.el +++ b/lisp/cedet/semantic.el | |||
| @@ -1015,7 +1015,7 @@ Throw away all the old tags, and recreate the tag database." | |||
| 1015 | :visible semantic-mode | 1015 | :visible semantic-mode |
| 1016 | :button (:toggle . global-semanticdb-minor-mode)))) | 1016 | :button (:toggle . global-semanticdb-minor-mode)))) |
| 1017 | 1017 | ||
| 1018 | ;; The `semantic-mode' command, in conjuction with the | 1018 | ;; The `semantic-mode' command, in conjunction with the |
| 1019 | ;; `semantic-default-submodes' variable, toggles Semantic's various | 1019 | ;; `semantic-default-submodes' variable, toggles Semantic's various |
| 1020 | ;; auxiliary minor modes. | 1020 | ;; auxiliary minor modes. |
| 1021 | 1021 | ||
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. |
| 109 | These are clases for tags, such as 'function, or 'variable.") | 109 | These 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 | |||
| 476 | in a separate buffer. | 476 | in a separate buffer. |
| 477 | Returns an object based on symbol `semantic-analyze-context'. | 477 | Returns an object based on symbol `semantic-analyze-context'. |
| 478 | 478 | ||
| 479 | This function can be overriden with the symbol `analyze-context'. | 479 | This function can be overridden with the symbol `analyze-context'. |
| 480 | When overriding this function, your override will be called while | 480 | When overriding this function, your override will be called while |
| 481 | cursor is at POSITION. In addition, your function will not be called | 481 | cursor is at POSITION. In addition, your function will not be called |
| 482 | if a cached copy of the return object is found." | 482 | if 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. |
| 1132 | PARENT specifies a parent class. | 1132 | PARENT specifies a parent class. |
| 1133 | COLOR indicates that the text should be type colorized. | 1133 | COLOR indicates that the text should be type colorized. |
| 1134 | Enhances the base class to search for the entire parent | 1134 | Enhances 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. |
| 825 | Emacs Lisp knows much more about the class of the tag needed to perform | 825 | Emacs Lisp knows much more about the class of the tag needed to perform |
| 826 | completion than some languages. We distincly know if we are to be a | 826 | completion than some languages. We distinctly know if we are to be a |
| 827 | function name, variable name, or any type of symbol. We could identify | 827 | function name, variable name, or any type of symbol. We could identify |
| 828 | fields and such to, but that is for some other day." | 828 | fields 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.") | |||
| 891 | This completion is calculated and saved for future use.") | 891 | This 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. |
| 894 | For partial completion, SPC will disabiguate over whitespace type | 894 | For partial completion, SPC will disambiguate over whitespace type |
| 895 | characters. This is the last calculated version.") | 895 | characters. 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'. |
| 1379 | A displayor which has the ability to focus in on one tag. | 1379 | A displayor which has the ability to focus in on one tag. |
| 1380 | Focusing is a way of differentiationg between multiple tags | 1380 | Focusing is a way of differentiating among multiple tags |
| 1381 | which have the same name." | 1381 | which 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. |
| 156 | Local variables are returned in Semantic tag format. | 156 | Local variables are returned in Semantic tag format. |
| 157 | This can be overriden with `get-local-variables'." | 157 | This 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. |
| 108 | Allows deletion of the entire text. | 108 | Allows deletion of the entire text. |
| 109 | Argument OVERLAY, AFTER, START, END, and LEN are passed in by the system." | 109 | Argument 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. | |||
| 459 | If this is an include file that belongs to your project, then you may | 459 | If this is an include file that belongs to your project, then you may |
| 460 | need to update `semanticdb-project-roots' or better yet, use `ede' | 460 | need to update `semanticdb-project-roots' or better yet, use `ede' |
| 461 | to manage your project. See the ede manual for projects that will | 461 | to manage your project. See the ede manual for projects that will |
| 462 | wrap existing project code for Semantic's benifit. | 462 | wrap 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. |
| 740 | If TABLE is not in a buffer, do nothing." | 740 | If 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 | |||
| 574 | in the new list. | 574 | in the new list. |
| 575 | 575 | ||
| 576 | If optional argument SEARCH-PARTS is non-nil, all sub-parts of tags | 576 | If optional argument SEARCH-PARTS is non-nil, all sub-parts of tags |
| 577 | are searched. The overloadable function `semantic-tag-componenets' is | 577 | are searched. The overloadable function `semantic-tag-components' is |
| 578 | used for the searching child lists. If SEARCH-PARTS is the symbol | 578 | used 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 |
| 580 | searched. | 580 | searched. |
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. |
| 604 | By default, uses `semantic-format-tag-protection-symbol-to-string-assoc-list' | 604 | By default, uses `semantic-format-tag-protection-symbol-to-string-assoc-list' |
| 605 | to convert. | 605 | to convert. |
| 606 | By defaul character returns are: | 606 | By 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. |
| 64 | INGNORE any arguments. Always parse the whole buffer. | 64 | IGNORE any arguments. Always parse the whole buffer. |
| 65 | Each tag returned is of the form: | 65 | Each tag returned is of the form: |
| 66 | (\"NAME\" section (:members CHILDREN)) | 66 | (\"NAME\" section (:members CHILDREN)) |
| 67 | or | 67 | or |
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. |
| 252 | This helper manages the mark, buffer switching, and pulsing." | 252 | This 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. |
| 98 | A nil value means to keep them in the same order. | 98 | A nil value means to keep them in the same order. |
| 99 | Overriden to nil if `semantic-imenu-bucketize-file' is nil." | 99 | Overridden 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. |
| 495 | As of December 2001 (semantic 1.4beta13), this variable is not used in | 495 | As of December 2001 (semantic 1.4beta13), this variable is not used in |
| 496 | any code. The only use is to refer to the doc-string from elsewhere. | 496 | any 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. |
| 1773 | See variable `semantic-lex-tokens'.") | 1773 | See 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. |
| 388 | Tags returned are not in the global name space, but are instead | 388 | Tags returned are not in the global name space, but are instead |
| 389 | scoped inside a class or namespace. Such items can be referenced | 389 | scoped inside a class or namespace. Such items can be referenced |
| 390 | without use of \"object.function()\" style syntax due to an | 390 | without 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. | |||
| 102 | FILEPATTERN is a string representing find flags for searching file patterns. | 102 | FILEPATTERN is a string representing find flags for searching file patterns. |
| 103 | GREPFLAGS are flags passed to grep, such as -n or -l. | 103 | GREPFLAGS are flags passed to grep, such as -n or -l. |
| 104 | GREPPATTERN is the pattern used by grep." | 104 | GREPPATTERN 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. |
| 44 | The default behavior (if not overriden with `tag-calculate-parent') | 44 | The default behavior (if not overridden with `tag-calculate-parent') |
| 45 | is to search a buffer found with TAG, and if externally defined, | 45 | is to search a buffer found with TAG, and if externally defined, |
| 46 | search locally, then semanticdb for that tag (when enabled.)") | 46 | search 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. |
| 102 | PROTECTION is a symbol which can be returned by the method | 102 | PROTECTION is a symbol which can be returned by the method |
| 103 | `semantic-tag-protection'. | 103 | `semantic-tag-protection'. |
| 104 | PARENT is the parent data type which contains TAG. | 104 | PARENT is the parent data type which contains TAG. |
| @@ -106,7 +106,7 @@ PARENT is the parent data type which contains TAG. | |||
| 106 | For these PROTECTIONs, true is returned if TAG is: | 106 | For 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. |
| 224 | STREAM-OR-BUFFER can be anything convertable by `semantic-something-to-stream', | 224 | STREAM-OR-BUFFER can be anything convertible by `semantic-something-to-stream', |
| 225 | but must be a toplevel semantic tag stream that contains TAG. | 225 | but must be a toplevel semantic tag stream that contains TAG. |
| 226 | A Package Hierarchy is defined in UML by the way classes and methods | 226 | A Package Hierarchy is defined in UML by the way classes and methods |
| 227 | are organized on disk. Some language use this concept such that a | 227 | are 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. |
| 423 | Since texinfo is not a programming language the default version is not | 423 | Since texinfo is not a programming language the default version is not |
| 424 | useful. Insted, look at the current symbol. If it is a command | 424 | useful. Instead, look at the current symbol. If it is a command |
| 425 | do primitive texinfo built ins. If not, use ispell to lookup words | 425 | do primitive texinfo built ins. If not, use ispell to lookup words |
| 426 | that start with that symbol." | 426 | that 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. |
| 110 | That is the next line whose indentation is less than or equal to the | 110 | That is the next line whose indentation is less than or equal to the |
| 111 | identation of the current line." | 111 | indentation 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 | ||
diff --git a/lisp/cedet/srecode/compile.el b/lisp/cedet/srecode/compile.el index 052999bf7c8..d3623d6022f 100644 --- a/lisp/cedet/srecode/compile.el +++ b/lisp/cedet/srecode/compile.el | |||
| @@ -62,11 +62,11 @@ | |||
| 62 | (dictionary :initarg :dictionary | 62 | (dictionary :initarg :dictionary |
| 63 | :type (or null srecode-dictionary) | 63 | :type (or null srecode-dictionary) |
| 64 | :documentation | 64 | :documentation |
| 65 | "List of section dictinaries. | 65 | "List of section dictionaries. |
| 66 | The compiled template can contain lists of section dictionaries, | 66 | The compiled template can contain lists of section dictionaries, |
| 67 | or values that are expected to be passed down into different | 67 | or values that are expected to be passed down into different |
| 68 | section macros. The template section dictionaries are merged in with | 68 | section macros. The template section dictionaries are merged in with |
| 69 | any incomming dictionaries values.") | 69 | any incoming dictionaries values.") |
| 70 | (binding :initarg :binding | 70 | (binding :initarg :binding |
| 71 | :documentation | 71 | :documentation |
| 72 | "Preferred keybinding for this template in `srecode-minor-mode-map'.") | 72 | "Preferred keybinding for this template in `srecode-minor-mode-map'.") |
| @@ -552,7 +552,7 @@ A list of defined variables VARS provides a variable table." | |||
| 552 | (when (not hs) | 552 | (when (not hs) |
| 553 | (setq hs (make-hash-table :test 'equal :size 20)) | 553 | (setq hs (make-hash-table :test 'equal :size 20)) |
| 554 | (puthash context hs contexthash)) | 554 | (puthash context hs contexthash)) |
| 555 | ;; Put into that contenxt's hash. | 555 | ;; Put into that context's hash. |
| 556 | (puthash objname (car lp) hs) | 556 | (puthash objname (car lp) hs) |
| 557 | ) | 557 | ) |
| 558 | 558 | ||
diff --git a/lisp/cedet/srecode/ctxt.el b/lisp/cedet/srecode/ctxt.el index cae52428e75..f392379347a 100644 --- a/lisp/cedet/srecode/ctxt.el +++ b/lisp/cedet/srecode/ctxt.el | |||
| @@ -73,7 +73,7 @@ Some useful context values used by the provided srecode templates are: | |||
| 73 | ) | 73 | ) |
| 74 | 74 | ||
| 75 | (defun srecode-calculate-nearby-things () | 75 | (defun srecode-calculate-nearby-things () |
| 76 | ;; NOTE: May need to add bounes to this FCN | 76 | ;; NOTE: May need to add bounds to this FCN |
| 77 | "Calculate the CONTEXT type items nearby the current point. | 77 | "Calculate the CONTEXT type items nearby the current point. |
| 78 | Assume that what we want to insert next is based on what is just | 78 | Assume that what we want to insert next is based on what is just |
| 79 | before point. If there is nothing, then assume it is whatever is | 79 | before point. If there is nothing, then assume it is whatever is |
diff --git a/lisp/cedet/srecode/dictionary.el b/lisp/cedet/srecode/dictionary.el index 521532bed33..62ceff82448 100644 --- a/lisp/cedet/srecode/dictionary.el +++ b/lisp/cedet/srecode/dictionary.el | |||
| @@ -202,7 +202,7 @@ associated with a buffer or parent." | |||
| 202 | :size 20) | 202 | :size 20) |
| 203 | :origin origin))) | 203 | :origin origin))) |
| 204 | ;; Only set up the default variables if we are being built | 204 | ;; Only set up the default variables if we are being built |
| 205 | ;; directroy for a particular buffer. | 205 | ;; directly for a particular buffer. |
| 206 | (when initfrombuff | 206 | (when initfrombuff |
| 207 | ;; Variables from the table we are inserting from. | 207 | ;; Variables from the table we are inserting from. |
| 208 | ;; @todo - get a better tree of tables. | 208 | ;; @todo - get a better tree of tables. |
| @@ -280,7 +280,7 @@ inserted dictionaries." | |||
| 280 | (progn | 280 | (progn |
| 281 | (srecode-dictionary-show-section new "FIRST") | 281 | (srecode-dictionary-show-section new "FIRST") |
| 282 | (srecode-dictionary-show-section new "LAST")) | 282 | (srecode-dictionary-show-section new "LAST")) |
| 283 | ;; Not the very first one. Lets clean up CAR. | 283 | ;; Not the very first one. Let's clean up CAR. |
| 284 | (let ((tail (car (last ov)))) | 284 | (let ((tail (car (last ov)))) |
| 285 | (srecode-dictionary-hide-section tail "LAST") | 285 | (srecode-dictionary-hide-section tail "LAST") |
| 286 | (srecode-dictionary-show-section tail "NOTLAST") | 286 | (srecode-dictionary-show-section tail "NOTLAST") |
| @@ -436,7 +436,7 @@ The root dictionary is usually for a current or active insertion." | |||
| 436 | 436 | ||
| 437 | ;;; COMPOUND VALUE METHODS | 437 | ;;; COMPOUND VALUE METHODS |
| 438 | ;; | 438 | ;; |
| 439 | ;; Compound values must provide at least the toStriong method | 439 | ;; Compound values must provide at least the toString method |
| 440 | ;; for use in converting the compound value into sometehing insertable. | 440 | ;; for use in converting the compound value into sometehing insertable. |
| 441 | 441 | ||
| 442 | (defmethod srecode-compound-toString ((cp srecode-dictionary-compound-value) | 442 | (defmethod srecode-compound-toString ((cp srecode-dictionary-compound-value) |
diff --git a/lisp/cedet/srecode/document.el b/lisp/cedet/srecode/document.el index a52cadbfb2c..caf1ddebdb2 100644 --- a/lisp/cedet/srecode/document.el +++ b/lisp/cedet/srecode/document.el | |||
| @@ -167,7 +167,7 @@ doesn't always work correctly." | |||
| 167 | ("str\\(ing\\)?" . "string") | 167 | ("str\\(ing\\)?" . "string") |
| 168 | ("use?r" . "user") | 168 | ("use?r" . "user") |
| 169 | ("num\\(ber\\)?" . "number") | 169 | ("num\\(ber\\)?" . "number") |
| 170 | ("\\(^\\|\\s-\\)id\\($\\|\\s-\\)" . "Identifier") ;complex cause ;commen sylable | 170 | ("\\(^\\|\\s-\\)id\\($\\|\\s-\\)" . "Identifier") ;complex cause ;common sylable |
| 171 | ) | 171 | ) |
| 172 | "List of common English abbreviations or full words. | 172 | "List of common English abbreviations or full words. |
| 173 | These are nouns (as opposed to verbs) for use in creating expanded | 173 | These are nouns (as opposed to verbs) for use in creating expanded |
| @@ -720,7 +720,7 @@ allocating something based on its type." | |||
| 720 | "Convert tag or string PARAM into a name,comment pair. | 720 | "Convert tag or string PARAM into a name,comment pair. |
| 721 | Optional COMMENTLIST is list of previously existing comments to | 721 | Optional COMMENTLIST is list of previously existing comments to |
| 722 | use instead in alist form. If the name doesn't appear in the list of | 722 | use instead in alist form. If the name doesn't appear in the list of |
| 723 | standard names, then englishify it instead." | 723 | standard names, then english it instead." |
| 724 | (let ((cmt "") | 724 | (let ((cmt "") |
| 725 | (aso srecode-document-autocomment-param-alist) | 725 | (aso srecode-document-autocomment-param-alist) |
| 726 | (fnd nil) | 726 | (fnd nil) |
| @@ -811,8 +811,8 @@ not account for verb parts." | |||
| 811 | (if (string-match (car (car al)) (downcase ts)) | 811 | (if (string-match (car (car al)) (downcase ts)) |
| 812 | (progn | 812 | (progn |
| 813 | (setq newstr (concat newstr (cdr (car al)))) | 813 | (setq newstr (concat newstr (cdr (car al)))) |
| 814 | ;; don't terminate because we may actuall have 2 words | 814 | ;; don't terminate because we may actually have 2 words |
| 815 | ;; next to eachother we didn't identify before | 815 | ;; next to each other we didn't identify before |
| 816 | (setq llow t))) | 816 | (setq llow t))) |
| 817 | (setq al (cdr al))) | 817 | (setq al (cdr al))) |
| 818 | (if (not llow) (setq newstr (concat newstr ts))) | 818 | (if (not llow) (setq newstr (concat newstr ts))) |
diff --git a/lisp/cedet/srecode/extract.el b/lisp/cedet/srecode/extract.el index dba4b876edb..d87dc315829 100644 --- a/lisp/cedet/srecode/extract.el +++ b/lisp/cedet/srecode/extract.el | |||
| @@ -61,12 +61,12 @@ | |||
| 61 | (oset st lastdict dict)) | 61 | (oset st lastdict dict)) |
| 62 | 62 | ||
| 63 | (defmethod srecode-extract-state-set-anchor ((st srecode-extract-state)) | 63 | (defmethod srecode-extract-state-set-anchor ((st srecode-extract-state)) |
| 64 | "Reset the achor point on extract state ST." | 64 | "Reset the anchor point on extract state ST." |
| 65 | (oset st anchor (point))) | 65 | (oset st anchor (point))) |
| 66 | 66 | ||
| 67 | (defmethod srecode-extract-state-extract ((st srecode-extract-state) | 67 | (defmethod srecode-extract-state-extract ((st srecode-extract-state) |
| 68 | endpoint) | 68 | endpoint) |
| 69 | "Perform an extraction on the extract state ST with ENDPOITNT. | 69 | "Perform an extraction on the extract state ST with ENDPOINT. |
| 70 | If there was no waiting inserter, do nothing." | 70 | If there was no waiting inserter, do nothing." |
| 71 | (when (oref st lastinserter) | 71 | (when (oref st lastinserter) |
| 72 | (save-match-data | 72 | (save-match-data |
diff --git a/lisp/cedet/srecode/fields.el b/lisp/cedet/srecode/fields.el index 088781cfb53..f13fb17ca8f 100644 --- a/lisp/cedet/srecode/fields.el +++ b/lisp/cedet/srecode/fields.el | |||
| @@ -101,7 +101,7 @@ Has virtual :start and :end initializers.") | |||
| 101 | )) | 101 | )) |
| 102 | 102 | ||
| 103 | ;; Create a temporary overlay now. We have to use an overlay and | 103 | ;; Create a temporary overlay now. We have to use an overlay and |
| 104 | ;; not a marker becaues of the in-front insertion rules. The rules | 104 | ;; not a marker because of the in-front insertion rules. The rules |
| 105 | ;; are backward from what is wanted while typing. | 105 | ;; are backward from what is wanted while typing. |
| 106 | (setq olay (make-overlay start end (current-buffer) t nil)) | 106 | (setq olay (make-overlay start end (current-buffer) t nil)) |
| 107 | (overlay-put olay 'srecode-init-only t) | 107 | (overlay-put olay 'srecode-init-only t) |
| @@ -338,7 +338,7 @@ PRE-LEN is used in the after mode for the length of the changed text." | |||
| 338 | (inhibit-modification-hooks t) | 338 | (inhibit-modification-hooks t) |
| 339 | ) | 339 | ) |
| 340 | ;; Sometimes a field is deleted, but we might still get a stray | 340 | ;; Sometimes a field is deleted, but we might still get a stray |
| 341 | ;; event. Lets just ignore those events. | 341 | ;; event. Let's just ignore those events. |
| 342 | (when (slot-boundp field 'overlay) | 342 | (when (slot-boundp field 'overlay) |
| 343 | ;; First, fixup the two overlays, in case they got confused. | 343 | ;; First, fixup the two overlays, in case they got confused. |
| 344 | (let ((main (oref field overlay)) | 344 | (let ((main (oref field overlay)) |
diff --git a/lisp/cedet/srecode/find.el b/lisp/cedet/srecode/find.el index fdca64a7da1..d9765ebd449 100644 --- a/lisp/cedet/srecode/find.el +++ b/lisp/cedet/srecode/find.el | |||
| @@ -103,7 +103,7 @@ If TAB is nil, then always return t." | |||
| 103 | (let ((proj (oref tab :project))) | 103 | (let ((proj (oref tab :project))) |
| 104 | ;; Return t if the project wasn't set. | 104 | ;; Return t if the project wasn't set. |
| 105 | (if (not proj) t | 105 | (if (not proj) t |
| 106 | ;; If the project directory was set, lets check it. | 106 | ;; If the project directory was set, let's check it. |
| 107 | (let ((dd (expand-file-name default-directory)) | 107 | (let ((dd (expand-file-name default-directory)) |
| 108 | (projexp (regexp-quote (directory-file-name proj)))) | 108 | (projexp (regexp-quote (directory-file-name proj)))) |
| 109 | (if (string-match (concat "^" projexp) dd) | 109 | (if (string-match (concat "^" projexp) dd) |
diff --git a/lisp/cedet/srecode/getset.el b/lisp/cedet/srecode/getset.el index a582d4ff59e..9a6c27dcd73 100644 --- a/lisp/cedet/srecode/getset.el +++ b/lisp/cedet/srecode/getset.el | |||
| @@ -215,7 +215,7 @@ INCLASS specifies if the cursor is already in CLASS or not." | |||
| 215 | (when (not te) | 215 | (when (not te) |
| 216 | (message "Unknown location for tag-end in %s:" (semantic-tag-name aftertag))) | 216 | (message "Unknown location for tag-end in %s:" (semantic-tag-name aftertag))) |
| 217 | (goto-char te) | 217 | (goto-char te) |
| 218 | ;; If there is a comment immediatly after aftertag, skip over it. | 218 | ;; If there is a comment immediately after aftertag, skip over it. |
| 219 | (when (looking-at (concat "\\s-*\n?\\s-*" semantic-lex-comment-regex)) | 219 | (when (looking-at (concat "\\s-*\n?\\s-*" semantic-lex-comment-regex)) |
| 220 | (let ((pos (point)) | 220 | (let ((pos (point)) |
| 221 | (rnext (semantic-find-tag-by-overlay-next (point)))) | 221 | (rnext (semantic-find-tag-by-overlay-next (point)))) |
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el index 84964a9e8b4..9fbfc5dc042 100644 --- a/lisp/cedet/srecode/insert.el +++ b/lisp/cedet/srecode/insert.el | |||
| @@ -255,7 +255,7 @@ ST can be a class, or an object." | |||
| 255 | (let ((c (oref st code))) | 255 | (let ((c (oref st code))) |
| 256 | (srecode-push st) | 256 | (srecode-push st) |
| 257 | (srecode-insert-code-stream c dictionary)) | 257 | (srecode-insert-code-stream c dictionary)) |
| 258 | ;; Poping the stack is protected | 258 | ;; Popping the stack is protected. |
| 259 | (srecode-pop st))) | 259 | (srecode-pop st))) |
| 260 | 260 | ||
| 261 | (defun srecode-insert-code-stream (code dictionary) | 261 | (defun srecode-insert-code-stream (code dictionary) |
| @@ -936,7 +936,7 @@ with the dictionaries found in the dictionary." | |||
| 936 | (if (srecode-dictionary-lookup-name dictionary (oref sti :object-name)) | 936 | (if (srecode-dictionary-lookup-name dictionary (oref sti :object-name)) |
| 937 | ;; If we have a value, then call the next method | 937 | ;; If we have a value, then call the next method |
| 938 | (srecode-insert-method-helper sti dictionary 'includedtemplate) | 938 | (srecode-insert-method-helper sti dictionary 'includedtemplate) |
| 939 | ;; If we don't have a special dictitonary, then just insert with the | 939 | ;; If we don't have a special dictionary, then just insert with the |
| 940 | ;; current dictionary. | 940 | ;; current dictionary. |
| 941 | (srecode-insert-subtemplate sti dictionary 'includedtemplate)) | 941 | (srecode-insert-subtemplate sti dictionary 'includedtemplate)) |
| 942 | ) | 942 | ) |
diff --git a/lisp/cedet/srecode/mode.el b/lisp/cedet/srecode/mode.el index 6ca0cefe9a7..23d09bc9a4b 100644 --- a/lisp/cedet/srecode/mode.el +++ b/lisp/cedet/srecode/mode.el | |||
| @@ -61,7 +61,7 @@ | |||
| 61 | (define-key km (format "%c" k) 'srecode-bind-insert) | 61 | (define-key km (format "%c" k) 'srecode-bind-insert) |
| 62 | (setq k (1+ k)))) | 62 | (setq k (1+ k)))) |
| 63 | km) | 63 | km) |
| 64 | "Keymap used behind the srecode prefix key in in srecode minor mode.") | 64 | "Keymap used behind the srecode prefix key in srecode minor mode.") |
| 65 | 65 | ||
| 66 | (defvar srecode-menu-bar | 66 | (defvar srecode-menu-bar |
| 67 | (list | 67 | (list |
| @@ -366,7 +366,7 @@ programming modes." | |||
| 366 | (define-key srecode-prefix-map oldkey nil) | 366 | (define-key srecode-prefix-map oldkey nil) |
| 367 | ))) | 367 | ))) |
| 368 | 368 | ||
| 369 | ;; Update Keybings | 369 | ;; Update Keybindings |
| 370 | (let ((oldbinding (lookup-key srecode-prefix-map binding))) | 370 | (let ((oldbinding (lookup-key srecode-prefix-map binding))) |
| 371 | 371 | ||
| 372 | ;; During development, allow overrides. | 372 | ;; During development, allow overrides. |
diff --git a/lisp/cedet/srecode/semantic.el b/lisp/cedet/srecode/semantic.el index 4a1a15c1d12..956bdfbd97a 100644 --- a/lisp/cedet/srecode/semantic.el +++ b/lisp/cedet/srecode/semantic.el | |||
| @@ -394,7 +394,7 @@ as `function' will leave point where code might be inserted." | |||
| 394 | (srecode-semantic-apply-tag-to-dict tagobj dict))) | 394 | (srecode-semantic-apply-tag-to-dict tagobj dict))) |
| 395 | 395 | ||
| 396 | ;; Insert dict-entries into the dictionary LAST so that previous | 396 | ;; Insert dict-entries into the dictionary LAST so that previous |
| 397 | ;; items can be overriden. | 397 | ;; items can be overridden. |
| 398 | (let ((entries dict-entries)) | 398 | (let ((entries dict-entries)) |
| 399 | (while entries | 399 | (while entries |
| 400 | (srecode-dictionary-set-value dict | 400 | (srecode-dictionary-set-value dict |
diff --git a/lisp/cedet/srecode/srt-mode.el b/lisp/cedet/srecode/srt-mode.el index 5a407aad135..0a99b7869e8 100644 --- a/lisp/cedet/srecode/srt-mode.el +++ b/lisp/cedet/srecode/srt-mode.el | |||
| @@ -483,7 +483,7 @@ section or ? for an ask variable." | |||
| 483 | 483 | ||
| 484 | (if (> start (point)) | 484 | (if (> start (point)) |
| 485 | ;; If our starting point is after the found point, that | 485 | ;; If our starting point is after the found point, that |
| 486 | ;; means we are not inside the macro. Retur nil. | 486 | ;; means we are not inside the macro. Return nil. |
| 487 | nil | 487 | nil |
| 488 | ;; We are inside the macro, extract the text so far. | 488 | ;; We are inside the macro, extract the text so far. |
| 489 | (let* ((macroend (match-beginning 0)) | 489 | (let* ((macroend (match-beginning 0)) |
diff --git a/lisp/cedet/srecode/texi.el b/lisp/cedet/srecode/texi.el index 33440d04432..acfc2486711 100644 --- a/lisp/cedet/srecode/texi.el +++ b/lisp/cedet/srecode/texi.el | |||
| @@ -231,7 +231,7 @@ This is to take advantage of TeXinfo's markup symbols." | |||
| 231 | (if buffer | 231 | (if buffer |
| 232 | (progn (set-buffer buffer) | 232 | (progn (set-buffer buffer) |
| 233 | (srecode-texi-texify-docstring string)) | 233 | (srecode-texi-texify-docstring string)) |
| 234 | ;; Else, no buffer, so lets do something else | 234 | ;; Else, no buffer, so let's do something else |
| 235 | (with-mode-local texinfo-mode | 235 | (with-mode-local texinfo-mode |
| 236 | (srecode-texi-texify-docstring string))))) | 236 | (srecode-texi-texify-docstring string))))) |
| 237 | 237 | ||