Mercurial > emacs
comparison lisp/cedet/semantic/db-global.el @ 106895:181539c8b6a4
Fix typos in docstrings, error messages, etc.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Mon, 18 Jan 2010 05:39:40 +0100 |
parents | 4cf58c2379f4 |
children | a5ad4f188e19 |
comparison
equal
deleted
inserted
replaced
106894:b3b9ebd930e1 | 106895:181539c8b6a4 |
---|---|
64 (cons 'semanticdb-enable-gnu-global-hook ih)))) | 64 (cons 'semanticdb-enable-gnu-global-hook ih)))) |
65 | 65 |
66 ) | 66 ) |
67 | 67 |
68 (defun semanticdb-enable-gnu-global-hook () | 68 (defun semanticdb-enable-gnu-global-hook () |
69 "Add support for GNU Global in the current buffer via semantic-init-hook. | 69 "Add support for GNU Global in the current buffer via `semantic-init-hook'. |
70 MODE is the major mode to support." | 70 MODE is the major mode to support." |
71 (semanticdb-enable-gnu-global-in-buffer t)) | 71 (semanticdb-enable-gnu-global-in-buffer t)) |
72 | 72 |
73 (defclass semanticdb-project-database-global | 73 (defclass semanticdb-project-database-global |
74 ;; @todo - convert to one DB per directory. | 74 ;; @todo - convert to one DB per directory. |
76 () | 76 () |
77 "Database representing a GNU Global tags file.") | 77 "Database representing a GNU Global tags file.") |
78 | 78 |
79 (defun semanticdb-enable-gnu-global-in-buffer (&optional dont-err-if-not-available) | 79 (defun semanticdb-enable-gnu-global-in-buffer (&optional dont-err-if-not-available) |
80 "Enable a GNU Global database in the current buffer. | 80 "Enable a GNU Global database in the current buffer. |
81 Argument DONT-ERR-IF-NOT-AVAILABLE will throw an error if GNU Global | 81 When GNU Global is not available for this directory, display a message |
82 is not available for this directory." | 82 if optional DONT-ERR-IF-NOT-AVAILABLE is non-nil; else throw an error." |
83 (interactive "P") | 83 (interactive "P") |
84 (if (cedet-gnu-global-root) | 84 (if (cedet-gnu-global-root) |
85 (setq | 85 (setq |
86 ;; Add to the system database list. | 86 ;; Add to the system database list. |
87 semanticdb-project-system-databases | 87 semanticdb-project-system-databases |
166 (semantic-symref-result-get-tags result)) | 166 (semantic-symref-result-get-tags result)) |
167 ))) | 167 ))) |
168 | 168 |
169 (defmethod semanticdb-find-tags-for-completion-method | 169 (defmethod semanticdb-find-tags-for-completion-method |
170 ((table semanticdb-table-global) prefix &optional tags) | 170 ((table semanticdb-table-global) prefix &optional tags) |
171 "In TABLE, find all occurances of tags matching PREFIX. | 171 "In TABLE, find all occurrences of tags matching PREFIX. |
172 Optional argument TAGS is a list of tags to search. | 172 Optional argument TAGS is a list of tags to search. |
173 Returns a table of all matching tags." | 173 Returns a table of all matching tags." |
174 (if tags (call-next-method) | 174 (if tags (call-next-method) |
175 (let* ((semantic-symref-tool 'global) | 175 (let* ((semantic-symref-tool 'global) |
176 (result (semantic-symref-find-tags-by-completion prefix 'project)) | 176 (result (semantic-symref-find-tags-by-completion prefix 'project)) |
193 ;; above. | 193 ;; above. |
194 ;; | 194 ;; |
195 (defmethod semanticdb-deep-find-tags-by-name-method | 195 (defmethod semanticdb-deep-find-tags-by-name-method |
196 ((table semanticdb-table-global) name &optional tags) | 196 ((table semanticdb-table-global) name &optional tags) |
197 "Find all tags name NAME in TABLE. | 197 "Find all tags name NAME in TABLE. |
198 Optional argument TAGS is a list of tags t | 198 Optional argument TAGS is a list of tags to search. |
199 Like `semanticdb-find-tags-by-name-method' for global." | 199 Like `semanticdb-find-tags-by-name-method' for global." |
200 (semanticdb-find-tags-by-name-method table name tags)) | 200 (semanticdb-find-tags-by-name-method table name tags)) |
201 | 201 |
202 (defmethod semanticdb-deep-find-tags-by-name-regexp-method | 202 (defmethod semanticdb-deep-find-tags-by-name-regexp-method |
203 ((table semanticdb-table-global) regex &optional tags) | 203 ((table semanticdb-table-global) regex &optional tags) |
206 Like `semanticdb-find-tags-by-name-method' for global." | 206 Like `semanticdb-find-tags-by-name-method' for global." |
207 (semanticdb-find-tags-by-name-regexp-method table regex tags)) | 207 (semanticdb-find-tags-by-name-regexp-method table regex tags)) |
208 | 208 |
209 (defmethod semanticdb-deep-find-tags-for-completion-method | 209 (defmethod semanticdb-deep-find-tags-for-completion-method |
210 ((table semanticdb-table-global) prefix &optional tags) | 210 ((table semanticdb-table-global) prefix &optional tags) |
211 "In TABLE, find all occurances of tags matching PREFIX. | 211 "In TABLE, find all occurrences of tags matching PREFIX. |
212 Optional argument TAGS is a list of tags to search. | 212 Optional argument TAGS is a list of tags to search. |
213 Like `semanticdb-find-tags-for-completion-method' for global." | 213 Like `semanticdb-find-tags-for-completion-method' for global." |
214 (semanticdb-find-tags-for-completion-method table prefix tags)) | 214 (semanticdb-find-tags-for-completion-method table prefix tags)) |
215 | 215 |
216 (provide 'semantic/db-global) | 216 (provide 'semantic/db-global) |