Function: semantic-tag-put-attribute
semantic-tag-put-attribute is a byte-compiled function defined in
tag.el.gz.
Signature
(semantic-tag-put-attribute TAG ATTRIBUTE VALUE)
Documentation
Change value in TAG of ATTRIBUTE to VALUE.
If ATTRIBUTE already exists, its value is set to VALUE, otherwise the new ATTRIBUTE VALUE pair is added. Return TAG. Use this function in a parser when not all attributes are known at the same time.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/tag.el.gz
(defsubst semantic-tag-put-attribute (tag attribute value)
"Change value in TAG of ATTRIBUTE to VALUE.
If ATTRIBUTE already exists, its value is set to VALUE, otherwise the
new ATTRIBUTE VALUE pair is added.
Return TAG.
Use this function in a parser when not all attributes are known at the
same time."
(let* ((plist-cdr (semantic--tag-attributes-cdr tag)))
(when (consp plist-cdr)
(setcar plist-cdr
(semantic-tag-make-plist
(plist-put (car plist-cdr) attribute value))))
tag))