Function: vhdl-paste-group-comment
vhdl-paste-group-comment is a byte-compiled function defined in
vhdl-mode.el.gz.
Signature
(vhdl-paste-group-comment STRING INDENT)
Documentation
Paste comment and empty lines from STRING between groups of lines with INDENT.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
(defun vhdl-paste-group-comment (string indent)
"Paste comment and empty lines from STRING between groups of lines with INDENT."
(let ((pos (point-marker)))
(when (> indent 0)
(while (string-match "^\\(--\\)" string)
(setq string (concat (substring string 0 (match-beginning 1))
(make-string indent ? )
(substring string (match-beginning 1))))))
(beginning-of-line)
(insert string)
(goto-char pos)))