From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5595: Commenting in F90 Date: Fri, 19 Feb 2010 13:25:16 -0500 Message-ID: References: <4B7D16C2.3070908@alice.it> <4B7E5CED.5040509@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266605629 32373 80.91.229.12 (19 Feb 2010 18:53:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2010 18:53:49 +0000 (UTC) Cc: 5595@debbugs.gnu.org To: Angelo Graziosi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 19 19:53:47 2010 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.69) (envelope-from ) id 1NiXyu-0007T4-MJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2010 19:53:41 +0100 Original-Received: from localhost ([127.0.0.1]:44157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiXyt-0005uQ-Ud for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2010 13:53:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiXyD-0005K6-Hj for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 13:52:57 -0500 Original-Received: from [140.186.70.92] (port=59751 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiXyC-0005IK-Ig for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 13:52:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NiXyB-00039v-IS for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 13:52:56 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59115) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiXyB-00039q-Fm for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 13:52:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NiXY9-0005gK-U9; Fri, 19 Feb 2010 13:26:01 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Feb 2010 18:26:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5595 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5595-submit@debbugs.gnu.org id=B5595.126660394421822 (code B ref 5595); Fri, 19 Feb 2010 18:26:01 +0000 Original-Received: (at 5595) by debbugs.gnu.org; 19 Feb 2010 18:25:44 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiXXs-0005fv-0A for submit@debbugs.gnu.org; Fri, 19 Feb 2010 13:25:44 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiXXe-0005fd-LJ for 5595@debbugs.gnu.org; Fri, 19 Feb 2010 13:25:42 -0500 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o1JIPGQf012194; Fri, 19 Feb 2010 13:25:16 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 0A2C13A6E5; Fri, 19 Feb 2010 13:25:16 -0500 (EST) In-Reply-To: <4B7E5CED.5040509@alice.it> (Angelo Graziosi's message of "Fri, 19 Feb 2010 10:42:05 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3474=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 19 Feb 2010 13:26:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:35199 Archived-At: >> It's a little ambiguous from that as to whether it indents the first >> line or not. The Emacs manual is clearer, saying: >> Like followed by inserting and aligning a comment >> Ie, it does not indent the first line, only the second. >> Under these criteria, it appears to be working correctly. > Uhm... > It is not clear why this happens only with F90 mode. Repeating with > foo.cpp' (C/C++ mode and '!' --> '//') or with 'foo.f' (Fortran mode, > !' --> 'C'), C-M-j sets the comment character correctly indended (to me!), > under the previous and not shifted... comment-indent-new-line is written with a "traditional" free text style of languages and comments, so I'm not surprised it doesn't work 100% right under languages such as Fortran. It's a nasty function, but I've spent a fair bit of time in it (years ago), so I should be able to track down the problem. Stefan