Function: vhdl-template-subnature
vhdl-template-subnature is an interactive and byte-compiled function
defined in vhdl-mode.el.gz.
Signature
(vhdl-template-subnature)
Documentation
Insert a subnature declaration.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-template-subnature ()
"Insert a subnature declaration."
(interactive)
(let ((start (point))
position)
(vhdl-insert-keyword "SUBNATURE ")
(when (vhdl-template-field "name" nil t start (point))
(vhdl-insert-keyword " IS ")
(vhdl-template-field "nature" " (")
(if (vhdl-template-field "[index range]" nil t)
(insert ")")
(delete-char -2))
(setq position (point))
(vhdl-insert-keyword " TOLERANCE ")
(if (equal "\"\"" (vhdl-template-field "[string expression]"
nil t nil nil t))
(delete-region position (point))
(vhdl-insert-keyword " ACROSS ")
(vhdl-template-field "string expression" nil nil nil nil t)
(vhdl-insert-keyword " THROUGH"))
(insert ";")
(vhdl-comment-insert-inline))))