diff options
Diffstat (limited to 'lisp/cedet')
| -rw-r--r-- | lisp/cedet/cedet-global.el | 3 | ||||
| -rw-r--r-- | lisp/cedet/ede.el | 8 | ||||
| -rw-r--r-- | lisp/cedet/ede/files.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/ede/locate.el | 10 | ||||
| -rw-r--r-- | lisp/cedet/mode-local.el | 24 | ||||
| -rw-r--r-- | lisp/cedet/semantic.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/bovine/c.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/db-find.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/doc.el | 6 | ||||
| -rw-r--r-- | lisp/cedet/semantic/find.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/fw.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/lex.el | 4 | ||||
| -rw-r--r-- | lisp/cedet/semantic/sort.el | 2 | ||||
| -rw-r--r-- | lisp/cedet/semantic/symref.el | 14 | ||||
| -rw-r--r-- | lisp/cedet/semantic/tag.el | 24 |
15 files changed, 50 insertions, 67 deletions
diff --git a/lisp/cedet/cedet-global.el b/lisp/cedet/cedet-global.el index 3ceed5d3b54..77ffef037f1 100644 --- a/lisp/cedet/cedet-global.el +++ b/lisp/cedet/cedet-global.el | |||
| @@ -104,7 +104,8 @@ SCOPE is the scope of the search, such as 'project or 'subdirs." | |||
| 104 | 104 | ||
| 105 | (defun cedet-gnu-global-expand-filename (filename) | 105 | (defun cedet-gnu-global-expand-filename (filename) |
| 106 | "Expand the FILENAME with GNU Global. | 106 | "Expand the FILENAME with GNU Global. |
| 107 | Return a fully qualified filename." | 107 | Return a list of absolute filenames or nil if none found. |
| 108 | Signal an error if Gnu global not available." | ||
| 108 | (interactive "sFile: ") | 109 | (interactive "sFile: ") |
| 109 | (let ((ans (with-current-buffer (cedet-gnu-global-call (list "-Pa" filename)) | 110 | (let ((ans (with-current-buffer (cedet-gnu-global-call (list "-Pa" filename)) |
| 110 | (goto-char (point-min)) | 111 | (goto-char (point-min)) |
diff --git a/lisp/cedet/ede.el b/lisp/cedet/ede.el index 76ec3567c63..2a522bcccd8 100644 --- a/lisp/cedet/ede.el +++ b/lisp/cedet/ede.el | |||
| @@ -81,12 +81,12 @@ | |||
| 81 | "Whether a new source file should be automatically added to a target. | 81 | "Whether a new source file should be automatically added to a target. |
| 82 | Whenever a new file is encountered in a directory controlled by a | 82 | Whenever a new file is encountered in a directory controlled by a |
| 83 | project file, all targets are queried to see if it should be added. | 83 | project file, all targets are queried to see if it should be added. |
| 84 | If the value is 'always, then the new file is added to the first | 84 | If the value is `always', then the new file is added to the first |
| 85 | target encountered. If the value is 'multi-ask, then if more than one | 85 | target encountered. If the value is `multi-ask', then if more than one |
| 86 | target wants the file, the user is asked. If only one target wants | 86 | target wants the file, the user is asked. If only one target wants |
| 87 | the file, then it is automatically added to that target. If the | 87 | the file, then it is automatically added to that target. If the |
| 88 | value is 'ask, then the user is always asked, unless there is no | 88 | value is `ask', then the user is always asked, unless there is no |
| 89 | target willing to take the file. 'never means never perform the check." | 89 | target willing to take the file. `never' means never perform the check." |
| 90 | :group 'ede | 90 | :group 'ede |
| 91 | :type '(choice (const always) | 91 | :type '(choice (const always) |
| 92 | (const multi-ask) | 92 | (const multi-ask) |
diff --git a/lisp/cedet/ede/files.el b/lisp/cedet/ede/files.el index 4ba823adeee..81a1a6adf2e 100644 --- a/lisp/cedet/ede/files.el +++ b/lisp/cedet/ede/files.el | |||
| @@ -304,7 +304,7 @@ Do this whenever a new project is created, as opposed to loaded." | |||
| 304 | ;; instead so that -P can be obsoleted. | 304 | ;; instead so that -P can be obsoleted. |
| 305 | (defun ede-directory-project-p (dir &optional force) | 305 | (defun ede-directory-project-p (dir &optional force) |
| 306 | "Return a project description object if DIR is in a project. | 306 | "Return a project description object if DIR is in a project. |
| 307 | Optional argument FORCE means to ignore a hash-hit of 'nomatch. | 307 | Optional argument FORCE means to ignore a hash-hit of `nomatch'. |
| 308 | This depends on an up to date `ede-project-class-files' variable. | 308 | This depends on an up to date `ede-project-class-files' variable. |
| 309 | Any directory that contains the file .ede-ignore will always | 309 | Any directory that contains the file .ede-ignore will always |
| 310 | return nil. | 310 | return nil. |
diff --git a/lisp/cedet/ede/locate.el b/lisp/cedet/ede/locate.el index a076c46513c..cee2f8ec419 100644 --- a/lisp/cedet/ede/locate.el +++ b/lisp/cedet/ede/locate.el | |||
| @@ -100,9 +100,9 @@ based on `ede-locate-setup-options'." | |||
| 100 | (defclass ede-locate-base () | 100 | (defclass ede-locate-base () |
| 101 | ((root :initarg :root | 101 | ((root :initarg :root |
| 102 | :documentation | 102 | :documentation |
| 103 | "The root of these locat searches.") | 103 | "The root of these locate searches.") |
| 104 | (file :documentation | 104 | (file :documentation |
| 105 | "The last file search for with EDE locate.") | 105 | "The last file searched for with EDE locate.") |
| 106 | (lastanswer :documentation | 106 | (lastanswer :documentation |
| 107 | "The last answer provided by the locator.") | 107 | "The last answer provided by the locator.") |
| 108 | (hash :documentation | 108 | (hash :documentation |
| @@ -245,10 +245,8 @@ variable `cedet-global-command'.") | |||
| 245 | newroot)) | 245 | newroot)) |
| 246 | 246 | ||
| 247 | (cl-defmethod ede-locate-file-in-project-impl ((loc ede-locate-global) | 247 | (cl-defmethod ede-locate-file-in-project-impl ((loc ede-locate-global) |
| 248 | filesubstring) | 248 | filesubstring) |
| 249 | "Locate with LOC occurrences of FILESUBSTRING under PROJECTROOT. | 249 | "Locate occurrences of FILESUBSTRING in LOC, using Gnu Global." |
| 250 | Searches are done under the current root of the EDE project | ||
| 251 | that created this EDE locate object." | ||
| 252 | (require 'cedet-global) | 250 | (require 'cedet-global) |
| 253 | (let ((default-directory (oref loc root))) | 251 | (let ((default-directory (oref loc root))) |
| 254 | (cedet-gnu-global-expand-filename filesubstring))) | 252 | (cedet-gnu-global-expand-filename filesubstring))) |
diff --git a/lisp/cedet/mode-local.el b/lisp/cedet/mode-local.el index b5995ffa397..48e73c20923 100644 --- a/lisp/cedet/mode-local.el +++ b/lisp/cedet/mode-local.el | |||
| @@ -627,7 +627,8 @@ SYMBOL is a function that can be overridden." | |||
| 627 | (beginning-of-line) | 627 | (beginning-of-line) |
| 628 | (forward-line -1)) | 628 | (forward-line -1)) |
| 629 | (let ((inhibit-read-only t)) | 629 | (let ((inhibit-read-only t)) |
| 630 | (insert (overload-docstring-extension symbol) "\n") | 630 | (insert (substitute-command-keys (overload-docstring-extension symbol)) |
| 631 | "\n") | ||
| 631 | ;; NOTE TO SELF: | 632 | ;; NOTE TO SELF: |
| 632 | ;; LIST ALL LOADED OVERRIDES FOR SYMBOL HERE | 633 | ;; LIST ALL LOADED OVERRIDES FOR SYMBOL HERE |
| 633 | ))) | 634 | ))) |
| @@ -641,7 +642,8 @@ SYMBOL is a function that can be overridden." | |||
| 641 | (fetch-overload symbol))) | 642 | (fetch-overload symbol))) |
| 642 | modes) | 643 | modes) |
| 643 | 644 | ||
| 644 | (insert (overload-docstring-extension symbol) "\n\n") | 645 | (insert (substitute-command-keys (overload-docstring-extension symbol)) |
| 646 | "\n\n") | ||
| 645 | (insert (format-message "default function: `%s'\n" default)) | 647 | (insert (format-message "default function: `%s'\n" default)) |
| 646 | (if override | 648 | (if override |
| 647 | (insert (format-message "\noverride in buffer `%s': `%s'\n" | 649 | (insert (format-message "\noverride in buffer `%s': `%s'\n" |
| @@ -872,24 +874,6 @@ invoked interactively." | |||
| 872 | (when (setq mode (intern-soft mode)) | 874 | (when (setq mode (intern-soft mode)) |
| 873 | (mode-local-describe-bindings-1 mode (called-interactively-p 'any)))) | 875 | (mode-local-describe-bindings-1 mode (called-interactively-p 'any)))) |
| 874 | 876 | ||
| 875 | ;; ;;; find-func support (Emacs 21.4, or perhaps 22.1) | ||
| 876 | ;; ;; | ||
| 877 | ;; (condition-case nil | ||
| 878 | ;; ;; Try to get find-func so we can modify it. | ||
| 879 | ;; (require 'find-func) | ||
| 880 | ;; (error nil)) | ||
| 881 | |||
| 882 | ;; (when (boundp 'find-function-regexp) | ||
| 883 | ;; (unless (string-match "ine-overload" find-function-regexp) | ||
| 884 | ;; (if (string-match "(def\\\\(" find-function-regexp) | ||
| 885 | ;; (let ((end (match-end 0)) | ||
| 886 | ;; ) | ||
| 887 | ;; (setq find-function-regexp | ||
| 888 | ;; (concat (substring find-function-regexp 0 end) | ||
| 889 | ;; "ine-overload\\|ine-mode-local-override\\|" | ||
| 890 | ;; "ine-child-mode\\|" | ||
| 891 | ;; (substring find-function-regexp end))))))) | ||
| 892 | |||
| 893 | ;;; edebug support | 877 | ;;; edebug support |
| 894 | ;; | 878 | ;; |
| 895 | (defun mode-local-setup-edebug-specs () | 879 | (defun mode-local-setup-edebug-specs () |
diff --git a/lisp/cedet/semantic.el b/lisp/cedet/semantic.el index 290cd907beb..a9af84af3d4 100644 --- a/lisp/cedet/semantic.el +++ b/lisp/cedet/semantic.el | |||
| @@ -1191,7 +1191,7 @@ This function can be used by `completion-at-point-functions'." | |||
| 1191 | (defun semantic-analyze-notc-completion-at-point-function () | 1191 | (defun semantic-analyze-notc-completion-at-point-function () |
| 1192 | "Return possible analysis completions at point. | 1192 | "Return possible analysis completions at point. |
| 1193 | The completions provided are via `semantic-analyze-possible-completions', | 1193 | The completions provided are via `semantic-analyze-possible-completions', |
| 1194 | but with the 'no-tc option passed in, which means constraints based | 1194 | but with the `no-tc' option passed in, which means constraints based |
| 1195 | on what is being assigned to are ignored. | 1195 | on what is being assigned to are ignored. |
| 1196 | This function can be used by `completion-at-point-functions'." | 1196 | This function can be used by `completion-at-point-functions'." |
| 1197 | (when (semantic-active-p) | 1197 | (when (semantic-active-p) |
| @@ -1207,7 +1207,7 @@ This function can be used by `completion-at-point-functions'." | |||
| 1207 | (defun semantic-analyze-nolongprefix-completion-at-point-function () | 1207 | (defun semantic-analyze-nolongprefix-completion-at-point-function () |
| 1208 | "Return possible analysis completions at point. | 1208 | "Return possible analysis completions at point. |
| 1209 | The completions provided are via `semantic-analyze-possible-completions', | 1209 | The completions provided are via `semantic-analyze-possible-completions', |
| 1210 | but with the 'no-tc and 'no-longprefix option passed in, which means | 1210 | but with the `no-tc' and `no-longprefix' option passed in, which means |
| 1211 | constraints resulting in a long multi-symbol dereference are ignored. | 1211 | constraints resulting in a long multi-symbol dereference are ignored. |
| 1212 | This function can be used by `completion-at-point-functions'." | 1212 | This function can be used by `completion-at-point-functions'." |
| 1213 | (when (semantic-active-p) | 1213 | (when (semantic-active-p) |
diff --git a/lisp/cedet/semantic/bovine/c.el b/lisp/cedet/semantic/bovine/c.el index 1c25c7b0808..d5af635d14c 100644 --- a/lisp/cedet/semantic/bovine/c.el +++ b/lisp/cedet/semantic/bovine/c.el | |||
| @@ -1513,7 +1513,7 @@ Override function for `semantic-tag-protection'." | |||
| 1513 | 1513 | ||
| 1514 | (define-mode-local-override semantic-find-tags-included c-mode | 1514 | (define-mode-local-override semantic-find-tags-included c-mode |
| 1515 | (&optional table) | 1515 | (&optional table) |
| 1516 | "Find all tags in TABLE that are of the 'include class. | 1516 | "Find all tags in TABLE that are of the `include' class. |
| 1517 | TABLE is a tag table. See `semantic-something-to-tag-table'. | 1517 | TABLE is a tag table. See `semantic-something-to-tag-table'. |
| 1518 | For C++, we also have to search namespaces for include tags." | 1518 | For C++, we also have to search namespaces for include tags." |
| 1519 | (let ((tags (semantic-find-tags-by-class 'include table)) | 1519 | (let ((tags (semantic-find-tags-by-class 'include table)) |
| @@ -1948,7 +1948,7 @@ For types with a :parent, create faux namespaces to put TAG into." | |||
| 1948 | (define-mode-local-override semanticdb-find-table-for-include c-mode | 1948 | (define-mode-local-override semanticdb-find-table-for-include c-mode |
| 1949 | (includetag &optional table) | 1949 | (includetag &optional table) |
| 1950 | "For a single INCLUDETAG found in TABLE, find a `semanticdb-table' object | 1950 | "For a single INCLUDETAG found in TABLE, find a `semanticdb-table' object |
| 1951 | INCLUDETAG is a semantic TAG of class 'include. | 1951 | INCLUDETAG is a semantic TAG of class `include'. |
| 1952 | TABLE is a semanticdb table that identifies where INCLUDETAG came from. | 1952 | TABLE is a semanticdb table that identifies where INCLUDETAG came from. |
| 1953 | TABLE is optional if INCLUDETAG has an overlay of :filename attribute. | 1953 | TABLE is optional if INCLUDETAG has an overlay of :filename attribute. |
| 1954 | 1954 | ||
diff --git a/lisp/cedet/semantic/db-find.el b/lisp/cedet/semantic/db-find.el index 293f535d60b..e5ce4cf233c 100644 --- a/lisp/cedet/semantic/db-find.el +++ b/lisp/cedet/semantic/db-find.el | |||
| @@ -316,7 +316,7 @@ Default action as described in `semanticdb-find-translate-path'." | |||
| 316 | ;;;###autoload | 316 | ;;;###autoload |
| 317 | (define-overloadable-function semanticdb-find-table-for-include (includetag &optional table) | 317 | (define-overloadable-function semanticdb-find-table-for-include (includetag &optional table) |
| 318 | "For a single INCLUDETAG found in TABLE, find a `semanticdb-table' object | 318 | "For a single INCLUDETAG found in TABLE, find a `semanticdb-table' object |
| 319 | INCLUDETAG is a semantic TAG of class 'include. | 319 | INCLUDETAG is a semantic TAG of class `include'. |
| 320 | TABLE is a semanticdb table that identifies where INCLUDETAG came from. | 320 | TABLE is a semanticdb table that identifies where INCLUDETAG came from. |
| 321 | TABLE is optional if INCLUDETAG has an overlay of :filename attribute." | 321 | TABLE is optional if INCLUDETAG has an overlay of :filename attribute." |
| 322 | ) | 322 | ) |
| @@ -854,7 +854,7 @@ This makes it appear more like the results of a `semantic-find-' call. | |||
| 854 | Optional FIND-FILE-MATCH loads all files associated with RESULTS | 854 | Optional FIND-FILE-MATCH loads all files associated with RESULTS |
| 855 | into buffers. This has the side effect of enabling `semantic-tag-buffer' to | 855 | into buffers. This has the side effect of enabling `semantic-tag-buffer' to |
| 856 | return a value. | 856 | return a value. |
| 857 | If FIND-FILE-MATCH is 'name, then only the filename is stored | 857 | If FIND-FILE-MATCH is `name', then only the filename is stored |
| 858 | in each tag instead of loading each file into a buffer. | 858 | in each tag instead of loading each file into a buffer. |
| 859 | If the input RESULTS are not going to be used again, and if | 859 | If the input RESULTS are not going to be used again, and if |
| 860 | FIND-FILE-MATCH is nil, you can use `semanticdb-fast-strip-find-results' | 860 | FIND-FILE-MATCH is nil, you can use `semanticdb-fast-strip-find-results' |
diff --git a/lisp/cedet/semantic/doc.el b/lisp/cedet/semantic/doc.el index 3ceb3510ad2..65718a0532e 100644 --- a/lisp/cedet/semantic/doc.el +++ b/lisp/cedet/semantic/doc.el | |||
| @@ -41,7 +41,7 @@ some documentation in a comment preceding TAG's definition which we | |||
| 41 | can look for. When appropriate, this can be overridden by a language specific | 41 | can look for. When appropriate, this can be overridden by a language specific |
| 42 | enhancement. | 42 | enhancement. |
| 43 | Optional argument NOSNARF means to only return the lexical analyzer token for it. | 43 | Optional argument NOSNARF means to only return the lexical analyzer token for it. |
| 44 | If nosnarf if 'lex, then only return the lex token." | 44 | If NOSNARF is `lex', then only return the lex token." |
| 45 | (if (not tag) (setq tag (semantic-current-tag))) | 45 | (if (not tag) (setq tag (semantic-current-tag))) |
| 46 | (save-excursion | 46 | (save-excursion |
| 47 | (when (semantic-tag-with-position-p tag) | 47 | (when (semantic-tag-with-position-p tag) |
| @@ -66,7 +66,7 @@ If nosnarf if 'lex, then only return the lex token." | |||
| 66 | If TAG is nil. use the tag under point. | 66 | If TAG is nil. use the tag under point. |
| 67 | Searches the space between TAG and the preceding tag for a comment, | 67 | Searches the space between TAG and the preceding tag for a comment, |
| 68 | and converts the comment into clean documentation. | 68 | and converts the comment into clean documentation. |
| 69 | Optional argument NOSNARF with a value of 'lex means to return | 69 | Optional argument NOSNARF with a value of `lex' means to return |
| 70 | just the lexical token and not the string." | 70 | just the lexical token and not the string." |
| 71 | (if (not tag) (setq tag (semantic-current-tag))) | 71 | (if (not tag) (setq tag (semantic-current-tag))) |
| 72 | (save-excursion | 72 | (save-excursion |
| @@ -92,7 +92,7 @@ just the lexical token and not the string." | |||
| 92 | "Snarf up the comment at POINT for `semantic-documentation-for-tag'. | 92 | "Snarf up the comment at POINT for `semantic-documentation-for-tag'. |
| 93 | Attempt to strip out comment syntactic sugar. | 93 | Attempt to strip out comment syntactic sugar. |
| 94 | Argument NOSNARF means don't modify the found text. | 94 | Argument NOSNARF means don't modify the found text. |
| 95 | If NOSNARF is 'lex, then return the lex token." | 95 | If NOSNARF is `lex', then return the lex token." |
| 96 | (let* ((semantic-ignore-comments nil) | 96 | (let* ((semantic-ignore-comments nil) |
| 97 | (semantic-lex-analyzer #'semantic-comment-lexer)) | 97 | (semantic-lex-analyzer #'semantic-comment-lexer)) |
| 98 | (if (memq nosnarf '(lex flex)) ;; keep `flex' for compatibility | 98 | (if (memq nosnarf '(lex flex)) ;; keep `flex' for compatibility |
diff --git a/lisp/cedet/semantic/find.el b/lisp/cedet/semantic/find.el index fdd5f5290f1..5450ac953f6 100644 --- a/lisp/cedet/semantic/find.el +++ b/lisp/cedet/semantic/find.el | |||
| @@ -378,11 +378,11 @@ See `semantic-tag-protected-p' for details on which tags are returned." | |||
| 378 | 378 | ||
| 379 | ;;;###autoload | 379 | ;;;###autoload |
| 380 | (define-overloadable-function semantic-find-tags-included (&optional table) | 380 | (define-overloadable-function semantic-find-tags-included (&optional table) |
| 381 | "Find all tags in TABLE that are of the 'include class. | 381 | "Find all tags in TABLE that are of the `include' class. |
| 382 | TABLE is a tag table. See `semantic-something-to-tag-table'.") | 382 | TABLE is a tag table. See `semantic-something-to-tag-table'.") |
| 383 | 383 | ||
| 384 | (defun semantic-find-tags-included-default (&optional table) | 384 | (defun semantic-find-tags-included-default (&optional table) |
| 385 | "Find all tags in TABLE that are of the 'include class. | 385 | "Find all tags in TABLE that are of the `include' class. |
| 386 | TABLE is a tag table. See `semantic-something-to-tag-table'. | 386 | TABLE is a tag table. See `semantic-something-to-tag-table'. |
| 387 | By default, just call `semantic-find-tags-by-class'." | 387 | By default, just call `semantic-find-tags-by-class'." |
| 388 | (semantic-find-tags-by-class 'include table)) | 388 | (semantic-find-tags-by-class 'include table)) |
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el index d8ba6f275f3..fed50fb5dfa 100644 --- a/lisp/cedet/semantic/fw.el +++ b/lisp/cedet/semantic/fw.el | |||
| @@ -171,7 +171,7 @@ That is remove the unsupported :help stuff." | |||
| 171 | NAME specifies a special name that can be searched for later to | 171 | NAME specifies a special name that can be searched for later to |
| 172 | recover the cached data with `semantic-get-cache-data'. | 172 | recover the cached data with `semantic-get-cache-data'. |
| 173 | LIFESPAN indicates how long the data cache will be remembered. | 173 | LIFESPAN indicates how long the data cache will be remembered. |
| 174 | The default LIFESPAN is 'end-of-command. | 174 | The default LIFESPAN is `end-of-command'. |
| 175 | Possible Lifespans are: | 175 | Possible Lifespans are: |
| 176 | `end-of-command' - Remove the cache at the end of the currently | 176 | `end-of-command' - Remove the cache at the end of the currently |
| 177 | executing command. | 177 | executing command. |
| @@ -193,7 +193,7 @@ Possible Lifespans are: | |||
| 193 | )) | 193 | )) |
| 194 | 194 | ||
| 195 | (defun semantic-cache-data-post-command-hook () | 195 | (defun semantic-cache-data-post-command-hook () |
| 196 | "Flush `semantic-cache-data-overlays' based 'lifespan property. | 196 | "Flush `semantic-cache-data-overlays' based `lifespan' property. |
| 197 | Remove self from `post-command-hook' if it is empty." | 197 | Remove self from `post-command-hook' if it is empty." |
| 198 | (let ((newcache nil) | 198 | (let ((newcache nil) |
| 199 | (oldcache semantic-cache-data-overlays)) | 199 | (oldcache semantic-cache-data-overlays)) |
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el index 7738e06ff88..c8645c2b7d3 100644 --- a/lisp/cedet/semantic/lex.el +++ b/lisp/cedet/semantic/lex.el | |||
| @@ -1815,13 +1815,13 @@ to keep comments as part of the token stream.") | |||
| 1815 | (make-variable-buffer-local 'semantic-ignore-comments) | 1815 | (make-variable-buffer-local 'semantic-ignore-comments) |
| 1816 | 1816 | ||
| 1817 | (defvar semantic-flex-enable-newlines nil | 1817 | (defvar semantic-flex-enable-newlines nil |
| 1818 | "When flexing, report 'newlines as syntactic elements. | 1818 | "When flexing, report newlines as syntactic elements. |
| 1819 | Useful for languages where the newline is a special case terminator. | 1819 | Useful for languages where the newline is a special case terminator. |
| 1820 | Only set this on a per mode basis, not globally.") | 1820 | Only set this on a per mode basis, not globally.") |
| 1821 | (make-variable-buffer-local 'semantic-flex-enable-newlines) | 1821 | (make-variable-buffer-local 'semantic-flex-enable-newlines) |
| 1822 | 1822 | ||
| 1823 | (defvar semantic-flex-enable-whitespace nil | 1823 | (defvar semantic-flex-enable-whitespace nil |
| 1824 | "When flexing, report 'whitespace as syntactic elements. | 1824 | "When flexing, report whitespace as syntactic elements. |
| 1825 | Useful for languages where the syntax is whitespace dependent. | 1825 | Useful for languages where the syntax is whitespace dependent. |
| 1826 | Only set this on a per mode basis, not globally.") | 1826 | Only set this on a per mode basis, not globally.") |
| 1827 | (make-variable-buffer-local 'semantic-flex-enable-whitespace) | 1827 | (make-variable-buffer-local 'semantic-flex-enable-whitespace) |
diff --git a/lisp/cedet/semantic/sort.el b/lisp/cedet/semantic/sort.el index 587d084701d..22826635986 100644 --- a/lisp/cedet/semantic/sort.el +++ b/lisp/cedet/semantic/sort.el | |||
| @@ -453,7 +453,7 @@ has some sort of label defining a parent. The parent return will | |||
| 453 | be a string. | 453 | be a string. |
| 454 | 454 | ||
| 455 | The default behavior, if not overridden with | 455 | The default behavior, if not overridden with |
| 456 | `tag-member-parent' gets the 'parent extra | 456 | `tag-member-parent' gets the `parent' extra |
| 457 | specifier of TAG. | 457 | specifier of TAG. |
| 458 | 458 | ||
| 459 | If this function is overridden, use | 459 | If this function is overridden, use |
diff --git a/lisp/cedet/semantic/symref.el b/lisp/cedet/semantic/symref.el index 89e8b40632d..04684035ac0 100644 --- a/lisp/cedet/semantic/symref.el +++ b/lisp/cedet/semantic/symref.el | |||
| @@ -101,7 +101,7 @@ If no tools are supported, then 'grep is assumed.") | |||
| 101 | 101 | ||
| 102 | (defun semantic-symref-calculate-rootdir () | 102 | (defun semantic-symref-calculate-rootdir () |
| 103 | "Calculate the root directory for a symref search. | 103 | "Calculate the root directory for a symref search. |
| 104 | Start with and EDE project, or use the default directory." | 104 | Start with an EDE project, or use the default directory." |
| 105 | (let* ((rootproj (when (and (featurep 'ede) ede-minor-mode) | 105 | (let* ((rootproj (when (and (featurep 'ede) ede-minor-mode) |
| 106 | (ede-toplevel))) | 106 | (ede-toplevel))) |
| 107 | (rootdirbase (if rootproj | 107 | (rootdirbase (if rootproj |
| @@ -162,7 +162,7 @@ ARGS are the initialization arguments to pass to the created class." | |||
| 162 | ;;;###autoload | 162 | ;;;###autoload |
| 163 | (defun semantic-symref-find-references-by-name (name &optional scope tool-return) | 163 | (defun semantic-symref-find-references-by-name (name &optional scope tool-return) |
| 164 | "Find a list of references to NAME in the current project. | 164 | "Find a list of references to NAME in the current project. |
| 165 | Optional SCOPE specifies which file set to search. Defaults to 'project. | 165 | Optional SCOPE specifies which file set to search. Defaults to `project'. |
| 166 | Refers to `semantic-symref-tool', to determine the reference tool to use | 166 | Refers to `semantic-symref-tool', to determine the reference tool to use |
| 167 | for the current buffer. | 167 | for the current buffer. |
| 168 | Returns an object of class `semantic-symref-result'. | 168 | Returns an object of class `semantic-symref-result'. |
| @@ -186,7 +186,7 @@ to perform the search. This was added for use by a test harness." | |||
| 186 | ;;;###autoload | 186 | ;;;###autoload |
| 187 | (defun semantic-symref-find-tags-by-name (name &optional scope) | 187 | (defun semantic-symref-find-tags-by-name (name &optional scope) |
| 188 | "Find a list of tags by NAME in the current project. | 188 | "Find a list of tags by NAME in the current project. |
| 189 | Optional SCOPE specifies which file set to search. Defaults to 'project. | 189 | Optional SCOPE specifies which file set to search. Defaults to `project'. |
| 190 | Refers to `semantic-symref-tool', to determine the reference tool to use | 190 | Refers to `semantic-symref-tool', to determine the reference tool to use |
| 191 | for the current buffer. | 191 | for the current buffer. |
| 192 | Returns an object of class `semantic-symref-result'." | 192 | Returns an object of class `semantic-symref-result'." |
| @@ -206,7 +206,7 @@ Returns an object of class `semantic-symref-result'." | |||
| 206 | ;;;###autoload | 206 | ;;;###autoload |
| 207 | (defun semantic-symref-find-tags-by-regexp (name &optional scope) | 207 | (defun semantic-symref-find-tags-by-regexp (name &optional scope) |
| 208 | "Find a list of references to NAME in the current project. | 208 | "Find a list of references to NAME in the current project. |
| 209 | Optional SCOPE specifies which file set to search. Defaults to 'project. | 209 | Optional SCOPE specifies which file set to search. Defaults to `project'. |
| 210 | Refers to `semantic-symref-tool', to determine the reference tool to use | 210 | Refers to `semantic-symref-tool', to determine the reference tool to use |
| 211 | for the current buffer. | 211 | for the current buffer. |
| 212 | Returns an object of class `semantic-symref-result'." | 212 | Returns an object of class `semantic-symref-result'." |
| @@ -226,7 +226,7 @@ Returns an object of class `semantic-symref-result'." | |||
| 226 | ;;;###autoload | 226 | ;;;###autoload |
| 227 | (defun semantic-symref-find-tags-by-completion (name &optional scope) | 227 | (defun semantic-symref-find-tags-by-completion (name &optional scope) |
| 228 | "Find a list of references to NAME in the current project. | 228 | "Find a list of references to NAME in the current project. |
| 229 | Optional SCOPE specifies which file set to search. Defaults to 'project. | 229 | Optional SCOPE specifies which file set to search. Defaults to `project'. |
| 230 | Refers to `semantic-symref-tool', to determine the reference tool to use | 230 | Refers to `semantic-symref-tool', to determine the reference tool to use |
| 231 | for the current buffer. | 231 | for the current buffer. |
| 232 | Returns an object of class `semantic-symref-result'." | 232 | Returns an object of class `semantic-symref-result'." |
| @@ -246,7 +246,7 @@ Returns an object of class `semantic-symref-result'." | |||
| 246 | ;;;###autoload | 246 | ;;;###autoload |
| 247 | (defun semantic-symref-find-file-references-by-name (name &optional scope) | 247 | (defun semantic-symref-find-file-references-by-name (name &optional scope) |
| 248 | "Find a list of references to NAME in the current project. | 248 | "Find a list of references to NAME in the current project. |
| 249 | Optional SCOPE specifies which file set to search. Defaults to 'project. | 249 | Optional SCOPE specifies which file set to search. Defaults to `project'. |
| 250 | Refers to `semantic-symref-tool', to determine the reference tool to use | 250 | Refers to `semantic-symref-tool', to determine the reference tool to use |
| 251 | for the current buffer. | 251 | for the current buffer. |
| 252 | Returns an object of class `semantic-symref-result'." | 252 | Returns an object of class `semantic-symref-result'." |
| @@ -267,7 +267,7 @@ Returns an object of class `semantic-symref-result'." | |||
| 267 | (defun semantic-symref-find-text (text &optional scope) | 267 | (defun semantic-symref-find-text (text &optional scope) |
| 268 | "Find a list of occurrences of TEXT in the current project. | 268 | "Find a list of occurrences of TEXT in the current project. |
| 269 | TEXT is a regexp formatted for use with egrep. | 269 | TEXT is a regexp formatted for use with egrep. |
| 270 | Optional SCOPE specifies which file set to search. Defaults to 'project. | 270 | Optional SCOPE specifies which file set to search. Defaults to `project'. |
| 271 | Refers to `semantic-symref-tool', to determine the reference tool to use | 271 | Refers to `semantic-symref-tool', to determine the reference tool to use |
| 272 | for the current buffer. | 272 | for the current buffer. |
| 273 | Returns an object of class `semantic-symref-result'." | 273 | Returns an object of class `semantic-symref-result'." |
diff --git a/lisp/cedet/semantic/tag.el b/lisp/cedet/semantic/tag.el index 34fc8ba92ce..f53f5d201be 100644 --- a/lisp/cedet/semantic/tag.el +++ b/lisp/cedet/semantic/tag.el | |||
| @@ -375,7 +375,7 @@ Optional argument IGNORABLE-ATTRIBUTES is passed down to | |||
| 375 | 375 | ||
| 376 | (defun semantic-tag-of-type-p (tag type) | 376 | (defun semantic-tag-of-type-p (tag type) |
| 377 | "Compare TAG's type against TYPE. Non nil if equivalent. | 377 | "Compare TAG's type against TYPE. Non nil if equivalent. |
| 378 | TYPE can be a string, or a tag of class 'type. | 378 | TYPE can be a string, or a tag of class `type'. |
| 379 | This can be complex since some tags might have a :type that is a tag, | 379 | This can be complex since some tags might have a :type that is a tag, |
| 380 | while other tags might just have a string. This function will also be | 380 | while other tags might just have a string. This function will also be |
| 381 | return true of TAG's type is compared directly to the declaration of a | 381 | return true of TAG's type is compared directly to the declaration of a |
| @@ -462,12 +462,12 @@ pairs eliminated: | |||
| 462 | "Create a generic semantic tag. | 462 | "Create a generic semantic tag. |
| 463 | NAME is a string representing the name of this tag. | 463 | NAME is a string representing the name of this tag. |
| 464 | CLASS is the symbol that represents the class of tag this is, | 464 | CLASS is the symbol that represents the class of tag this is, |
| 465 | such as 'variable, or 'function. | 465 | such as `variable', or `function'. |
| 466 | ATTRIBUTES is a list of additional attributes belonging to this tag." | 466 | ATTRIBUTES is a list of additional attributes belonging to this tag." |
| 467 | (list name class (semantic-tag-make-plist attributes) nil nil)) | 467 | (list name class (semantic-tag-make-plist attributes) nil nil)) |
| 468 | 468 | ||
| 469 | (defsubst semantic-tag-new-variable (name type &optional default-value &rest attributes) | 469 | (defsubst semantic-tag-new-variable (name type &optional default-value &rest attributes) |
| 470 | "Create a semantic tag of class 'variable. | 470 | "Create a semantic tag of class `variable'. |
| 471 | NAME is the name of this variable. | 471 | NAME is the name of this variable. |
| 472 | TYPE is a string or semantic tag representing the type of this variable. | 472 | TYPE is a string or semantic tag representing the type of this variable. |
| 473 | Optional DEFAULT-VALUE is a string representing the default value of this | 473 | Optional DEFAULT-VALUE is a string representing the default value of this |
| @@ -479,7 +479,7 @@ tag." | |||
| 479 | attributes)) | 479 | attributes)) |
| 480 | 480 | ||
| 481 | (defsubst semantic-tag-new-function (name type arg-list &rest attributes) | 481 | (defsubst semantic-tag-new-function (name type arg-list &rest attributes) |
| 482 | "Create a semantic tag of class 'function. | 482 | "Create a semantic tag of class `function'. |
| 483 | NAME is the name of this function. | 483 | NAME is the name of this function. |
| 484 | TYPE is a string or semantic tag representing the type of this function. | 484 | TYPE is a string or semantic tag representing the type of this function. |
| 485 | ARG-LIST is a list of strings or semantic tags representing the | 485 | ARG-LIST is a list of strings or semantic tags representing the |
| @@ -491,7 +491,7 @@ ATTRIBUTES is a list of additional attributes belonging to this tag." | |||
| 491 | attributes)) | 491 | attributes)) |
| 492 | 492 | ||
| 493 | (defsubst semantic-tag-new-type (name type members parents &rest attributes) | 493 | (defsubst semantic-tag-new-type (name type members parents &rest attributes) |
| 494 | "Create a semantic tag of class 'type. | 494 | "Create a semantic tag of class `type'. |
| 495 | NAME is the name of this type. | 495 | NAME is the name of this type. |
| 496 | TYPE is a string or semantic tag representing the type of this type. | 496 | TYPE is a string or semantic tag representing the type of this type. |
| 497 | MEMBERS is a list of strings or semantic tags representing the | 497 | MEMBERS is a list of strings or semantic tags representing the |
| @@ -516,7 +516,7 @@ ATTRIBUTES is a list of additional attributes belonging to this tag." | |||
| 516 | attributes)) | 516 | attributes)) |
| 517 | 517 | ||
| 518 | (defsubst semantic-tag-new-include (name system-flag &rest attributes) | 518 | (defsubst semantic-tag-new-include (name system-flag &rest attributes) |
| 519 | "Create a semantic tag of class 'include. | 519 | "Create a semantic tag of class `include'. |
| 520 | NAME is the name of this include. | 520 | NAME is the name of this include. |
| 521 | SYSTEM-FLAG represents that we were able to identify this include as belonging | 521 | SYSTEM-FLAG represents that we were able to identify this include as belonging |
| 522 | to the system, as opposed to belonging to the local project. | 522 | to the system, as opposed to belonging to the local project. |
| @@ -526,7 +526,7 @@ ATTRIBUTES is a list of additional attributes belonging to this tag." | |||
| 526 | attributes)) | 526 | attributes)) |
| 527 | 527 | ||
| 528 | (defsubst semantic-tag-new-package (name detail &rest attributes) | 528 | (defsubst semantic-tag-new-package (name detail &rest attributes) |
| 529 | "Create a semantic tag of class 'package. | 529 | "Create a semantic tag of class `package'. |
| 530 | NAME is the name of this package. | 530 | NAME is the name of this package. |
| 531 | DETAIL is extra information about this package, such as a location where | 531 | DETAIL is extra information about this package, such as a location where |
| 532 | it can be found. | 532 | it can be found. |
| @@ -536,7 +536,7 @@ ATTRIBUTES is a list of additional attributes belonging to this tag." | |||
| 536 | attributes)) | 536 | attributes)) |
| 537 | 537 | ||
| 538 | (defsubst semantic-tag-new-code (name detail &rest attributes) | 538 | (defsubst semantic-tag-new-code (name detail &rest attributes) |
| 539 | "Create a semantic tag of class 'code. | 539 | "Create a semantic tag of class `code'. |
| 540 | NAME is a name for this code. | 540 | NAME is a name for this code. |
| 541 | DETAIL is extra information about the code. | 541 | DETAIL is extra information about the code. |
| 542 | ATTRIBUTES is a list of additional attributes belonging to this tag." | 542 | ATTRIBUTES is a list of additional attributes belonging to this tag." |
| @@ -823,7 +823,7 @@ in SUPERS." | |||
| 823 | (defun semantic-tag-type-superclass-protection (tag parentstring) | 823 | (defun semantic-tag-type-superclass-protection (tag parentstring) |
| 824 | "Return the inheritance protection in TAG from PARENTSTRING. | 824 | "Return the inheritance protection in TAG from PARENTSTRING. |
| 825 | PARENTSTRING is the name of the parent being inherited. | 825 | PARENTSTRING is the name of the parent being inherited. |
| 826 | The return protection is a symbol, 'public, 'protection, and 'private." | 826 | The return protection is a symbol, `public', `protection', and `private'." |
| 827 | (let ((supers (semantic-tag-get-attribute tag :superclasses))) | 827 | (let ((supers (semantic-tag-get-attribute tag :superclasses))) |
| 828 | (cond ((stringp supers) | 828 | (cond ((stringp supers) |
| 829 | 'public) | 829 | 'public) |
| @@ -946,7 +946,7 @@ ATTRIBUTES is a list of additional attributes belonging to this tag." | |||
| 946 | The returned value is a tag of the class that | 946 | The returned value is a tag of the class that |
| 947 | `semantic-tag-alias-class' returns for TAG. | 947 | `semantic-tag-alias-class' returns for TAG. |
| 948 | The default is to return the value of the :definition attribute. | 948 | The default is to return the value of the :definition attribute. |
| 949 | Return nil if TAG is not of class 'alias." | 949 | Return nil if TAG is not of class `alias'." |
| 950 | (when (semantic-tag-of-class-p tag 'alias) | 950 | (when (semantic-tag-of-class-p tag 'alias) |
| 951 | (:override | 951 | (:override |
| 952 | (semantic-tag-get-attribute tag :definition)))) | 952 | (semantic-tag-get-attribute tag :definition)))) |
| @@ -958,8 +958,8 @@ Return nil if TAG is not of class 'alias." | |||
| 958 | "Return a list of components for TAG. | 958 | "Return a list of components for TAG. |
| 959 | A Component is a part of TAG which itself may be a TAG. | 959 | A Component is a part of TAG which itself may be a TAG. |
| 960 | Examples include the elements of a structure in a | 960 | Examples include the elements of a structure in a |
| 961 | tag of class 'type, or the list of arguments to a | 961 | tag of class `type', or the list of arguments to a |
| 962 | tag of class 'function." | 962 | tag of class `function'." |
| 963 | ) | 963 | ) |
| 964 | 964 | ||
| 965 | (defun semantic-tag-components-default (tag) | 965 | (defun semantic-tag-components-default (tag) |