Tags: patch Tried to customize 'comment-region' to use multi-line comments, so when commenting out such region in html-mode: line 1 line 2 line 3 instead of adding comments to each line: to add comments only at the beginning/end: According to the documentation, a legitimate way to do this is to use such customization: (setq-local comment-style 'extra-line comment-continue "") But currently it has no effect. So needed to fix newcomment.el. One possible fix is to return the original string from 'comment-padright' even when the string contains only whitespace. Maybe this would be the right fix, but still not sure about other calls of 'comment-padright'. So a safer fix would be to do this in the caller: