GNU bug report logs - #5595
comment-indent-new-line in f90-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Angelo Graziosi <angelo.graziosi@HIDDEN>; Keywords: help; merged with #14448; dated Thu, 18 Feb 2010 10:58:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 5595 14448. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) help. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 5595 <at> debbugs.gnu.org:


Received: (at 5595) by debbugs.gnu.org; 21 Feb 2010 00:33:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 20 19:33:43 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NizlX-0003PU-1g
	for submit <at> debbugs.gnu.org; Sat, 20 Feb 2010 19:33:43 -0500
Received: from smtp-out108.alice.it ([85.37.17.108])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1NizlU-0003PJ-A0
	for 5595 <at> debbugs.gnu.org; Sat, 20 Feb 2010 19:33:41 -0500
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
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
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
Message-ID: <4B807F59.5020508@HIDDEN>
Date: Sun, 21 Feb 2010 01:33:29 +0100
From: Angelo Graziosi <angelo.graziosi@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it;
	rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: 5595 <at> debbugs.gnu.org
Subject: Re: bug#5595: Commenting in F90
References: <4B7D16C2.3070908@HIDDEN>
	<uc635tlhch.fsf@HIDDEN>	<4B7E5CED.5040509@HIDDEN>
	<qjeikhjea6.fsf@HIDDEN>
In-Reply-To: <qjeikhjea6.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 21 Feb 2010 00:33:35.0859 (UTC)
	FILETIME=[810AEC30:01CAB28D]
X-Spam-Score: -3.6 (---)
X-Debbugs-Envelope-To: 5595
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.4 (---)

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.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5595; Package emacs. Full text available.

Message received at 5595 <at> debbugs.gnu.org:


Received: (at 5595) by debbugs.gnu.org; 19 Feb 2010 18:25:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 19 13:25:44 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NiXXs-0005fv-0A
	for submit <at> debbugs.gnu.org; Fri, 19 Feb 2010 13:25:44 -0500
Received: from chene.dit.umontreal.ca ([132.204.246.20])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <monnier@HIDDEN>) id 1NiXXe-0005fd-LJ
	for 5595 <at> debbugs.gnu.org; Fri, 19 Feb 2010 13:25:42 -0500
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
Received: by faina.iro.umontreal.ca (Postfix, from userid 20848)
	id 0A2C13A6E5; Fri, 19 Feb 2010 13:25:16 -0500 (EST)
From: Stefan Monnier <monnier@HIDDEN>
To: Angelo Graziosi <angelo.graziosi@HIDDEN>
Subject: Re: bug#5595: Commenting in F90
Message-ID: <jwvr5ohaxuv.fsf-monnier+emacs@HIDDEN>
References: <4B7D16C2.3070908@HIDDEN> <uc635tlhch.fsf@HIDDEN>
	<4B7E5CED.5040509@HIDDEN>
Date: Fri, 19 Feb 2010 13:25:16 -0500
In-Reply-To: <4B7E5CED.5040509@HIDDEN> (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)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-NAI-Spam-Score: 0
X-NAI-Spam-Rules: 1 Rules triggered
	RV3474=0
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 5595
Cc: 5595 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -1.9 (-)

>> It's a little ambiguous from that as to whether it indents the first
>> line or not. The Emacs manual is clearer, saying:
>> Like<RET>  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




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5595; Package emacs. Full text available.

Message received at 5595 <at> debbugs.gnu.org:


Received: (at 5595) by debbugs.gnu.org; 19 Feb 2010 18:01:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 19 13:01:28 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NiXAN-0005PJ-LP
	for submit <at> debbugs.gnu.org; Fri, 19 Feb 2010 13:01:27 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1NiXAM-0005P8-90
	for 5595 <at> debbugs.gnu.org; Fri, 19 Feb 2010 13:01:26 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <rgm@HIDDEN>)
	id 1NiXAH-00012i-Md; Fri, 19 Feb 2010 13:01:21 -0500
To: Angelo Graziosi <angelo.graziosi@HIDDEN>
Subject: Re: bug#5595: Commenting in F90
References: <4B7D16C2.3070908@HIDDEN> <uc635tlhch.fsf@HIDDEN>
	<4B7E5CED.5040509@HIDDEN>
