* bug#3371: 23.0.94; doc of `comment-style'
@ 2009-05-26 3:34 Chong Yidong
0 siblings, 0 replies; 7+ messages in thread
From: Chong Yidong @ 2009-05-26 3:34 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 3371
> > 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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#3371: 23.0.94; doc of `comment-style'
@ 2009-05-25 2:09 Drew Adams
2009-05-25 7:04 ` martin rudalics
2011-07-11 16:07 ` Lars Magne Ingebrigtsen
0 siblings, 2 replies; 7+ messages in thread
From: Drew Adams @ 2009-05-25 2:09 UTC (permalink / raw)
To: emacs-pretest-bug
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)'
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#3371: 23.0.94; doc of `comment-style'
2009-05-25 2:09 Drew Adams
@ 2009-05-25 7:04 ` martin rudalics
2009-05-25 13:44 ` Stefan Monnier
2011-07-11 16:07 ` Lars Magne Ingebrigtsen
1 sibling, 1 reply; 7+ messages in thread
From: martin rudalics @ 2009-05-25 7:04 UTC (permalink / raw)
To: Drew Adams, 3371
[-- Attachment #1: Type: text/plain, Size: 347 bytes --]
> "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
[-- Attachment #2: newcomment.el.diff --]
[-- Type: text/plain, Size: 1322 bytes --]
*** 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)
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#3371: 23.0.94; doc of `comment-style'
2009-05-25 7:04 ` martin rudalics
@ 2009-05-25 13:44 ` Stefan Monnier
2009-05-26 9:29 ` martin rudalics
0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2009-05-25 13:44 UTC (permalink / raw)
To: martin rudalics; +Cc: 3371
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#3371: 23.0.94; doc of `comment-style'
2009-05-25 13:44 ` Stefan Monnier
@ 2009-05-26 9:29 ` martin rudalics
2009-05-26 17:06 ` Stefan Monnier
0 siblings, 1 reply; 7+ messages in thread
From: martin rudalics @ 2009-05-26 9:29 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 3371
>> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#3371: 23.0.94; doc of `comment-style'
2009-05-26 9:29 ` martin rudalics
@ 2009-05-26 17:06 ` Stefan Monnier
0 siblings, 0 replies; 7+ messages in thread
From: Stefan Monnier @ 2009-05-26 17:06 UTC (permalink / raw)
To: martin rudalics; +Cc: 3371
>>> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#3371: 23.0.94; doc of `comment-style'
2009-05-25 2:09 Drew Adams
2009-05-25 7:04 ` martin rudalics
@ 2011-07-11 16:07 ` Lars Magne Ingebrigtsen
1 sibling, 0 replies; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-11 16:07 UTC (permalink / raw)
To: Drew Adams; +Cc: 3371
"Drew Adams" <drew.adams@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/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-07-11 16:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-26 3:34 bug#3371: 23.0.94; doc of `comment-style' Chong Yidong
-- strict thread matches above, loose matches on Subject: below --
2009-05-25 2:09 Drew Adams
2009-05-25 7:04 ` martin rudalics
2009-05-25 13:44 ` Stefan Monnier
2009-05-26 9:29 ` martin rudalics
2009-05-26 17:06 ` Stefan Monnier
2011-07-11 16:07 ` Lars Magne Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.