Function: semantic-tag-clone

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

Signature

(semantic-tag-clone TAG &optional NAME)

Documentation

Clone TAG, creating a new TAG.

If optional argument NAME is not nil it specifies a new name for the cloned tag.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag.el.gz
;;; Copying and cloning tags.
;;
(defsubst semantic-tag-clone (tag &optional name)
  "Clone TAG, creating a new TAG.
If optional argument NAME is not nil it specifies a new name for the
cloned tag."
  ;; Right now, TAG is a list.
  (list (or name (semantic-tag-name tag))
        (semantic-tag-class tag)
        (copy-sequence (semantic-tag-attributes tag))
        (copy-sequence (semantic-tag-properties tag))
        (semantic-tag-overlay tag)))