Function: vhdl-template-procedure
vhdl-template-procedure is an interactive and byte-compiled function
defined in vhdl-mode.el.gz.
Signature
(vhdl-template-procedure &optional KIND)
Documentation
Insert a procedure declaration or body.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-template-procedure (&optional kind)
"Insert a procedure declaration or body."
(interactive)
(let ((margin (current-indentation))
(start (point))
name)
(vhdl-insert-keyword "PROCEDURE ")
(when (setq name (vhdl-template-field "name" nil t start (point)))
(vhdl-template-argument-list)
(if (if kind (eq kind 'body)
(eq (vhdl-decision-query nil "(d)eclaration or (b)ody?") ?b))
(progn (vhdl-insert-keyword " IS")
(when vhdl-auto-align
(vhdl-align-region-groups start (point) 1))
(end-of-line) (insert "\n")
(vhdl-template-begin-end
(unless (vhdl-standard-p '87) "PROCEDURE")
name margin)
(vhdl-comment-block))
(insert ";")
(when vhdl-auto-align (vhdl-align-region-groups start (point) 1))
(end-of-line)))))