comparison lisp/cedet/semantic/sort.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
comparison
equal deleted inserted replaced
110517:64945cefe6a6 110534:826d60163924
461 `semantic-tag-external-member-parent-default' to also 461 `semantic-tag-external-member-parent-default' to also
462 include the default behavior, and merely extend your own." 462 include the default behavior, and merely extend your own."
463 ) 463 )
464 464
465 (defun semantic-tag-external-member-parent-default (tag) 465 (defun semantic-tag-external-member-parent-default (tag)
466 "Return the name of TAGs parent only if TAG is not defined in it's parent." 466 "Return the name of TAGs parent only if TAG is not defined in its parent."
467 ;; Use only the extra spec because a type has a parent which 467 ;; Use only the extra spec because a type has a parent which
468 ;; means something completely different. 468 ;; means something completely different.
469 (let ((tp (semantic-tag-get-attribute tag :parent))) 469 (let ((tp (semantic-tag-get-attribute tag :parent)))
470 (when (stringp tp) 470 (when (stringp tp)
471 tp))) 471 tp)))
472 472
473 (define-overloadable-function semantic-tag-external-member-p (parent tag) 473 (define-overloadable-function semantic-tag-external-member-p (parent tag)
474 "Return non-nil if PARENT is the parent of TAG. 474 "Return non-nil if PARENT is the parent of TAG.
475 TAG is an external member of PARENT when it is somehow tagged 475 TAG is an external member of PARENT when it is somehow tagged
476 as having PARENT as it's parent. 476 as having PARENT as its parent.
477 PARENT and TAG must both be semantic tags. 477 PARENT and TAG must both be semantic tags.
478 478
479 The default behavior, if not overridden with 479 The default behavior, if not overridden with
480 `tag-external-member-p' is to match :parent attribute in 480 `tag-external-member-p' is to match :parent attribute in
481 the name of TAG. 481 the name of TAG.