Function: vhdl-template-generic
vhdl-template-generic is an interactive and byte-compiled function
defined in vhdl-mode.el.gz.
Signature
(vhdl-template-generic)
Documentation
Insert generic declaration, or generic map in instantiation statements.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-template-generic ()
"Insert generic declaration, or generic map in instantiation statements."
(interactive)
(let ((start (point)))
(vhdl-prepare-search-1
(cond
((and (save-excursion ; entity declaration
(re-search-backward "^\\(entity\\|end\\)\\>" nil t))
(equal "ENTITY" (upcase (match-string 1))))
(vhdl-template-generic-list nil))
((or (save-excursion
(or (beginning-of-line)
(looking-at "^\\s-*\\w+\\s-*:\\s-*\\w+")))
(equal 'statement-cont (caar (vhdl-get-syntactic-context))))
(vhdl-insert-keyword "GENERIC ")
(vhdl-template-map start))
(t (vhdl-template-generic-list nil t))))))