[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#3371: 23.0.94; doc of `comment-style'
From: |
martin rudalics |
Subject: |
bug#3371: 23.0.94; doc of `comment-style' |
Date: |
Mon, 25 May 2009 09:04:35 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> "Style to be used for `comment-region'.
> See `comment-styles' for a list of available styles."
>
> 1. Put the available styles here.
>
> 2. There is no such function or variable as `comment-styles'.
We probably could add two autoload cookies to newcomment.el (I don't
recall why I wanted the one for `comment-empty-lines' once).
martin
*** newcomment.el.~1.116.~ 2009-01-05 09:59:16.000000000 +0100
--- newcomment.el 2009-05-25 08:36:37.000000000 +0200
***************
*** 185,190 ****
--- 185,191 ----
This should generally stay 0, except for a few modes like Lisp where
it is 1 so that regions are commented with two or three semi-colons.")
+ ;;;###autoload
(defconst comment-styles
'((plain . (nil nil nil nil))
(indent . (nil nil nil t))
***************
*** 240,245 ****
--- 241,247 ----
:type 'boolean
:group 'comment)
+ ;;;###autoload
(defcustom comment-empty-lines nil
"If nil, `comment-region' does not comment out empty lines.
If t, it always comments out empty lines.
***************
*** 1232,1238 ****
(buffer-substring (point)
(progn (move-to-left-margin)
(point)))))))))))))
!
;;;###autoload
(defun comment-indent-new-line (&optional soft)
--- 1234,1240 ----
(buffer-substring (point)
(progn (move-to-left-margin)
(point)))))))))))))
!
;;;###autoload
(defun comment-indent-new-line (&optional soft)