Function: semantic--tag-deep-copy-value
semantic--tag-deep-copy-value is a byte-compiled function defined in
tag.el.gz.
Signature
(semantic--tag-deep-copy-value VALUE &optional FILTER)
Documentation
Make a deep copy of VALUE, applying FILTER to each child-tag.
It is safe to modify VALUE, and return a permutation of that list.
FILTER takes TAG as an argument, and should return a semantic-tag. It is safe for FILTER to modify the input tag and return it.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag.el.gz
(defun semantic--tag-deep-copy-value (value &optional filter)
"Make a deep copy of VALUE, applying FILTER to each child-tag.
It is safe to modify VALUE, and return a permutation of that list.
FILTER takes TAG as an argument, and should return a semantic-tag.
It is safe for FILTER to modify the input tag and return it."
(cond
;; Another tag.
((semantic-tag-p value)
(semantic-tag-deep-copy-one-tag value filter))
;; A list of more tags
((and (listp value) (semantic-tag-p (car value)))
(semantic--tag-deep-copy-tag-list value filter))
;; Some arbitrary data.
(t value)))