Function: semantic-add-label

semantic-add-label is an interactive and byte-compiled function defined in util.el.gz.

Signature

(semantic-add-label LABEL VALUE &optional TAG)

Documentation

Add a LABEL with VALUE on TAG.

If TAG is not specified, use the tag at point.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/util.el.gz
;;; Putting keys on tags.
;;
(defun semantic-add-label (label value &optional tag)
  "Add a LABEL with VALUE on TAG.
If TAG is not specified, use the tag at point."
  (interactive "sLabel: \nXValue (eval): ")
  (if (not tag)
      (progn
	(semantic-fetch-tags)
	(setq tag (semantic-current-tag))))
  (semantic--tag-put-property tag (intern label) value)
  (message "Added label %s with value %S" label value))