comparison lisp/cedet/semantic/scope.el @ 106197:019d906c8f48

* cedet/srecode/map.el (srecode-get-maps): * cedet/semantic/wisent/wisent.el (wisent-parse-toggle-verbose-flag): * cedet/semantic/wisent/comp.el (wisent-toggle-verbose-flag): * cedet/semantic/decorate/mode.el (semantic-decoration-mode) (semantic-toggle-decoration-style): * cedet/semantic/decorate/include.el (semantic-decoration-include-describe) (semantic-decoration-unknown-include-describe) (semantic-decoration-unparsed-include-describe) (semantic-decoration-all-include-summary): * cedet/semantic/bovine/c.el (semantic-c-debug-mode-init): * cedet/semantic/analyze/complete.el (semantic-analyze-possible-completions): * cedet/semantic/util-modes.el (semantic-highlight-edits-mode) (semantic-show-unmatched-syntax-mode) (semantic-show-parser-state-mode, semantic-stickyfunc-mode) (semantic-highlight-func-mode): * cedet/semantic/util.el (semantic-describe-buffer): * cedet/semantic/symref.el (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): * cedet/semantic/senator.el (senator-copy-tag, senator-kill-tag) (senator-yank-tag): * cedet/semantic/scope.el (semantic-calculate-scope): * cedet/semantic/mru-bookmark.el (semantic-mru-bookmark-mode): * cedet/semantic/idle.el (semantic-idle-scheduler-mode) (define-semantic-idle-service): * cedet/semantic/complete.el (semantic-complete-analyze-inline) (semantic-complete-analyze-inline-idle): * cedet/semantic/analyze.el (semantic-analyze-current-context): * cedet/mode-local.el (describe-mode-local-bindings) (describe-mode-local-bindings-in-mode): * cedet/ede/make.el (ede-make-check-version): * cedet/ede/locate.el (ede-enable-locate-on-project): * cedet/cedet-idutils.el (cedet-idutils-expand-filename) (cedet-idutils-version-check): * cedet/cedet-global.el (cedet-gnu-global-expand-filename) (cedet-gnu-global-version-check): * cedet/cedet-cscope.el (cedet-cscope-expand-filename) (cedet-cscope-version-check): Use called-interactively-p instead of interactive-p.
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 22 Nov 2009 23:49:13 +0000
parents 83dde921cc1b
children 1d1d5d9bd884
comparison
equal deleted inserted replaced
106196:2721ecb2b07c 106197:019d906c8f48
661 (interactive) 661 (interactive)
662 (if (not (and (featurep 'semantic/db) semanticdb-current-database)) 662 (if (not (and (featurep 'semantic/db) semanticdb-current-database))
663 nil ;; Don't do anything... 663 nil ;; Don't do anything...
664 (require 'semantic/db-typecache) 664 (require 'semantic/db-typecache)
665 (if (not point) (setq point (point))) 665 (if (not point) (setq point (point)))
666 (when (interactive-p) 666 (when (called-interactively-p 'any)
667 (semantic-fetch-tags) 667 (semantic-fetch-tags)
668 (semantic-scope-reset-cache) 668 (semantic-scope-reset-cache))
669 )
670 (save-excursion 669 (save-excursion
671 (goto-char point) 670 (goto-char point)
672 (let* ((TAG (semantic-current-tag)) 671 (let* ((TAG (semantic-current-tag))
673 (scopecache 672 (scopecache
674 (semanticdb-cache-get semanticdb-current-table 673 (semanticdb-cache-get semanticdb-current-table
724 (oset scopecache localvar localvar) 723 (oset scopecache localvar localvar)
725 ))) 724 )))
726 ;; Make sure we become dependant on the typecache. 725 ;; Make sure we become dependant on the typecache.
727 (semanticdb-typecache-add-dependant scopecache) 726 (semanticdb-typecache-add-dependant scopecache)
728 ;; Handy debug output. 727 ;; Handy debug output.
729 (when (interactive-p) 728 (when (called-interactively-p 'any)
730 (require 'eieio-datadebug) 729 (require 'eieio-datadebug)
731 (data-debug-show scopecache) 730 (data-debug-show scopecache))
732 )
733 ;; Return ourselves 731 ;; Return ourselves
734 scopecache)))) 732 scopecache))))
735 733
736 (defun semantic-scope-find (name &optional class scope-in) 734 (defun semantic-scope-find (name &optional class scope-in)
737 "Find the tag with NAME, and optional CLASS in the current SCOPE-IN. 735 "Find the tag with NAME, and optional CLASS in the current SCOPE-IN.