]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/newcomment.el (comment-add): Move comment to docstring.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 17 Aug 2010 19:38:30 +0000 (21:38 +0200)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 17 Aug 2010 19:38:30 +0000 (21:38 +0200)
lisp/newcomment.el

index 5d2da4673473745367fe71e6d147a52da476ac6e..5a6cdcd68860384e9533a6c286edb47123ef0abf 100644 (file)
@@ -945,12 +945,12 @@ indentation to be kept as it was before narrowing."
                   (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))))