Function: vhdl-template-quantity-branch
vhdl-template-quantity-branch is an interactive and byte-compiled
function defined in vhdl-mode.el.gz.
Signature
(vhdl-template-quantity-branch)
Documentation
Insert a branch quantity declaration.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-template-quantity-branch ()
"Insert a branch quantity declaration."
(interactive)
(let (position)
(vhdl-insert-keyword "QUANTITY ")
(when (vhdl-template-field "[across names]" " " t)
(vhdl-insert-keyword "ACROSS "))
(when (vhdl-template-field "[through names]" " " t)
(vhdl-insert-keyword "THROUGH "))
(vhdl-template-field "plus terminal name")
(setq position (point))
(vhdl-insert-keyword " TO ")
(unless (vhdl-template-field "[minus terminal name]" nil t)
(delete-region position (point)))
(insert ";")
(vhdl-comment-insert-inline)))