From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#3370: 23.0.94; `comment-region' indents comment chars inappropriately Date: Mon, 25 May 2009 00:02:02 -0700 Message-ID: <7E9473EA45C34C5EBECFBD78AB625B5E@us.oracle.com> References: <87prdynkm5.fsf@cyd.mit.edu><87tz3admt1.fsf@cyd.mit.edu> <4A19F427.40606@gnu.org> <200905250526.n4P5Q4sl024737@godzilla.ics.uci.edu> Reply-To: Drew Adams , 3370@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243238116 23596 80.91.229.12 (25 May 2009 07:55:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2009 07:55:16 +0000 (UTC) Cc: 'Chong Yidong' , rms@gnu.org, 3370@emacsbugs.donarmstrong.com To: "'Dan Nicolaescu'" , "'Jason Rumney'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 25 09:55:08 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 1M8V1Y-0005LI-Ga for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2009 09:55:08 +0200 Original-Received: from localhost ([127.0.0.1]:43368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8V1Y-0003R8-3y for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2009 03:55:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8V17-0003Fp-4G for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8V11-0003E5-T0 for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:40 -0400 Original-Received: from [199.232.76.173] (port=38622 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8V11-0003Ds-Ol for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:35 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:41092) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M8V11-0004Un-2h for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8V10-0004gE-Bs for bug-gnu-emacs@gnu.org; Mon, 25 May 2009 03:54:34 -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 n4P7TBOo008345; 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 n4P7A8F0005717; Mon, 25 May 2009 00:10:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 25 May 2009 07:10:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3370 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3370-submit@emacsbugs.donarmstrong.com id=B3370.12432349174125 (code B ref 3370); Mon, 25 May 2009 07:10:08 +0000 Original-Received: (at 3370) by emacsbugs.donarmstrong.com; 25 May 2009 07:01:57 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from rgminet11.oracle.com (rcsinet11.oracle.com [148.87.113.123]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4P71rtv004112 for <3370@emacsbugs.donarmstrong.com>; Mon, 25 May 2009 00:01:54 -0700 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4P72NZr004108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 25 May 2009 07:02:24 GMT Original-Received: from abhmt007.oracle.com (abhmt007.oracle.com [141.146.116.16]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4P72TEe010194; Mon, 25 May 2009 07:02:29 GMT Original-Received: from dradamslap1 (/98.210.250.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 May 2009 00:01:42 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <200905250526.n4P5Q4sl024737@godzilla.ics.uci.edu> Thread-Index: Acnc+dXgknCJ4VrJSaqcFeGPm2Nm8gACsPYg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt007.oracle.com [141.146.116.16] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4A1A4258.0013:SCFSTAT5015188,ss=1,fgs=0 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:40 -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:28141 Archived-At: > 'indent was also the preference of the person that wrote the new > incarnation of the region indent code and who explicitly approved the > change: Stefan. `comment-region' is not, or at least was not, about indenting. It is about commenting out the code in the region. There is nothing in the Elisp manual about `comment-region'. What there is about it in the Emacs manual does not mention at all how it affects indenting or is affected by indenting, and it does not mention `comment-style' at all. The only mention of indenting in a node that talks also about `comment-region' is the mention that lines with multiple comment delimiters can sometimes be indented differently, depending on the number of comment delimiters. That has always been the case in Emacs (;;; vs ;; vs ; - indented differently by TAB or C-M-q etc.). Previously, there was no relation between `comment-region' and indenting, AFAIK. And there is still no documented relation, that I can find. Finally, the doc string for `comment-region' still says exactly what it said for Emacs 22. And it says that it comments (or uncomments) "each line" in the region. Not just some text in the line, starting after some whitespace, but the (whole) line. And it says nothing about indenting the commented line. And it says, "By default, comments start at the left margin". Admittedly, that is vague and could be interpreted to mean different things. But there is definitely no mention that `comment-region' indents lines that it comments, that is, that it produces an indented comment.