From: martin rudalics <rudalics@gmx.at>
To: Drew Adams <drew.adams@oracle.com>, 3371@emacsbugs.donarmstrong.com
Subject: bug#3371: 23.0.94; doc of `comment-style'
Date: Mon, 25 May 2009 09:04:35 +0200 [thread overview]
Message-ID: <4A1A4303.7060803@gmx.at> (raw)
In-Reply-To: <CBA40A2B27C74FC58A4F0C45CD242D24@us.oracle.com>
[-- 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)
next prev parent reply other threads:[~2009-05-25 7:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-25 2:09 bug#3371: 23.0.94; doc of `comment-style' Drew Adams
2009-05-25 7:04 ` martin rudalics [this message]
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
-- strict thread matches above, loose matches on Subject: below --
2009-05-26 3:34 Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A1A4303.7060803@gmx.at \
--to=rudalics@gmx.at \
--cc=3371@emacsbugs.donarmstrong.com \
--cc=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).