Function: vhdl-template-quantity
vhdl-template-quantity is an interactive and byte-compiled function
defined in vhdl-mode.el.gz.
Signature
(vhdl-template-quantity)
Documentation
Insert a quantity declaration.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-template-quantity ()
"Insert a quantity declaration."
(interactive)
(if (vhdl-in-argument-list-p)
(let ((start (point)))
(vhdl-insert-keyword "QUANTITY ")
(when (vhdl-template-field "names" nil t start (point))
(insert " : ")
(vhdl-template-field "[IN | OUT]" " " t)
(vhdl-template-field "type")
(insert ";")
(vhdl-comment-insert-inline)))
(let ((char (vhdl-decision-query
"quantity" "(f)ree, (b)ranch, or (s)ource quantity?" t)))
(cond ((eq char ?f) (vhdl-template-quantity-free))
((eq char ?b) (vhdl-template-quantity-branch))
((eq char ?s) (vhdl-template-quantity-source))
(t (vhdl-template-undo (point) (point)))))))