aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-05-26 03:16:31 +0000
committerChong Yidong2009-05-26 03:16:31 +0000
commit707f4689ea69233f9ac07de3c5a2d2ef5599592f (patch)
tree6c7d3113eca021ded0e6146fcc4c3ebc0c9a2dc5
parentae98e41f9460d469d930c6c73242442deebd0997 (diff)
downloademacs-707f4689ea69233f9ac07de3c5a2d2ef5599592f.tar.gz
emacs-707f4689ea69233f9ac07de3c5a2d2ef5599592f.zip
* newcomment.el (comment-region): Doc fix (Bug#3370).
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/newcomment.el14
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7f07f5f5608..b15c72614cd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12009-05-26 Chong Yidong <cyd@stupidchicken.com>
2
3 * newcomment.el (comment-region): Doc fix (Bug#3370).
4
12009-05-24 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> 52009-05-24 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2 6
3 * mail/smtpmail.el: Indent code properly to make it more readable. 7 * mail/smtpmail.el: Indent code properly to make it more readable.
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index 3c922b8d1c1..c7ad8821b6f 100644
--- a/lisp/newcomment.el
+++ b/lisp/newcomment.el
@@ -1046,12 +1046,16 @@ the region rather than at left margin."
1046With just \\[universal-argument] prefix arg, uncomment each line in region BEG .. END. 1046With just \\[universal-argument] prefix arg, uncomment each line in region BEG .. END.
1047Numeric prefix ARG means use ARG comment characters. 1047Numeric prefix ARG means use ARG comment characters.
1048If ARG is negative, delete that many comment characters instead. 1048If ARG is negative, delete that many comment characters instead.
1049By default, comments start at the left margin, are terminated on each line,
1050even for syntax in which newline does not end the comment and blank lines
1051do not get comments. This can be changed with `comment-style'.
1052 1049
1053The strings used as comment starts are built from 1050The strings used as comment starts are built from `comment-start'
1054`comment-start' without trailing spaces and `comment-padding'." 1051and `comment-padding'; the strings used as comment ends are built
1052from `comment-end' and `comment-padding'.
1053
1054By default, the `comment-start' markers are inserted at the
1055current indentation of the region, and comments are terminated on
1056each line (even for syntaxes in which newline does not end the
1057comment and blank lines do not get comments). This can be
1058changed with `comment-style'."
1055 (interactive "*r\nP") 1059 (interactive "*r\nP")
1056 (comment-normalize-vars) 1060 (comment-normalize-vars)
1057 (if (> beg end) (let (mid) (setq mid beg beg end end mid))) 1061 (if (> beg end) (let (mid) (setq mid beg beg end end mid)))