Mercurial > emacs
diff lisp/cedet/semantic/analyze.el @ 110534:826d60163924
Merge changes from emacs-23 branch.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Thu, 23 Sep 2010 22:10:54 -0400 |
parents | a5ad4f188e19 |
children | 376148b31b5e |
line wrap: on
line diff
--- a/lisp/cedet/semantic/analyze.el Fri Sep 24 00:38:10 2010 +0000 +++ b/lisp/cedet/semantic/analyze.el Thu Sep 23 22:10:54 2010 -0400 @@ -253,7 +253,7 @@ (tag nil) ; tag return list (tagtype nil) ; tag types return list (fname nil) - (miniscope (clone scope)) + (miniscope (when scope (clone scope))) ) ;; First order check. Is this wholely contained in the typecache? (setq tmp (semanticdb-typecache-find sequence)) @@ -297,11 +297,12 @@ ;; and we can use it directly. (cond ((semantic-tag-of-class-p tmp 'type) ;; update the miniscope when we need to analyze types directly. - (let ((rawscope - (apply 'append - (mapcar 'semantic-tag-type-members - tagtype)))) - (oset miniscope fullscope rawscope)) + (when miniscope + (let ((rawscope + (apply 'append + (mapcar 'semantic-tag-type-members + tagtype)))) + (oset miniscope fullscope rawscope))) ;; Now analayze the type to remove metatypes. (or (semantic-analyze-type tmp miniscope) tmp)) @@ -351,7 +352,7 @@ additional tags which are in SCOPE and do not need prefixing to find. -This is a wrapper on top of semanticdb, semanticdb-typecache, +This is a wrapper on top of semanticdb, semanticdb typecache, semantic-scope, and semantic search functions. Almost all searches use the same arguments." (let ((namelst (if (consp name) name ;; test if pre-split.