From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#3370: 23.0.94; `comment-region' indents comment chars inappropriately Date: Sun, 24 May 2009 15:31:08 -0700 Message-ID: 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 1243205408 27468 80.91.229.12 (24 May 2009 22:50:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 May 2009 22:50:08 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 25 00:50:01 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 1M8MVz-0006tq-Vx for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 May 2009 00:50:00 +0200 Original-Received: from localhost ([127.0.0.1]:34303 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8MVz-00010y-F4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 May 2009 18:49:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8MVK-0000jj-KA for bug-gnu-emacs@gnu.org; Sun, 24 May 2009 18:49:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8MVG-0000gN-DI for bug-gnu-emacs@gnu.org; Sun, 24 May 2009 18:49:18 -0400 Original-Received: from [199.232.76.173] (port=47323 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8MVG-0000gD-40 for bug-gnu-emacs@gnu.org; Sun, 24 May 2009 18:49:14 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57929) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M8MVF-0005Mf-JG for bug-gnu-emacs@gnu.org; Sun, 24 May 2009 18:49:13 -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 n4OMnBDV012292; Sun, 24 May 2009 15:49:11 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4OMe47P010656; Sun, 24 May 2009 15:40:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Drew Adams" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 24 May 2009 22:40:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3370 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12432042679236 (code B ref -1); Sun, 24 May 2009 22:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 24 May 2009 22:31:07 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4OMV3EZ009230 for ; Sun, 24 May 2009 15:31:04 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:45625 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1M8MDe-0003CW-AR for emacs-pretest-bug@gnu.org; Sun, 24 May 2009 18:31:02 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1M8MDd-00020o-1G for emacs-pretest-bug@gnu.org; Sun, 24 May 2009 18:31:02 -0400 Original-Received: from acsinet11.oracle.com ([141.146.126.233]:33628) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M8MDc-0001xI-KN for emacs-pretest-bug@gnu.org; Sun, 24 May 2009 18:31:00 -0400 Original-Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4OMVTed001723 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 24 May 2009 22:31:30 GMT Original-Received: from abhmt004.oracle.com (abhmt004.oracle.com [141.146.116.13]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4OMUuii018911 for ; Sun, 24 May 2009 22:30:56 GMT Original-Received: from dradamslap1 (/98.210.250.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 24 May 2009 15:30:52 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acncv1VQt2eAVZT8Rj2XSA6IZi/qhQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt004.oracle.com [141.146.116.13] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.4A19CA9D.0054:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 24 May 2009 18:49:18 -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:28113 gmane.emacs.pretest.bugs:24493 Archived-At: emacs -Q In buffer *scratch*, type this: SPC SPC ` a b c d e f ' RET That inserts this line, followed by a newline: `abcdef' Select the line, including the newline at its end: `M-< C-SPC C-n'. M-x comment-region In Emacs 23, this is the result: ;; `abcdef' In all previous versions of Emacs, the comment chars are inserted at the start of the line - they are not indented two spaces: ;; `abcdef' This is so for Emacs 20, 21, and 22. (Though in Emacs 20 only one semicolon is used.) This breaks any code that depends on the traditional behavior. For instance, I have code that updates file-header lines, and now, instead of this: ;; Features that might be required by this library: ;; ;; `abcdef', `ghijk', `lmnop'. ;; I get this; ;; Features that might be required by this library: ;; ;; `abcdef', `ghijk', `lmnop'. ;; I need this code to work in all Emacs versions. I certainly hope you do not consider this change to be a feature instead of a bug. 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)'