Function: vhdl-electric-return

vhdl-electric-return is an interactive and byte-compiled function defined in vhdl-mode.el.gz.

Signature

(vhdl-electric-return)

Documentation

newline-and-indent or indent-new-comment-line if in comment and preceding character is a space.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-electric-return ()
  "`newline-and-indent' or `indent-new-comment-line' if in comment and preceding
character is a space."
  (interactive)
  (if (and (= (preceding-char) ? ) (vhdl-in-comment-p))
      (indent-new-comment-line)
    (when (and (>= (preceding-char) ?a) (<= (preceding-char) ?z)
	       (not (vhdl-in-comment-p)))
      (vhdl-fix-case-word -1))
    (newline-and-indent)))