Function: vhdl-template-use
vhdl-template-use is an interactive and byte-compiled function defined
in vhdl-mode.el.gz.
Signature
(vhdl-template-use)
Documentation
Insert a use clause.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-template-use ()
"Insert a use clause."
(interactive)
(let ((start (point)))
(vhdl-prepare-search-1
(vhdl-insert-keyword "USE ")
(when (save-excursion (beginning-of-line) (looking-at "^\\s-*use\\>"))
(vhdl-insert-keyword "..ALL;")
(backward-char 6)
(when (vhdl-template-field "library name" nil t start (+ (point) 6))
(forward-char 1)
(vhdl-template-field "package name")
(forward-char 5))))))