Function: srecode-semantic-handle-:texitag
srecode-semantic-handle-:texitag is an autoloaded and byte-compiled
function defined in texi.el.gz.
Signature
(srecode-semantic-handle-:texitag DICT)
Documentation
Add macros into the dictionary DICT based on the current :tag file.
Adds the following:
TAGDOC - Texinfo formatted doc string for :tag.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/texi.el.gz
;;;###autoload
(defun srecode-semantic-handle-:texitag (dict)
"Add macros into the dictionary DICT based on the current :tag file.
Adds the following:
TAGDOC - Texinfo formatted doc string for :tag."
;; If we also have a TAG, what is the doc?
(let ((tag (srecode-dictionary-lookup-name dict "TAG"))
(doc nil)
)
;; If the user didn't apply :tag, then do so now.
(when (not tag)
(srecode-semantic-handle-:tag dict))
(setq tag (srecode-dictionary-lookup-name dict "TAG"))
(when (not tag)
(error "No tag to insert for :texitag template argument"))
;; Extract the tag out of the compound object.
(setq tag (oref tag prime))
;; Extract the doc string
(setq doc (semantic-documentation-for-tag tag))
(when doc
(srecode-dictionary-set-value dict "TAGDOC"
(srecode-texi-massage-to-texinfo
tag (semantic-tag-buffer tag)
doc)))
))