From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: RE: bad comment indentation in Emacs Lisp Date: Sun, 10 Feb 2008 17:29:08 -0800 Message-ID: <000501c86c4d$8022e030$c341908d@us.oracle.com> References: <009c01c8684c$3dcb3570$0059908d@us.oracle.com><001201c86c35$a58e92f0$2958908d@us.oracle.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 1202693382 27023 80.91.229.12 (11 Feb 2008 01:29:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 01:29:42 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rms@gnu.org To: "'Stefan Monnier'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 11 02:30:05 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JONUi-0001Kn-Lv for ged-emacs-devel@m.gmane.org; Mon, 11 Feb 2008 02:30:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JONUF-0006oh-8V for ged-emacs-devel@m.gmane.org; Sun, 10 Feb 2008 20:29:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JONUB-0006oZ-Hj for emacs-devel@gnu.org; Sun, 10 Feb 2008 20:29:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JONU9-0006oN-I8 for emacs-devel@gnu.org; Sun, 10 Feb 2008 20:29:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JONU9-0006oK-AZ for emacs-devel@gnu.org; Sun, 10 Feb 2008 20:29:29 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JONU9-0000te-AD for emacs-devel@gnu.org; Sun, 10 Feb 2008 20:29:29 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JONU8-0004CJ-Rq for emacs-pretest-bug@gnu.org; Sun, 10 Feb 2008 20:29:28 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JONU5-0000tG-VB for emacs-pretest-bug@gnu.org; Sun, 10 Feb 2008 20:29:29 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JONU2-0000sn-2d; Sun, 10 Feb 2008 20:29:22 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m1B1TI5I006606; Sun, 10 Feb 2008 19:29:19 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m1AN36XT008968; Sun, 10 Feb 2008 18:29:18 -0700 Original-Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3568719671202693350; Sun, 10 Feb 2008 17:29:10 -0800 Original-Received: from dradamslap1 (/141.144.65.195) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 10 Feb 2008 17:29:09 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AchsOgeDXAboSHYMSj+GD7Rm4XcjMgAEYexg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88699 gmane.emacs.pretest.bugs:21007 Archived-At: > >> > (let (;; foobar > >> > ;; toto > >> > (titi...))) > >> > > >> > You get this: > >> > (let ( ;; foobar > >> > ;; toto > >> > (titi...))) > >> > > >> > However, if you just use TAB on each line, you don't get that. > >> > >> Right, because indent-region does both TAB and M-; on each > >> line (more or less). > > > No. Neither `M-;' nor TAB moves `;;' comments, except that > > TAB can move a line that *starts* with `;;'. That is not the > > case for the `;;' comment that is moved here. > > Huh? Where do you get this idea? Have you tried M-; on the > `let' line? Hm. I stand corrected. In Emacs 20 it behaves as I described (both for `M-;' and `C-M-q'). I thought this was broken in Emacs 22, but it seems it was broken in Emacs 21. ;-) I never used Emacs 21 (a giant regression compared with Emacs 20, at least on Windows), and I didn't bother to test it for this - mea culpa. What is the rationale for this kind of comment indentation? It certainly doesn't indent the same as `;' or the same as `;;' at the beginning of a line. Why insert a single space here - what's the rationale? Why move `;;' ever, relative to the rest of its line? Anyway, guess it's too late to complain now... So please consider this a feature request. Please DTRT by not inserting a space - never move `;;' (except for line indentation, when it starts a line).