Function: srecode-semantic-handle-:tag

srecode-semantic-handle-:tag is a byte-compiled function defined in semantic.el.gz.

Signature

(srecode-semantic-handle-:tag DICT)

Documentation

Add macros into the dictionary DICT based on the current :tag.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/srecode/semantic.el.gz
;;; ARGUMENT HANDLERS

;;; :tag ARGUMENT HANDLING
;;
;; When a :tag argument is required, identify the current :tag,
;; and apply its parts into the dictionary.
(defun srecode-semantic-handle-:tag (dict)
  "Add macros into the dictionary DICT based on the current :tag."
  ;; We have a tag, start adding "stuff" into the dictionary.
  (let ((tag (or srecode-semantic-selected-tag
		 (srecode-semantic-tag-from-kill-ring))))
    (when (not tag)
      (error "No tag for current template.  Use the semantic kill-ring"))
    (srecode-semantic-apply-tag-to-dict
     (srecode-semantic-tag :prime tag)
     dict)))