changeset 109817:012ee86d25c7

* lisp/newcomment.el (comment-add): Move comment to docstring.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 17 Aug 2010 21:38:30 +0200
parents 793aeadb7c43
children 0710ff9a8063
files lisp/newcomment.el
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/newcomment.el	Tue Aug 17 09:32:08 2010 -0700
+++ b/lisp/newcomment.el	Tue Aug 17 21:38:30 2010 +0200
@@ -945,12 +945,12 @@
 		   (delete-char n)
 		   (setq ,bindent (- ,bindent n)))))))))))
 
-;; Compute the number of extra comment starter characters
-;; (extra semicolons in Lisp mode, extra stars in C mode, etc.)
-;; If ARG is non-nil, just follow ARG.
-;; If the comment-starter is multi-char, just follow ARG.
-;; Otherwise obey comment-add, and double it if EXTRA is non-nil.
 (defun comment-add (arg)
+  "Compute the number of extra comment starter characters
+\(extra semicolons in Lisp mode, extra stars in C mode, etc.)
+If ARG is non-nil, just follow ARG.
+If the comment starter is multi-char, just follow ARG.
+Otherwise obey `comment-add'."
   (if (and (null arg) (= (string-match "[ \t]*\\'" comment-start) 1))
       (* comment-add 1)
     (1- (prefix-numeric-value arg))))