Function: srecode-dump-templates
srecode-dump-templates is an interactive and byte-compiled function
defined in table.el.gz.
Signature
(srecode-dump-templates MODE)
Documentation
Dump a list of the current templates for MODE.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/srecode/table.el.gz
;;; DEBUG
;;
;; Dump out information about the current srecoder compiled templates.
;;
(defun srecode-dump-templates (mode)
"Dump a list of the current templates for MODE."
(interactive "sMode: ")
(require 'srecode/find)
(let ((modesym (cond ((string= mode "")
major-mode)
((not (string-match "-mode" mode))
(intern-soft (concat mode "-mode")))
(t
(intern-soft mode)))))
(srecode-load-tables-for-mode modesym)
(let ((tmp (srecode-get-mode-table modesym))
)
(if (not tmp)
(error "No table found for mode %S" modesym))
(with-output-to-temp-buffer "*SRECODE DUMP*"
(srecode-dump tmp))
)))