Mercurial > emacs
comparison lisp/cedet/semantic/symref.el @ 104465:155479111645
lisp/cedet/semantic/symref.el: Add local vars for autoloading.
(semantic-symref-find-references-by-name)
(semantic-symref-find-tags-by-name, semantic-symref-find-tags-by-regexp)
(semantic-symref-find-tags-by-completion)
(semantic-symref-find-file-references-by-name)
(semantic-symref-find-text): Autoload.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 05 Sep 2009 23:30:27 +0000 |
parents | d66016869489 |
children | 8bfb2cc77d6e |
comparison
equal
deleted
inserted
replaced
104464:ee7637f5d6de | 104465:155479111645 |
---|---|
146 (message "Empty results."))) | 146 (message "Empty results."))) |
147 | 147 |
148 ;;; EXTERNAL API | 148 ;;; EXTERNAL API |
149 ;; | 149 ;; |
150 | 150 |
151 ;;;###autoload | |
151 (defun semantic-symref-find-references-by-name (name &optional scope tool-return) | 152 (defun semantic-symref-find-references-by-name (name &optional scope tool-return) |
152 "Find a list of references to NAME in the current project. | 153 "Find a list of references to NAME in the current project. |
153 Optional SCOPE specifies which file set to search. Defaults to 'project. | 154 Optional SCOPE specifies which file set to search. Defaults to 'project. |
154 Refers to `semantic-symref-tool', to determine the reference tool to use | 155 Refers to `semantic-symref-tool', to determine the reference tool to use |
155 for the current buffer. | 156 for the current buffer. |
169 (setq semantic-symref-last-result result) | 170 (setq semantic-symref-last-result result) |
170 (when (interactive-p) | 171 (when (interactive-p) |
171 (semantic-symref-data-debug-last-result)))) | 172 (semantic-symref-data-debug-last-result)))) |
172 ) | 173 ) |
173 | 174 |
175 ;;;###autoload | |
174 (defun semantic-symref-find-tags-by-name (name &optional scope) | 176 (defun semantic-symref-find-tags-by-name (name &optional scope) |
175 "Find a list of references to NAME in the current project. | 177 "Find a list of references to NAME in the current project. |
176 Optional SCOPE specifies which file set to search. Defaults to 'project. | 178 Optional SCOPE specifies which file set to search. Defaults to 'project. |
177 Refers to `semantic-symref-tool', to determine the reference tool to use | 179 Refers to `semantic-symref-tool', to determine the reference tool to use |
178 for the current buffer. | 180 for the current buffer. |
188 (setq semantic-symref-last-result result) | 190 (setq semantic-symref-last-result result) |
189 (when (interactive-p) | 191 (when (interactive-p) |
190 (semantic-symref-data-debug-last-result)))) | 192 (semantic-symref-data-debug-last-result)))) |
191 ) | 193 ) |
192 | 194 |
195 ;;;###autoload | |
193 (defun semantic-symref-find-tags-by-regexp (name &optional scope) | 196 (defun semantic-symref-find-tags-by-regexp (name &optional scope) |
194 "Find a list of references to NAME in the current project. | 197 "Find a list of references to NAME in the current project. |
195 Optional SCOPE specifies which file set to search. Defaults to 'project. | 198 Optional SCOPE specifies which file set to search. Defaults to 'project. |
196 Refers to `semantic-symref-tool', to determine the reference tool to use | 199 Refers to `semantic-symref-tool', to determine the reference tool to use |
197 for the current buffer. | 200 for the current buffer. |
207 (setq semantic-symref-last-result result) | 210 (setq semantic-symref-last-result result) |
208 (when (interactive-p) | 211 (when (interactive-p) |
209 (semantic-symref-data-debug-last-result)))) | 212 (semantic-symref-data-debug-last-result)))) |
210 ) | 213 ) |
211 | 214 |
215 ;;;###autoload | |
212 (defun semantic-symref-find-tags-by-completion (name &optional scope) | 216 (defun semantic-symref-find-tags-by-completion (name &optional scope) |
213 "Find a list of references to NAME in the current project. | 217 "Find a list of references to NAME in the current project. |
214 Optional SCOPE specifies which file set to search. Defaults to 'project. | 218 Optional SCOPE specifies which file set to search. Defaults to 'project. |
215 Refers to `semantic-symref-tool', to determine the reference tool to use | 219 Refers to `semantic-symref-tool', to determine the reference tool to use |
216 for the current buffer. | 220 for the current buffer. |
226 (setq semantic-symref-last-result result) | 230 (setq semantic-symref-last-result result) |
227 (when (interactive-p) | 231 (when (interactive-p) |
228 (semantic-symref-data-debug-last-result)))) | 232 (semantic-symref-data-debug-last-result)))) |
229 ) | 233 ) |
230 | 234 |
235 ;;;###autoload | |
231 (defun semantic-symref-find-file-references-by-name (name &optional scope) | 236 (defun semantic-symref-find-file-references-by-name (name &optional scope) |
232 "Find a list of references to NAME in the current project. | 237 "Find a list of references to NAME in the current project. |
233 Optional SCOPE specifies which file set to search. Defaults to 'project. | 238 Optional SCOPE specifies which file set to search. Defaults to 'project. |
234 Refers to `semantic-symref-tool', to determine the reference tool to use | 239 Refers to `semantic-symref-tool', to determine the reference tool to use |
235 for the current buffer. | 240 for the current buffer. |
245 (setq semantic-symref-last-result result) | 250 (setq semantic-symref-last-result result) |
246 (when (interactive-p) | 251 (when (interactive-p) |
247 (semantic-symref-data-debug-last-result)))) | 252 (semantic-symref-data-debug-last-result)))) |
248 ) | 253 ) |
249 | 254 |
255 ;;;###autoload | |
250 (defun semantic-symref-find-text (text &optional scope) | 256 (defun semantic-symref-find-text (text &optional scope) |
251 "Find a list of occurances of TEXT in the current project. | 257 "Find a list of occurances of TEXT in the current project. |
252 TEXT is a regexp formatted for use with egrep. | 258 TEXT is a regexp formatted for use with egrep. |
253 Optional SCOPE specifies which file set to search. Defaults to 'project. | 259 Optional SCOPE specifies which file set to search. Defaults to 'project. |
254 Refers to `semantic-symref-tool', to determine the reference tool to use | 260 Refers to `semantic-symref-tool', to determine the reference tool to use |
485 "Base tool output parser is not implemented." | 491 "Base tool output parser is not implemented." |
486 (error "Symref tool objects must implement `semantic-symref-parse-tool-output-one-line'")) | 492 (error "Symref tool objects must implement `semantic-symref-parse-tool-output-one-line'")) |
487 | 493 |
488 (provide 'semantic/symref) | 494 (provide 'semantic/symref) |
489 | 495 |
496 ;; Local variables: | |
497 ;; generated-autoload-file: "loaddefs.el" | |
498 ;; generated-autoload-feature: semantic/loaddefs | |
499 ;; generated-autoload-load-name: "semantic/symref" | |
500 ;; End: | |
501 | |
490 ;;; semantic/symref.el ends here | 502 ;;; semantic/symref.el ends here |