From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.bugs Subject: bug#5595: Commenting in F90 Date: Sun, 21 Feb 2010 01:33:29 +0100 Message-ID: <4B807F59.5020508@alice.it> References: <4B7D16C2.3070908@alice.it> <4B7E5CED.5040509@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1266812664 25812 80.91.229.12 (22 Feb 2010 04:24:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Feb 2010 04:24:24 +0000 (UTC) To: 5595@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 21 02:45:36 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 1Nj04J-0004tr-Po for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Feb 2010 01:53:08 +0100 Original-Received: from localhost ([127.0.0.1]:32806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj04J-0003Xy-BB for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Feb 2010 19:53:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nj04F-0003Wy-H8 for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2010 19:53:03 -0500 Original-Received: from [140.186.70.92] (port=35241 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nj04C-0003WY-Ur for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2010 19:53:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nj04B-0000eT-UY for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2010 19:53:00 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49110) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nj04B-0000eP-So for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2010 19:52:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nizlq-0003Ps-JT; Sat, 20 Feb 2010 19:34:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Angelo Graziosi Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Feb 2010 00:34:02 +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.126671242313116 (code B ref 5595); Sun, 21 Feb 2010 00:34:02 +0000 Original-Received: (at 5595) by debbugs.gnu.org; 21 Feb 2010 00:33:43 +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 1NizlX-0003PU-1g for submit@debbugs.gnu.org; Sat, 20 Feb 2010 19:33:43 -0500 Original-Received: from smtp-out108.alice.it ([85.37.17.108]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NizlU-0003PJ-A0 for 5595@debbugs.gnu.org; Sat, 20 Feb 2010 19:33:41 -0500 Original-Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-out108.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Sun, 21 Feb 2010 01:33:35 +0100 Original-Received: from FBCMCL01B01.fbc.local ([192.168.69.82]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 21 Feb 2010 01:33:35 +0100 Original-Received: from [87.3.34.28] ([87.3.34.28]) by FBCMCL01B01.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Sun, 21 Feb 2010 01:33:35 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 In-Reply-To: X-OriginalArrivalTime: 21 Feb 2010 00:33:35.0859 (UTC) FILETIME=[810AEC30:01CAB28D] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 20 Feb 2010 19:34:02 -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:35223 Archived-At: Il 19/02/2010 19.01, Glenn Morris ha scritto: > Angelo Graziosi wrote: > >> 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... > > But 'C' comments in Fortran mode get zero indentation, so how can one > tell if this functin is indenting the first line or not? > > Like I said, I don't really understand what this function is supposed > to do, nor which variables modes should set to make it work correctly. > > Perhaps the maintainer of newcomment.el can help us out... ...or, perhaps, the indentation should regard only the cursor, not the character! For example, editing bash script, the following happens (with the cursor, X, at the end of last line): ## [...] ## [...] ## foo text...X <== last line Typing C-M-j produces ## [...] ## [...] ## foo text... ## X with the cursor (X) under the 'f' of 'foo': the character '##' is vertically aligned. Ciao, Angelo.