# HG changeset patch # User Chong Yidong # Date 1243307791 0 # Node ID 0d056af7a0afa3e4f4b6c59b47164c2c141b4543 # Parent 4f2e369530f6f219a64ea1be9861ecca784c3f5e * newcomment.el (comment-region): Doc fix (Bug#3370). diff -r 4f2e369530f6 -r 0d056af7a0af lisp/ChangeLog --- a/lisp/ChangeLog Tue May 26 03:04:49 2009 +0000 +++ b/lisp/ChangeLog Tue May 26 03:16:31 2009 +0000 @@ -1,3 +1,7 @@ +2009-05-26 Chong Yidong + + * newcomment.el (comment-region): Doc fix (Bug#3370). + 2009-05-24 Roland Winkler * mail/smtpmail.el: Indent code properly to make it more readable. diff -r 4f2e369530f6 -r 0d056af7a0af lisp/newcomment.el --- a/lisp/newcomment.el Tue May 26 03:04:49 2009 +0000 +++ b/lisp/newcomment.el Tue May 26 03:16:31 2009 +0000 @@ -1046,12 +1046,16 @@ With just \\[universal-argument] prefix arg, uncomment each line in region BEG .. END. Numeric prefix ARG means use ARG comment characters. If ARG is negative, delete that many comment characters instead. -By default, comments start at the left margin, are terminated on each line, -even for syntax in which newline does not end the comment and blank lines -do not get comments. This can be changed with `comment-style'. + +The strings used as comment starts are built from `comment-start' +and `comment-padding'; the strings used as comment ends are built +from `comment-end' and `comment-padding'. -The strings used as comment starts are built from -`comment-start' without trailing spaces and `comment-padding'." +By default, the `comment-start' markers are inserted at the +current indentation of the region, and comments are terminated on +each line (even for syntaxes in which newline does not end the +comment and blank lines do not get comments). This can be +changed with `comment-style'." (interactive "*r\nP") (comment-normalize-vars) (if (> beg end) (let (mid) (setq mid beg beg end end mid)))