Function: verilog-get-comment-align-indent
verilog-get-comment-align-indent is a byte-compiled function defined
in verilog-mode.el.gz.
Signature
(verilog-get-comment-align-indent B ENDPOS)
Documentation
Return the indent level that will line up comments within the region.
Region is defined by B and ENDPOS.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
(defun verilog-get-comment-align-indent (b endpos)
"Return the indent level that will line up comments within the region.
Region is defined by B and ENDPOS."
(save-excursion
(let ((ind 0)
e comm-ind)
(goto-char b)
;; Get rightmost position
(while (progn (setq e (marker-position endpos))
(< (point) e))
(when (verilog-search-comment-in-declaration e)
(end-of-line)
(verilog-backward-syntactic-ws)
(setq comm-ind (1+ (current-column)))
(when (> comm-ind ind)
(setq ind comm-ind)))
(forward-line 1))
ind)))