Function: semantic-grammar-insert-defconst-with-eval
semantic-grammar-insert-defconst-with-eval is a byte-compiled function
defined in grammar.el.gz.
Signature
(semantic-grammar-insert-defconst-with-eval NAME VALUE DOCSTRING)
Documentation
Insert declaration of constant NAME with VALUE and DOCSTRING.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/grammar.el.gz
(defun semantic-grammar-insert-defconst-with-eval (name value docstring)
"Insert declaration of constant NAME with VALUE and DOCSTRING."
(let ((start (point)))
(insert (format "(eval-and-compile (defconst %s\n%s%S))\n\n" name value docstring))
(save-excursion
(goto-char start)
(indent-sexp))))