Function: semantic-equivalent-tag-p

semantic-equivalent-tag-p is a byte-compiled function defined in tag.el.gz.

Signature

(semantic-equivalent-tag-p TAG1 TAG2)

Documentation

Compare TAG1 and TAG2 and return non-nil if they are equivalent.

Use equal on elements the name, class, and position. Use this function if tags are being copied and regrouped to test for if two tags represent the same thing, but may be constructed of different cons cells.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag.el.gz
(defun semantic-equivalent-tag-p (tag1 tag2)
  "Compare TAG1 and TAG2 and return non-nil if they are equivalent.
Use `equal' on elements the name, class, and position.
Use this function if tags are being copied and regrouped to test
for if two tags represent the same thing, but may be constructed
of different cons cells."
  (and (equal (semantic-tag-name tag1) (semantic-tag-name tag2))
       (semantic-tag-of-class-p tag1 (semantic-tag-class tag2))
       (or (and (not (semantic-tag-overlay tag1))
		(not (semantic-tag-overlay tag2)))
	   (and (semantic-tag-overlay tag1)
		(semantic-tag-overlay tag2)
		(equal (semantic-tag-bounds tag1)
		       (semantic-tag-bounds tag2))))))