(defun xlsl-uncomment-region (p1 p2)
"Remove “//” in the beginning of each line of selected text."
(interactive "r")
(let ((deactivate-mark nil))
(save-excursion
(goto-char p2)
(while (>= (point) p1)
(xlsl-uncomment-current-line)
(previous-line)
)
)
)
)
took me about 3 hours. Coding this i realized there's some details,
more complex than i originally thought but still not much work.
Possibly down the road i'll go back to basing it on “newcomment.el”.
PS is there a command to compact the ending parens?