From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#3371: 23.0.94; doc of `comment-style' Date: Mon, 25 May 2009 09:04:35 +0200 Message-ID: <4A1A4303.7060803@gmx.at> References: Reply-To: martin rudalics , 3371@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060108040401000007020308" X-Trace: ger.gmane.org 1243238107 23572 80.91.229.12 (25 May 2009 07:55:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2009 07:55:07 +0000 (UTC) To: Drew Adams , 3371@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 25 09:55:00 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M8V1L-0005Ea-HW for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2009 09:54:55 +0200 Original-Received: from localhost ([127.0.0.1]:43260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8V1L-0003Kw-4o for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2009 03:54:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8V16-0003FY-3M for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8V11-0003DC-7K for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:39 -0400 Original-Received: from [199.232.76.173] (port=38621 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8V11-0003D9-47 for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:35 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:41086) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M8V10-0004Uf-FJ for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:34 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8V0z-0004gE-LH for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4P7TBOm008345; Mon, 25 May 2009 00:29:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4P7KCxO007160; Mon, 25 May 2009 00:20:12 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 25 May 2009 07:20:12 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3371 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3371-submit@emacsbugs.donarmstrong.com id=B3371.12432354595943 (code B ref 3371); Mon, 25 May 2009 07:20:12 +0000 Original-Received: (at 3371) by emacsbugs.donarmstrong.com; 25 May 2009 07:10:59 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n4P7ArTS005930 for <3371@emacsbugs.donarmstrong.com>; Mon, 25 May 2009 00:10:54 -0700 Original-Received: (qmail invoked by alias); 25 May 2009 07:10:47 -0000 Original-Received: from 62-47-62-211.adsl.highway.telekom.at (EHLO [62.47.62.211]) [62.47.62.211] by mail.gmx.net (mp045) with SMTP; 25 May 2009 09:10:47 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/4f1wRAvT4Q30cpnzd+o6NLAOh2/DDU4Vk3IIkF+ wVfZtLPETUZBPF User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.75,0.6 X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Mon, 25 May 2009 03:54:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28140 Archived-At: This is a multi-part message in MIME format. --------------060108040401000007020308 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > "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 --------------060108040401000007020308 Content-Type: text/plain; name="newcomment.el.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="newcomment.el.diff" *** 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) --------------060108040401000007020308--