diff options
| author | Kenichi Handa | 2010-01-15 14:13:05 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-01-15 14:13:05 +0900 |
| commit | fa0cff43e861a49d9f992ffccbe4f71e29d71e1a (patch) | |
| tree | 2a2bf41b76f624200d873bd604176cc6b7237f69 /lisp/cedet | |
| parent | cc320f07d4d1c0033c1728d22421462ab1fcc04e (diff) | |
| parent | 56a03f46b825f2c22c7a982e8d4bcb5545908a09 (diff) | |
| download | emacs-fa0cff43e861a49d9f992ffccbe4f71e29d71e1a.tar.gz emacs-fa0cff43e861a49d9f992ffccbe4f71e29d71e1a.zip | |
from trunk
Diffstat (limited to 'lisp/cedet')
| -rw-r--r-- | lisp/cedet/ede/files.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/semantic/edit.el | 16 | ||||
| -rw-r--r-- | lisp/cedet/semantic/lex.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/srecode/args.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/srecode/insert.el | 26 |
5 files changed, 23 insertions, 25 deletions
diff --git a/lisp/cedet/ede/files.el b/lisp/cedet/ede/files.el index 89ae36bcf9e..bdb9268a030 100644 --- a/lisp/cedet/ede/files.el +++ b/lisp/cedet/ede/files.el | |||
| @@ -442,7 +442,7 @@ If FORCE equals 'newfile, then the cache is ignored." | |||
| 442 | (setq ans calc)) | 442 | (setq ans calc)) |
| 443 | ;; If we failed to calculate something, we | 443 | ;; If we failed to calculate something, we |
| 444 | ;; should add it to the hash, but ONLY if we are not | 444 | ;; should add it to the hash, but ONLY if we are not |
| 445 | ;; going to FORCE the file into existance. | 445 | ;; going to FORCE the file into existence. |
| 446 | (when (not force) | 446 | (when (not force) |
| 447 | (ede-locate-add-file-to-hash loc filename 'nomatch)))) | 447 | (ede-locate-add-file-to-hash loc filename 'nomatch)))) |
| 448 | )) | 448 | )) |
diff --git a/lisp/cedet/semantic/edit.el b/lisp/cedet/semantic/edit.el index c57da3a5aa5..0f18d49b7c3 100644 --- a/lisp/cedet/semantic/edit.el +++ b/lisp/cedet/semantic/edit.el | |||
| @@ -81,15 +81,13 @@ common hook `after-change-functions'.") | |||
| 81 | 81 | ||
| 82 | (defvar semantic-reparse-needed-change-hook nil | 82 | (defvar semantic-reparse-needed-change-hook nil |
| 83 | "Hooks run when a user edit is detected as needing a reparse. | 83 | "Hooks run when a user edit is detected as needing a reparse. |
| 84 | For language specific hooks, make sure you define this as a local | 84 | For language specific hooks, make sure you define this as a local hook. |
| 85 | hook. | 85 | Not used yet; part of the next generation reparse mechanism.") |
| 86 | Not used yet; part of the next generation reparse mechanism") | ||
| 87 | 86 | ||
| 88 | (defvar semantic-no-reparse-needed-change-hook nil | 87 | (defvar semantic-no-reparse-needed-change-hook nil |
| 89 | "Hooks run when a user edit is detected as not needing a reparse. | 88 | "Hooks run when a user edit is detected as not needing a reparse. |
| 90 | If the hook returns non-nil, then declare that a reparse is needed. | 89 | If the hook returns non-nil, then declare that a reparse is needed. |
| 91 | For language specific hooks, make sure you define this as a local | 90 | For language specific hooks, make sure you define this as a local hook. |
| 92 | hook. | ||
| 93 | Not used yet; part of the next generation reparse mechanism.") | 91 | Not used yet; part of the next generation reparse mechanism.") |
| 94 | 92 | ||
| 95 | (defvar semantic-edits-new-change-hooks nil | 93 | (defvar semantic-edits-new-change-hooks nil |
| @@ -307,7 +305,7 @@ See `semantic-edits-change-leaf-tag' for details on parents." | |||
| 307 | (semantic-tag-components (car tags))) | 305 | (semantic-tag-components (car tags))) |
| 308 | ;; Ok, we are completely encompassed within the first tag | 306 | ;; Ok, we are completely encompassed within the first tag |
| 309 | ;; entry, AND that tag has children. This means that change | 307 | ;; entry, AND that tag has children. This means that change |
| 310 | ;; occured outside of all children, but inside some tag | 308 | ;; occurred outside of all children, but inside some tag |
| 311 | ;; with children. | 309 | ;; with children. |
| 312 | (if (or (not (semantic-tag-with-position-p (car list-to-search))) | 310 | (if (or (not (semantic-tag-with-position-p (car list-to-search))) |
| 313 | (> start (semantic-tag-end | 311 | (> start (semantic-tag-end |
| @@ -751,7 +749,7 @@ This function is for internal use by `semantic-edits-incremental-parser'." | |||
| 751 | 749 | ||
| 752 | ;;;; Whitespace change | 750 | ;;;; Whitespace change |
| 753 | ((and (not tags) (not newf-tags)) | 751 | ((and (not tags) (not newf-tags)) |
| 754 | ;; A change that occured outside of any existing tags | 752 | ;; A change that occurred outside of any existing tags |
| 755 | ;; and there are no new tags to replace it. | 753 | ;; and there are no new tags to replace it. |
| 756 | (when semantic-edits-verbose-flag | 754 | (when semantic-edits-verbose-flag |
| 757 | (message "White space changes")) | 755 | (message "White space changes")) |
| @@ -760,7 +758,7 @@ This function is for internal use by `semantic-edits-incremental-parser'." | |||
| 760 | 758 | ||
| 761 | ;;;; New tags in old whitespace area. | 759 | ;;;; New tags in old whitespace area. |
| 762 | ((and (not tags) newf-tags) | 760 | ((and (not tags) newf-tags) |
| 763 | ;; A change occured outside existing tags which added | 761 | ;; A change occurred outside existing tags which added |
| 764 | ;; a new tag. We need to splice these tags back | 762 | ;; a new tag. We need to splice these tags back |
| 765 | ;; into the cache at the right place. | 763 | ;; into the cache at the right place. |
| 766 | (semantic-edits-splice-insert newf-tags parent-tag cache-list) | 764 | (semantic-edits-splice-insert newf-tags parent-tag cache-list) |
| @@ -775,7 +773,7 @@ This function is for internal use by `semantic-edits-incremental-parser'." | |||
| 775 | 773 | ||
| 776 | ;;;; Old tags removed | 774 | ;;;; Old tags removed |
| 777 | ((and tags (not newf-tags)) | 775 | ((and tags (not newf-tags)) |
| 778 | ;; A change occured where pre-existing tags were | 776 | ;; A change occurred where pre-existing tags were |
| 779 | ;; deleted! Remove the tag from the cache. | 777 | ;; deleted! Remove the tag from the cache. |
| 780 | (semantic-edits-splice-remove tags parent-tag cache-list) | 778 | (semantic-edits-splice-remove tags parent-tag cache-list) |
| 781 | 779 | ||
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el index 7f6ddc85bfc..af312494a81 100644 --- a/lisp/cedet/semantic/lex.el +++ b/lisp/cedet/semantic/lex.el | |||
| @@ -900,7 +900,7 @@ START and END define the bounds of the token in the current buffer. | |||
| 900 | Optional STR is the string for the token only if the bounds in | 900 | Optional STR is the string for the token only if the bounds in |
| 901 | the buffer do not cover the string they represent. (As from | 901 | the buffer do not cover the string they represent. (As from |
| 902 | macro expansion.)" | 902 | macro expansion.)" |
| 903 | ;; This if statement checks the existance of a STR argument at | 903 | ;; This if statement checks the existence of a STR argument at |
| 904 | ;; compile time, where STR is some symbol or constant. If the | 904 | ;; compile time, where STR is some symbol or constant. If the |
| 905 | ;; variable STr (runtime) is nil, this will make an incorrect decision. | 905 | ;; variable STr (runtime) is nil, this will make an incorrect decision. |
| 906 | ;; | 906 | ;; |
diff --git a/lisp/cedet/srecode/args.el b/lisp/cedet/srecode/args.el index 30a836c89b2..bb15bf50110 100644 --- a/lisp/cedet/srecode/args.el +++ b/lisp/cedet/srecode/args.el | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | ;; | 33 | ;; |
| 34 | ;; Using :blank means that the template should force blank lines | 34 | ;; Using :blank means that the template should force blank lines |
| 35 | ;; before and after the template, reguardless of where the insertion | 35 | ;; before and after the template, reguardless of where the insertion |
| 36 | ;; is occuring. | 36 | ;; is occurring. |
| 37 | (defun srecode-semantic-handle-:blank (dict) | 37 | (defun srecode-semantic-handle-:blank (dict) |
| 38 | "Add macros into the dictionary DICT specifying blank line spacing. | 38 | "Add macros into the dictionary DICT specifying blank line spacing. |
| 39 | The wrapgap means make sure the first and last lines of the macro | 39 | The wrapgap means make sure the first and last lines of the macro |
diff --git a/lisp/cedet/srecode/insert.el b/lisp/cedet/srecode/insert.el index 4777470d473..1ccd4e8d393 100644 --- a/lisp/cedet/srecode/insert.el +++ b/lisp/cedet/srecode/insert.el | |||
| @@ -201,7 +201,7 @@ Apply anything learned to the dictionary DICT." | |||
| 201 | "Resolve arguments in the argument list ARGS. | 201 | "Resolve arguments in the argument list ARGS. |
| 202 | ARGS is a list of symbols, such as :blank, or :file. | 202 | ARGS is a list of symbols, such as :blank, or :file. |
| 203 | Apply values to DICT. | 203 | Apply values to DICT. |
| 204 | Optional argument TEMP is the template that is getting it's arguments resolved." | 204 | Optional argument TEMP is the template that is getting its arguments resolved." |
| 205 | (let ((fcn nil)) | 205 | (let ((fcn nil)) |
| 206 | (while args | 206 | (while args |
| 207 | (setq fcn (intern-soft (concat "srecode-semantic-handle-" | 207 | (setq fcn (intern-soft (concat "srecode-semantic-handle-" |
| @@ -334,14 +334,14 @@ occur in your template.") | |||
| 334 | ((key :initform "\r" | 334 | ((key :initform "\r" |
| 335 | :allocation :class | 335 | :allocation :class |
| 336 | :documentation | 336 | :documentation |
| 337 | "The character represeinting this inserter style. | 337 | "The character representing this inserter style. |
| 338 | Can't be blank, or it might be used by regular variable insertion.") | 338 | Can't be blank, or it might be used by regular variable insertion.") |
| 339 | (where :initform 'begin | 339 | (where :initform 'begin |
| 340 | :initarg :where | 340 | :initarg :where |
| 341 | :documentation | 341 | :documentation |
| 342 | "This should be 'begin or 'end, indicating where to insrt a CR. | 342 | "This should be 'begin or 'end, indicating where to insert a CR. |
| 343 | When set to 'begin, it will insert a CR if we are not at 'bol'. | 343 | When set to 'begin, it will insert a CR if we are not at 'bol'. |
| 344 | When set to 'end it will insert a CR if we are not at 'eol'") | 344 | When set to 'end it will insert a CR if we are not at 'eol'.") |
| 345 | ;; @TODO - Add slot and control for the number of blank | 345 | ;; @TODO - Add slot and control for the number of blank |
| 346 | ;; lines before and after point. | 346 | ;; lines before and after point. |
| 347 | ) | 347 | ) |
| @@ -407,7 +407,7 @@ Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use." | |||
| 407 | :allocation :class | 407 | :allocation :class |
| 408 | :documentation | 408 | :documentation |
| 409 | "The character code used to identify inserters of this style.")) | 409 | "The character code used to identify inserters of this style.")) |
| 410 | "Insert the value of a dictionary entry | 410 | "Insert the value of a dictionary entry. |
| 411 | If there is no entry, insert nothing.") | 411 | If there is no entry, insert nothing.") |
| 412 | 412 | ||
| 413 | (defvar srecode-inserter-variable-current-dictionary nil | 413 | (defvar srecode-inserter-variable-current-dictionary nil |
| @@ -493,7 +493,7 @@ If SECONDNAME is nil, return VALUE." | |||
| 493 | :documentation | 493 | :documentation |
| 494 | "The function used to read in the text for this prompt.") | 494 | "The function used to read in the text for this prompt.") |
| 495 | ) | 495 | ) |
| 496 | "Insert the value of a dictionary entry | 496 | "Insert the value of a dictionary entry. |
| 497 | If there is no entry, prompt the user for the value to use. | 497 | If there is no entry, prompt the user for the value to use. |
| 498 | The prompt text used is derived from the previous PROMPT command in the | 498 | The prompt text used is derived from the previous PROMPT command in the |
| 499 | template file.") | 499 | template file.") |
| @@ -626,8 +626,8 @@ Use DICTIONARY to resolve values." | |||
| 626 | "The character code used to identify inserters of this style.") | 626 | "The character code used to identify inserters of this style.") |
| 627 | ) | 627 | ) |
| 628 | "Inserts the value of a dictionary variable with a specific width. | 628 | "Inserts the value of a dictionary variable with a specific width. |
| 629 | The second argument specifies the width, and a pad, seperated by a colon. | 629 | The second argument specifies the width, and a pad, separated by a colon. |
| 630 | thus a specification of `10:left' will insert the value of A | 630 | Thus a specification of `10:left' will insert the value of A |
| 631 | to 10 characters, with spaces added to the left. Use `right' for adding | 631 | to 10 characters, with spaces added to the left. Use `right' for adding |
| 632 | spaces to the right.") | 632 | spaces to the right.") |
| 633 | 633 | ||
| @@ -771,7 +771,7 @@ Calls back to `srecode-insert-method-helper' for this class." | |||
| 771 | "The character code used to identify inserters of this style.") | 771 | "The character code used to identify inserters of this style.") |
| 772 | (template :initarg :template | 772 | (template :initarg :template |
| 773 | :documentation | 773 | :documentation |
| 774 | "A Template used to frame the codes from this inserter.") | 774 | "A template used to frame the codes from this inserter.") |
| 775 | ) | 775 | ) |
| 776 | "Apply values from a sub-dictionary to a template section. | 776 | "Apply values from a sub-dictionary to a template section. |
| 777 | The dictionary saved at the named dictionary entry will be | 777 | The dictionary saved at the named dictionary entry will be |
| @@ -806,7 +806,7 @@ Return the remains of INPUT." | |||
| 806 | :documentation | 806 | :documentation |
| 807 | "The character code used to identify inserters of this style.") | 807 | "The character code used to identify inserters of this style.") |
| 808 | ) | 808 | ) |
| 809 | "All template segments between the secion-start and section-end | 809 | "All template segments between the section-start and section-end |
| 810 | are treated specially.") | 810 | are treated specially.") |
| 811 | 811 | ||
| 812 | (defmethod srecode-insert-method ((sti srecode-template-inserter-section-end) | 812 | (defmethod srecode-insert-method ((sti srecode-template-inserter-section-end) |
| @@ -881,7 +881,7 @@ this template instance." | |||
| 881 | (setq active (cdr active))) | 881 | (setq active (cdr active))) |
| 882 | (when (not tmpl) | 882 | (when (not tmpl) |
| 883 | ;; If it wasn't in this context, look to see if it | 883 | ;; If it wasn't in this context, look to see if it |
| 884 | ;; defines it's own context | 884 | ;; defines its own context |
| 885 | (setq tmpl (srecode-template-get-table (srecode-table) | 885 | (setq tmpl (srecode-template-get-table (srecode-table) |
| 886 | templatenamepart))) | 886 | templatenamepart))) |
| 887 | ) | 887 | ) |
| @@ -897,7 +897,7 @@ this template instance." | |||
| 897 | dictionary) | 897 | dictionary) |
| 898 | "Insert the STI inserter. | 898 | "Insert the STI inserter. |
| 899 | Finds the template with this macro function part, and inserts it | 899 | Finds the template with this macro function part, and inserts it |
| 900 | with the dictionaries found in the dictinary." | 900 | with the dictionaries found in the dictionary." |
| 901 | (srecode-insert-include-lookup sti dictionary) | 901 | (srecode-insert-include-lookup sti dictionary) |
| 902 | ;; Insert the template. | 902 | ;; Insert the template. |
| 903 | ;; Our baseclass has a simple way to do this. | 903 | ;; Our baseclass has a simple way to do this. |
| @@ -952,7 +952,7 @@ Arguments ESCAPE-START and ESCAPE-END are the current escape sequences in use." | |||
| 952 | "Insert the template STI. | 952 | "Insert the template STI. |
| 953 | This will first insert the include part via inheritance, then | 953 | This will first insert the include part via inheritance, then |
| 954 | insert the section it wraps into the location in the included | 954 | insert the section it wraps into the location in the included |
| 955 | template where a ^ inserter occurs." | 955 | template where a ^ inserter occurs." |
| 956 | ;; Step 1: Look up the included inserter | 956 | ;; Step 1: Look up the included inserter |
| 957 | (srecode-insert-include-lookup sti dictionary) | 957 | (srecode-insert-include-lookup sti dictionary) |
| 958 | ;; Step 2: Temporarilly override the point inserter. | 958 | ;; Step 2: Temporarilly override the point inserter. |