From: Glenn Morris <rgm@HIDDEN>
X-Spook: Ron Brown AIMSX Project Monarch 9705 Samford Road
X-Ran: YJ/q}5z3WN0wh^UtrP<PM9Q1|L@q%.fhC\ZyqQ]MAg?i,}zM!|6c*KwCrzfV\d<u;vjXp\
X-Hue: blue
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 19 Feb 2010 13:01:21 -0500
In-Reply-To: <4B7E5CED.5040509@HIDDEN> (Angelo Graziosi's message of "Fri\,
	19 Feb 2010 10\:42\:05 +0100")
Message-ID: <qjeikhjea6.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.0 (------)
X-Debbugs-Envelope-To: 5595
Cc: 5595 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.0 (------)

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...




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5595; Package emacs. Full text available.

Message received at 5595 <at> debbugs.gnu.org:


Received: (at 5595) by debbugs.gnu.org; 19 Feb 2010 09:42:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 19 04:42:27 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NiPNS-0007v0-Lq
	for submit <at> debbugs.gnu.org; Fri, 19 Feb 2010 04:42:26 -0500
Received: from smtp-out01.alice.it ([85.33.2.12])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1NiPNQ-0007uv-E4
	for 5595 <at> debbugs.gnu.org; Fri, 19 Feb 2010 04:42:25 -0500
Received: from FBCMMO04.fbc.local ([192.168.184.135]) by smtp-out01.alice.it
	with Microsoft SMTPSVC(6.0.3790.3959); 
	Fri, 19 Feb 2010 10:42:17 +0100
Received: from FBCMCL01B09.fbc.local ([192.168.171.26]) by FBCMMO04.fbc.local
	with Microsoft SMTPSVC(6.0.3790.3959); 
	Fri, 19 Feb 2010 10:42:16 +0100
Received: from [87.3.197.108] ([87.3.197.108]) by FBCMCL01B09.fbc.local with
	Microsoft SMTPSVC(6.0.3790.3959); Fri, 19 Feb 2010 10:42:14 +0100
Message-ID: <4B7E5CED.5040509@HIDDEN>
Date: Fri, 19 Feb 2010 10:42:05 +0100
From: Angelo Graziosi <angelo.graziosi@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it;
	rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: 5595 <at> debbugs.gnu.org
Subject: Re: bug#5595: Commenting in F90
References: <4B7D16C2.3070908@HIDDEN> <uc635tlhch.fsf@HIDDEN>
In-Reply-To: <uc635tlhch.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 19 Feb 2010 09:42:14.0809 (UTC)
	FILETIME=[D1709090:01CAB147]
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: 5595
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -3.9 (---)

Il 19/02/2010 10.12, Glenn Morris ha scritto:
> It's a little ambiguous from that as to whether it indents the first
> line or not. The Emacs manual is clearer, saying:
>
>     Like<RET>  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...

In any case thanks for clarification.


Ciao,
Angelo.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5595; Package emacs. Full text available.
Changed bug title to 'comment-indent-new-line in f90-mode' from 'Commenting in F90' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 5595 <at> debbugs.gnu.org:


Received: (at 5595) by debbugs.gnu.org; 19 Feb 2010 09:12:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 19 04:12:21 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1NiOuL-00073L-Dl
	for submit <at> debbugs.gnu.org; Fri, 19 Feb 2010 04:12:21 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>)
	id 1NiOuK-00073D-4e; Fri, 19 Feb 2010 04:12:20 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.69)
	(envelope-from <rgm@HIDDEN>)
	id 1NiOuE-0006yX-VA; Fri, 19 Feb 2010 04:12:14 -0500
To: Angelo Graziosi <angelo.graziosi@HIDDEN>
Subject: Re: bug#5595: Commenting in F90
References: <4B7D16C2.3070908@HIDDEN>
From: Glenn Morris <rgm@HIDDEN>
X-Spook: crypto anarchy Commecen SDI Glock Skipjack MIT-LL Dick
X-Ran: I^?-Q/d`)@lZ&y=/xbq\q6}ljdt1nEErAXEW!ob(j&-YA)S'P(s/Lr[\g&xo^#r(g:mOGI
X-Hue: green
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Fri, 19 Feb 2010 04:12:14 -0500
In-Reply-To: <4B7D16C2.3070908@HIDDEN> (Angelo Graziosi's message of "Thu\,
	18 Feb 2010 11\:30\:26 +0100")
Message-ID: <uc635tlhch.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.0 (------)
X-Debbugs-Envelope-To: 5595
Cc: 5595 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.0 (------)

retitle 5595 comment-indent-new-line in f90-mode
stop

Angelo Graziosi wrote:

> C-x C-f foo.f90
>
> Type '!' (it is at line 1, column 0 in Emacs).
>
> Then continue to comment: C-M-j. The new '!' is at line 2, column 2
> and not at line 2, column 0, i.e. below the previous '!', as one
> expects (at least me!). In other word the second '!' is indended.

C-M-j runs comment-indent-new-line, a function which I do not understand. 
Maybe it's doing what it is supposed to do.

The only way to customize the behaviour of this function is through
standard comment variables. As far as I know these are all set
correctly in f90-mode.

The doc-string says

    Break line at point and indent, continuing comment if within one.
    This indents the body of the continued comment
    under the previous comment line.

It's a little ambiguous from that as to whether it indents the first
line or not. The Emacs manual is clearer, saying:

   Like <RET> 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.

Personally I prefer C-j `f90-indent-new-line'.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5595; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Feb 2010 10:57:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 18 05:57:51 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ni44t-0007EM-AK
	for submit <at> debbugs.gnu.org; Thu, 18 Feb 2010 05:57:51 -0500
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1Ni44q-0007ED-G4
	for submit <at> debbugs.gnu.org; Thu, 18 Feb 2010 05:57:49 -0500
