Mercurial > emacs
comparison lisp/cedet/semantic/ctxt.el @ 104439:da5b2513c225
cedet/cedet.el (cedet-packages): Bump srecode version.
cedet/data-debug.el: Require `ring' for use of ring-length.
cedet/semantic.el (semantic-repeat-parse-whole-stream): Check
semantic-working-type before updating progress reporter.
cedet/semantic/adebug.el: Fix file header.
cedet/semantic/analyze.el: eval-when-compile semantic/find, for
semantic-find-tags-by-name. Declare semanticdb-strip-find-results and
semanticdb-find-tags-by-name.
cedet/semantic/chart.el: Require semantic/find, semantic/db-mode,
semantic/db-typecache, and semantic/scope.
cedet/semantic/complete.el: Declare
semantic-displayor-focus-abstract-child-p function (needed as the
semantic-displayor-focus-abstract class is defined only after used).
Move semantic-complete-inline-custom-type and
semantic-complete-inline-analyzer-displayor-class variable definitions
up, before they are used, to avoid compiler warning.
Require semantic/decorate, semantic/tag-file, eieio-opt, and
semantic/analyze/complete.
cedet/semantic/ctxt.el: Require semantic/find. Don't
eval-when-compile semantic/db
(semantic-get-local-variables): Use Emacs' built-in progress reporter
instead of working-status-forms.
cedet/semantic/db-debug.el: Require data-debug, semantic/db-mode, and
semantic/format.
cedet/semantic/db-ebrowse.el: Require semantic/db-mode, semantic/find,
semantic/sort, data-debug
(semanticdb-create-database): Require semantic/dep for
semantic-add-system-include.
(semanticdb-table-ebrowse, semanticdb-project-database-ebrowse): Move
class definitions near top of file, before they are used, to avoid
compiler warnings.
(semanticdb-ebrowse-add-tree-to-table): Use split-string.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sun, 30 Aug 2009 21:16:39 +0000 |
parents | 6810f0d84270 |
children | 2bf481006ba4 |
comparison
equal
deleted
inserted
replaced
104438:33171bfc7147 | 104439:da5b2513c225 |
---|---|
1 ;;; ctxt.el --- Context calculations for Semantic tools. | 1 ;;; semantic/ctxt.el --- Context calculations for Semantic tools. |
2 | 2 |
3 ;;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, | 3 ;;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, |
4 ;;; 2007, 2008, 2009 Free Software Foundation, Inc. | 4 ;;; 2007, 2008, 2009 Free Software Foundation, Inc. |
5 | 5 |
6 ;; Author: Eric M. Ludlam <zappo@gnu.org> | 6 ;; Author: Eric M. Ludlam <zappo@gnu.org> |
29 ;; | 29 ;; |
30 ;; This library provides the hooks needed for a language to specify how | 30 ;; This library provides the hooks needed for a language to specify how |
31 ;; the current context is calculated. | 31 ;; the current context is calculated. |
32 ;; | 32 ;; |
33 (require 'semantic) | 33 (require 'semantic) |
34 (eval-when-compile (require 'semantic/db)) | 34 (require 'semantic/find) |
35 | 35 |
36 ;;; Code: | 36 ;;; Code: |
37 (defvar semantic-command-separation-character | 37 (defvar semantic-command-separation-character |
38 ";" | 38 ";" |
39 "String which indicates the end of a command. | 39 "String which indicates the end of a command. |
153 (define-overloadable-function semantic-get-local-variables (&optional point) | 153 (define-overloadable-function semantic-get-local-variables (&optional point) |
154 "Get the local variables based on POINT's context. | 154 "Get the local variables based on POINT's context. |
155 Local variables are returned in Semantic tag format. | 155 Local variables are returned in Semantic tag format. |
156 This can be overriden with `get-local-variables'." | 156 This can be overriden with `get-local-variables'." |
157 ;; The working status is to let the parser work properly | 157 ;; The working status is to let the parser work properly |
158 (working-status-forms | 158 (let ((semantic--progress-reporter |
159 (semantic-parser-working-message "Local") | 159 (make-progress-reporter (semantic-parser-working-message "Local") |
160 "done" | 160 0 100))) |
161 (save-excursion | 161 (save-excursion |
162 (if point (goto-char point)) | 162 (if point (goto-char point)) |
163 (let* ((semantic-working-type nil) | 163 (let* ((semantic-working-type nil) |
164 ;; Disable parsing messages | 164 ;; Disable parsing messages |
165 (working-status-dynamic-type nil) | 165 (case-fold-search semantic-case-fold)) |
166 (case-fold-search semantic-case-fold)) | 166 (:override-with-args ()))))) |
167 (:override-with-args ()))))) | |
168 | 167 |
169 (defun semantic-get-local-variables-default () | 168 (defun semantic-get-local-variables-default () |
170 "Get local values from a specific context. | 169 "Get local values from a specific context. |
171 Uses the bovinator with the special top-symbol `bovine-inner-scope' | 170 Uses the bovinator with the special top-symbol `bovine-inner-scope' |
172 to collect tags, such as local variables or prototypes." | 171 to collect tags, such as local variables or prototypes." |
608 nil | 607 nil |
609 )) | 608 )) |
610 | 609 |
611 (provide 'semantic/ctxt) | 610 (provide 'semantic/ctxt) |
612 | 611 |
613 ;;; semantic-ctxt.el ends here | 612 ;;; semantic/ctxt.el ends here |