Function: srecode-document-insert-section-comment
srecode-document-insert-section-comment is an interactive and
byte-compiled function defined in document.el.gz.
Signature
(srecode-document-insert-section-comment &optional TITLE)
Documentation
Insert a section comment with TITLE.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/document.el.gz
(defun srecode-document-insert-section-comment (&optional title)
"Insert a section comment with TITLE."
(interactive "sSection Title: ")
(srecode-load-tables-for-mode major-mode)
(srecode-load-tables-for-mode major-mode 'document)
(if (not (srecode-table))
(error "No template table found for mode %s" major-mode))
(let* ((dict (srecode-create-dictionary))
(temp (srecode-template-get-table (srecode-table)
"section-comment"
"declaration"
'document)))
(if (not temp)
(error "No templates for inserting section comments"))
(when title
(srecode-dictionary-set-value
dict "TITLE" title))
(srecode-insert-fcn temp dict)
))