Function: vhdl-backward-same-indent
vhdl-backward-same-indent is an interactive and byte-compiled function
defined in vhdl-mode.el.gz.
Signature
(vhdl-backward-same-indent)
Documentation
Move backward to previous line with same indent.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-backward-same-indent ()
"Move backward to previous line with same indent."
(interactive)
(let ((pos (point))
(indent (current-indentation)))
(beginning-of-line -0)
(while (and (not (bobp))
(or (looking-at "^\\s-*\\(--.*\\)?$")
(> (current-indentation) indent)))
(beginning-of-line -0))
(if (= (current-indentation) indent)
(back-to-indentation)
(message "No preceding line with same indent found in this block")
(goto-char pos)
nil)))