Function: vhdl-template-elsif
vhdl-template-elsif is an interactive and byte-compiled function
defined in vhdl-mode.el.gz.
Signature
(vhdl-template-elsif)
Documentation
Insert an elsif statement.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-template-elsif ()
"Insert an elsif statement."
(interactive)
(let ((start (point))
margin)
(vhdl-insert-keyword "ELSIF ")
(when vhdl-conditions-in-parenthesis (insert "("))
(when (vhdl-template-field "condition" nil t start (point))
(when vhdl-conditions-in-parenthesis (insert ")"))
(indent-according-to-mode)
(setq margin (current-indentation))
(vhdl-insert-keyword
(concat " " (cond ((vhdl-sequential-statement-p) "THEN")
((vhdl-standard-p 'ams) "USE")
(t "GENERATE")) "\n"))
(indent-to (+ margin vhdl-basic-offset)))))