Function: verilog-align-comments
verilog-align-comments is a byte-compiled function defined in
verilog-mode.el.gz.
Signature
(verilog-align-comments STARTPOS ENDPOS)
Documentation
Align inline comments between STARTPOS and ENDPOS.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/verilog-mode.el.gz
;;
(defun verilog-align-comments (startpos endpos)
"Align inline comments between STARTPOS and ENDPOS."
(let (comm-ind e)
(when verilog-align-decl-expr-comments
(setq comm-ind (verilog-get-comment-align-indent (marker-position startpos) endpos))
(save-excursion
(goto-char (marker-position startpos))
(while (progn (setq e (marker-position endpos))
(< (point) e))
(when (verilog-search-comment-in-declaration e)
(goto-char (match-beginning 0))
(delete-horizontal-space)
(indent-to (1- (+ comm-ind verilog-align-comment-distance)))))))))