Received: from mx10.gnu.org ([199.232.76.166]:38436)
	by fencepost.gnu.org with esmtp (Exim 4.69)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1Ni44n-0003jc-Rs
	for submit <at> debbugs.gnu.org; Thu, 18 Feb 2010 05:57:45 -0500
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim
	4.60) (envelope-from <angelo.graziosi@HIDDEN>) id 1Ni44n-0006Ve-B1
	for submit <at> debbugs.gnu.org; Thu, 18 Feb 2010 05:57:45 -0500
X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_00,
	RATWARE_GECKO_BUILD,RECEIVED_FROM_WINDOWS_HOST,UNPARSEABLE_RELAY 
	autolearn=no version=3.1.0
Received: from lists.gnu.org ([199.232.76.165]:50534)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1Ni44n-0006Va-43
	for submit <at> debbugs.gnu.org; Thu, 18 Feb 2010 05:57:45 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1Ni44m-0003Nn-Lp
	for bug-gnu-emacs@HIDDEN; Thu, 18 Feb 2010 05:57:44 -0500
Received: from [140.186.70.92] (port=41572 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1Ni44k-0003Nf-Ue
	for bug-gnu-emacs@HIDDEN; Thu, 18 Feb 2010 05:57:43 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1Ni44k-0000Qa-Lp
	for bug-gnu-emacs@HIDDEN; Thu, 18 Feb 2010 05:57:43 -0500
Received: from smtp-out01.alice.it ([85.33.2.12]:4028)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <angelo.graziosi@HIDDEN>)
	id 1Ni44k-0000QS-DV; Thu, 18 Feb 2010 05:57:42 -0500
Received: from fbcmmo06.fbc.local ([192.168.184.137]) by smtp-out01.alice.it
	with Microsoft SMTPSVC(6.0.3790.3959); 
	Thu, 18 Feb 2010 11:30:37 +0100
Received: from FBCMCL01B09.fbc.local ([192.168.171.26]) by fbcmmo06.fbc.local
	with Microsoft SMTPSVC(6.0.3790.3959); 
	Thu, 18 Feb 2010 11:30:34 +0100
Received: from [82.57.152.149] ([82.57.152.149]) by FBCMCL01B09.fbc.local with
	Microsoft SMTPSVC(6.0.3790.3959); Thu, 18 Feb 2010 11:30:33 +0100
Message-ID: <4B7D16C2.3070908@HIDDEN>
Date: Thu, 18 Feb 2010 11:30:26 +0100
From: Angelo Graziosi <angelo.graziosi@HIDDEN>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it;
	rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: bug-gnu-emacs <bug-gnu-emacs@HIDDEN>
Subject: Commenting in F90
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 18 Feb 2010 10:30:33.0822 (UTC)
	FILETIME=[66F917E0:01CAB085]
X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -6.6 (------)
X-Debbugs-Envelope-To: submit
Cc: Glenn Morris <rgm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.6 (------)

I do not know if this is a bug but it looks strange to me.

Start Emacs with:

$ emacs -Q &

Then visit a new file:

C-x C-f foo.f90

Type '!' (it is at line 1, column 0 in Emacs).

Then continue to comment: C-M-j. The new '!' is at line 2, column 2 and 
not at line 2, column 0, i.e. below the previous '!', as one expects (at 
least me!). In other word the second '!' is indended.

Why this?

Ciao,
Angelo.





Acknowledgement sent to Angelo Graziosi <angelo.graziosi@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#5595; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.