GNU bug report logs -
#3371
23.0.94; doc of `comment-style'
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Mon, 25 May 2009 02:20:03 UTC
Severity: minor
Tags: notabug
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3371 in the body.
You can then email your comments to 3371 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3371
; Package
emacs
.
(Mon, 25 May 2009 02:20:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Drew Adams" <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 25 May 2009 02:20:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
Doc string:
"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'.
3. `comment-style' is mentioned in neither the Emacs manual nor the
Elisp manual.
IOW, there is really no doc explaining what this is, what it does, or
how it does it.
In GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600)
of 2009-05-24 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3371
; Package
emacs
.
(Mon, 25 May 2009 07:20:12 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
martin rudalics <rudalics <at> gmx.at>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 25 May 2009 07:20:12 GMT)
Full text and
rfc822 format available.
Message #10 received at 3371 <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
> "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.diff (text/plain, inline)]
*** 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)
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3371
; Package
emacs
.
(Mon, 25 May 2009 22:25:07 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Mon, 25 May 2009 22:25:07 GMT)
Full text and
rfc822 format available.
Message #15 received at 3371 <at> emacsbugs.donarmstrong.com (full text, mbox):
> We probably could add two autoload cookies to newcomment.el (I don't
> recall why I wanted the one for `comment-empty-lines' once).
I'd much rather remove the one on comment-style.
Stefan
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3371
; Package
emacs
.
(Tue, 26 May 2009 03:40:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Chong Yidong <cyd <at> stupidchicken.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 26 May 2009 03:40:04 GMT)
Full text and
rfc822 format available.
Message #20 received at 3371 <at> emacsbugs.donarmstrong.com (full text, mbox):
> > We probably could add two autoload cookies to newcomment.el (I don't
> > recall why I wanted the one for `comment-empty-lines' once).
>
> I'd much rather remove the one on comment-style.
But the comment-region docstring refers to it.
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3371
; Package
emacs
.
(Tue, 26 May 2009 09:35:08 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
martin rudalics <rudalics <at> gmx.at>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 26 May 2009 09:35:09 GMT)
Full text and
rfc822 format available.
Message #25 received at 3371 <at> emacsbugs.donarmstrong.com (full text, mbox):
>> We probably could add two autoload cookies to newcomment.el (I don't
>> recall why I wanted the one for `comment-empty-lines' once).
>
> I'd much rather remove the one on comment-style.
This is an option so `comment-styles' will show up anyway when people
customize `comment-style'. Nothing won't stop people from using a
comment style you dislike personally. The more you hide things like
`comment-styles' the more they become some sort of a forbidden fruit.
martin
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3371
; Package
emacs
.
(Tue, 26 May 2009 17:15:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Tue, 26 May 2009 17:15:04 GMT)
Full text and
rfc822 format available.
Message #30 received at 3371 <at> emacsbugs.donarmstrong.com (full text, mbox):
>>> We probably could add two autoload cookies to newcomment.el (I don't
>>> recall why I wanted the one for `comment-empty-lines' once).
>> I'd much rather remove the one on comment-style.
> This is an option so `comment-styles' will show up anyway when people
> customize `comment-style'. Nothing won't stop people from using a
> comment style you dislike personally. The more you hide things like
> `comment-styles' the more they become some sort of a forbidden fruit.
I don't want to hide comment-styles.
I just don't like autoloading variables.
Of course, in this particular case, my favorite choice has always been
to preload newcomment.el.
Stefan
Severity set to 'minor' from 'normal'
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Wed, 04 Nov 2009 22:10:18 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#3371
; Package
emacs
.
(Mon, 11 Jul 2011 16:08:02 GMT)
Full text and
rfc822 format available.
Message #35 received at 3371 <at> debbugs.gnu.org (full text, mbox):
"Drew Adams" <drew.adams <at> oracle.com> writes:
> "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'.
`comment-styles' is defined in Emacs 24, at least, and has the list of
the styles.
> 3. `comment-style' is mentioned in neither the Emacs manual nor the
> Elisp manual.
>
> IOW, there is really no doc explaining what this is, what it does, or
> how it does it.
`comment-region' links to it, which I think is sufficient for people to
discover it if they want to customize `comment-region'.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) notabug.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 11 Jul 2011 16:08:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
3371 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Mon, 11 Jul 2011 16:08:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 09 Aug 2011 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 319 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.