Function: vhdl-template-port
vhdl-template-port is an interactive and byte-compiled function
defined in vhdl-mode.el.gz.
Signature
(vhdl-template-port)
Documentation
Insert a port declaration, or port map in instantiation statements.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-template-port ()
"Insert a port declaration, or port 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-port-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 "PORT ")
(vhdl-template-map start))
(t (vhdl-template-port-list nil))))))