GNU bug report logs - #14448
Wrong indentation in comment lines for 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 #5595; dated Thu, 23 May 2013 11:37:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 14448) by debbugs.gnu.org; 26 May 2013 18:38:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 26 14:38:08 2013
Received: from localhost ([127.0.0.1]:35705 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UgfpW-0007CI-Gj
	for submit <at> debbugs.gnu.org; Sun, 26 May 2013 14:38:06 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:52244)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1UgfpU-0007Bb-M8
	for 14448 <at> debbugs.gnu.org; Sun, 26 May 2013 14:38:05 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZ3p/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT
X-IPAS-Result: Av4EABK/CFFFpZ3p/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLDiYSFBgNJIgeBsEtkQoDpHqBXoMT
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="14511698"
Received: from 69-165-157-233.dsl.teksavvy.com (HELO pastel.home)
	([69.165.157.233])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	26 May 2013 14:36:43 -0400
Received: by pastel.home (Postfix, from userid 20848)
	id 59BA363127; Sun, 26 May 2013 14:36:47 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#14448: Wrong indentation in comment lines for F90 mode?
Message-ID: <jwvy5b1boan.fsf-monnier+emacs@HIDDEN>
References: <519DF4B7.4020304@HIDDEN> <ka4ndteig7.fsf@HIDDEN>
	<519E754D.1030405@HIDDEN> <jwv8v33iwmc.fsf-monnier+emacs@HIDDEN>
	<ofobbye8ts.fsf@HIDDEN>
Date: Sun, 26 May 2013 14:36:47 -0400
In-Reply-To: <ofobbye8ts.fsf@HIDDEN> (Glenn Morris's message of
	"Sat, 25 May 2013 23:09:03 -0400")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -1.9 (-)
X-Debbugs-Envelope-To: 14448
Cc: 14448 <at> debbugs.gnu.org, Angelo Graziosi <angelo.graziosi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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 (-)

> Is M-j supposed to re-indent the line it starts on, or not?

That's unspecified.  IIUC it doesn't, currently.

> If not, is it supposed to indent the following line as it would normally
> be indented, or to match the indentation of the original line?

The new line should be indented according to indent-according-to-mode.

> If the answers are "no", and "as normal", then there is no bug here.

At least w.r.t M-j, that's my impression as well: the only problem is
that the OP wants his ! comments to be on column 0 whereas f90-mode puts
them in column 1, but that's unrelated to M-j.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14448; Package emacs. Full text available.
Severity set to 'minor' from 'normal' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 14448) by debbugs.gnu.org; 26 May 2013 03:10:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 25 23:10:12 2013
Received: from localhost ([127.0.0.1]:35033 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UgRLY-0002Lp-9z
	for submit <at> debbugs.gnu.org; Sat, 25 May 2013 23:10:12 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:34342 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1UgRLV-0002LS-GM
	for 14448 <at> debbugs.gnu.org; Sat, 25 May 2013 23:10:10 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1UgRKR-0004Ue-FB; Sat, 25 May 2013 23:09:03 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#14448: Wrong indentation in comment lines for F90 mode?
References: <519DF4B7.4020304@HIDDEN> <ka4ndteig7.fsf@HIDDEN>
	<519E754D.1030405@HIDDEN> <jwv8v33iwmc.fsf-monnier+emacs@HIDDEN>
X-Spook: Marxist covert video cryptographic Fortezza Qaddafi
X-Ran: jQ[5U`bAd+D*3'5*TL:Hponq?3DN!%N7i3Esdiu)YvWTzmfMgT<C-Ti8vAV'Nzxe)lcE=s
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sat, 25 May 2013 23:09:03 -0400
In-Reply-To: <jwv8v33iwmc.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
	of "Fri, 24 May 2013 23:23:27 -0400")
Message-ID: <ofobbye8ts.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: -8.0 (--------)
X-Debbugs-Envelope-To: 14448
Cc: 14448 <at> debbugs.gnu.org, Angelo Graziosi <angelo.graziosi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -8.0 (--------)

Stefan Monnier wrote:

> I see now that it behaves differently because f90 tells it to, via
> f90-comment-indent.  Try:
>
> ! bla
> ! bli
>
> and then hit either TAB or M-; on the second line, and you'll see it
> gets indented by 1 more space, just like in your example.

ITYM 2 spaces?

This takes me back to my original question:
Is M-j supposed to re-indent the line it starts on, or not?

If not, is it supposed to indent the following line as it would normally
be indented, or to match the indentation of the original line?

If the answers are "no", and "as normal", then there is no bug here.

> It seems that this happens only for comments before source code... 

Probably because that is an ambiguous state, depending on whether or not
a leading "program" line gets added. See
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3729#10




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14448; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 25 May 2013 11:26:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 25 07:26:05 2013
Received: from localhost ([127.0.0.1]:33646 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UgCbq-0005Bx-PZ
	for submit <at> debbugs.gnu.org; Sat, 25 May 2013 07:26:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47580)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UgCbo-0005BO-M7
	for submit <at> debbugs.gnu.org; Sat, 25 May 2013 07:26:01 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UgCah-0006k9-Pt
	for submit <at> debbugs.gnu.org; Sat, 25 May 2013 07:24:54 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:36897)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UgCah-0006k3-Me
	for submit <at> debbugs.gnu.org; Sat, 25 May 2013 07:24:51 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58924)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UgCae-0004zo-UJ
	for bug-gnu-emacs@HIDDEN; Sat, 25 May 2013 07:24:51 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UgCaZ-0006iS-QU
	for bug-gnu-emacs@HIDDEN; Sat, 25 May 2013 07:24:48 -0400
Received: from smtp201.alice.it ([82.57.200.97]:44945)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>)
	id 1UgCaV-0006hH-FS; Sat, 25 May 2013 07:24:39 -0400
Received: from [192.168.1.100] (79.19.243.20) by smtp201.alice.it (8.6.060.15)
	(authenticated as angelo.graziosi@HIDDEN)
	id 5123901C072F7EF6; Sat, 25 May 2013 13:24:37 +0200
Message-ID: <51A09F6C.20102@HIDDEN>
Date: Sat, 25 May 2013 13:24:28 +0200
From: Angelo Graziosi <angelo.graziosi@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#14448: Wrong indentation in comment lines for F90 mode?
References: <519DF4B7.4020304@HIDDEN> <ka4ndteig7.fsf@HIDDEN>
	<519E754D.1030405@HIDDEN> <jwv8v33iwmc.fsf-monnier+emacs@HIDDEN>
In-Reply-To: <jwv8v33iwmc.fsf-monnier+emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: submit
Cc: Glenn Morris <rgm@HIDDEN>, bug-emacs <bug-gnu-emacs@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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.9 (------)

Il 25/05/2013 5.23, Stefan Monnier ha scritto:
>>> I don't understand what comment-indent-new-line is supposed to do, nor
>>> which variables modes should set to make it work correctly.
>
> To tell you the truth, I don't know either.  The way I see it, M-j
> should be bound to a function that funcalls comment-line-break-function
> (whose default value is comment-indent-new-line).  So modes can modify
> comment-line-break-function (ideally via add-function) to tune
> its behavior.
>
>> F90 is a "free text style of languages and comments" like C++, so one
>> doesn't understand why its comments behaves differently...
>
> I see now that it behaves differently because f90 tells it to, via
> f90-comment-indent.  Try:
>
> ! bla
> ! bli
>
> and then hit either TAB or M-; on the second line, and you'll see it
> gets indented by 1 more space, just like in your example.

Indeed...

It seems that this happens only for comments before source code... 
Anyway, it isn't very important.

Thanks for clarification..

Ciao.
  Angelo.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14448; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 25 May 2013 03:24:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 24 23:24:38 2013
Received: from localhost ([127.0.0.1]:33179 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ug55x-0005nW-FP
	for submit <at> debbugs.gnu.org; Fri, 24 May 2013 23:24:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:47361)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <monnier@HIDDEN>) id 1Ug55v-0005nB-RX
	for submit <at> debbugs.gnu.org; Fri, 24 May 2013 23:24:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <monnier@HIDDEN>) id 1Ug54t-0007mf-0z
	for submit <at> debbugs.gnu.org; Fri, 24 May 2013 23:23:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-99.9 required=5.0 tests=BAYES_50, RCVD_IN_DNSWL_LOW, 
	USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:57370)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <monnier@HIDDEN>) id 1Ug54s-0007ma-U9
	for submit <at> debbugs.gnu.org; Fri, 24 May 2013 23:23:30 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58710)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <monnier@HIDDEN>) id 1Ug54r-00058L-HO
	for bug-gnu-emacs@HIDDEN; Fri, 24 May 2013 23:23:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <monnier@HIDDEN>) id 1Ug54q-0007m5-GA
	for bug-gnu-emacs@HIDDEN; Fri, 24 May 2013 23:23:29 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:53670)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <monnier@HIDDEN>)
	id 1Ug54q-0007ly-Bo; Fri, 24 May 2013 23:23:28 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpZoF/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM
X-IPAS-Result: Av4EABK/CFFFpZoF/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2RCgOkeoFegxM
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="14401910"
Received: from 69-165-154-5.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net)
	([69.165.154.5])
	by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA;
	24 May 2013 23:23:22 -0400
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
	id 0DCA8AE1B4; Fri, 24 May 2013 23:23:27 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Angelo Graziosi <angelo.graziosi@HIDDEN>
Subject: Re: bug#14448: Wrong indentation in comment lines for F90 mode?
Message-ID: <jwv8v33iwmc.fsf-monnier+emacs@HIDDEN>
References: <519DF4B7.4020304@HIDDEN> <ka4ndteig7.fsf@HIDDEN>
	<519E754D.1030405@HIDDEN>
Date: Fri, 24 May 2013 23:23:27 -0400
In-Reply-To: <519E754D.1030405@HIDDEN> (Angelo Graziosi's message of "Thu,
	23 May 2013 22:00:13 +0200")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: submit
Cc: Glenn Morris <rgm@HIDDEN>, bug-emacs <bug-gnu-emacs@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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.2 (------)

>> I don't understand what comment-indent-new-line is supposed to do, nor
>> which variables modes should set to make it work correctly.

To tell you the truth, I don't know either.  The way I see it, M-j
should be bound to a function that funcalls comment-line-break-function
(whose default value is comment-indent-new-line).  So modes can modify
comment-line-break-function (ideally via add-function) to tune
its behavior.

> F90 is a "free text style of languages and comments" like C++, so one
> doesn't understand why its comments behaves differently...

I see now that it behaves differently because f90 tells it to, via
f90-comment-indent.  Try:

! bla
! bli

and then hit either TAB or M-; on the second line, and you'll see it
gets indented by 1 more space, just like in your example.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14448; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 23 May 2013 20:12:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 23 16:12:54 2013
Received: from localhost ([127.0.0.1]:58772 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Ufbsb-0003SH-M7
	for submit <at> debbugs.gnu.org; Thu, 23 May 2013 16:12:53 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42924)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfbsZ-0003Rr-J2
	for submit <at> debbugs.gnu.org; Thu, 23 May 2013 16:12:52 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfbrX-0002pI-K8
	for submit <at> debbugs.gnu.org; Thu, 23 May 2013 16:11:54 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:40789)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfbrX-0002p3-Hj
	for submit <at> debbugs.gnu.org; Thu, 23 May 2013 16:11:47 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54199)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfbrR-0005Ve-06
	for bug-gnu-emacs@HIDDEN; Thu, 23 May 2013 16:11:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1Ufbgw-0007oP-IQ
	for bug-gnu-emacs@HIDDEN; Thu, 23 May 2013 16:01:00 -0400
Received: from smtp203.alice.it ([82.57.200.99]:51648)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>)
	id 1Ufbgo-0007kz-B0; Thu, 23 May 2013 16:00:42 -0400
Received: from [192.168.1.100] (80.183.93.76) by smtp203.alice.it (8.6.060.15)
	(authenticated as angelo.graziosi@HIDDEN)
	id 5123A597071183AF; Thu, 23 May 2013 22:00:37 +0200
Message-ID: <519E754D.1030405@HIDDEN>
Date: Thu, 23 May 2013 22:00:13 +0200
From: Angelo Graziosi <angelo.graziosi@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#14448: Wrong indentation in comment lines for F90 mode?
References: <519DF4B7.4020304@HIDDEN> <ka4ndteig7.fsf@HIDDEN>
In-Reply-To: <ka4ndteig7.fsf@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -5.5 (-----)
X-Debbugs-Envelope-To: submit
Cc: bug-emacs <bug-gnu-emacs@HIDDEN>,
	Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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.9 (------)

Il 23/05/2013 19.04, Glenn Morris ha scritto:
> Angelo Graziosi wrote:
>
>> Start Emacs with
>>
>> $ emacs -Q &
>>
>> then "C-x C-f foo.f90". Now type "!" to start a comment line and then
>> type M-j to produce other comment lines. The result is as follow:
>>
>>
>> !
>>    !
>
> You reported this before.
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5595
>
> As I said then:
>
>    I don't understand what comment-indent-new-line is supposed to do, nor
>    which variables modes should set to make it work correctly.
>

Oh, sorry for the noise then... :(

Any way, all my observations I did in that thread are still alive...


Stefan, have you some comment? In that thread you wrote:

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

F90 is a "free text style of languages and comments" like C++, so one 
doesn't understand why its comments behaves differently...

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

(WoW! I didn't remember that... :-) )



Ciao,
  Angelo.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14448; Package emacs. Full text available.
Merged 5595 14448. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 14448) by debbugs.gnu.org; 23 May 2013 17:05:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 23 13:05:20 2013
Received: from localhost ([127.0.0.1]:58496 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UfYx5-0004C9-Tf
	for submit <at> debbugs.gnu.org; Thu, 23 May 2013 13:05:20 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:37063 ident=Debian-exim)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1UfYx2-0004C0-AR
	for 14448 <at> debbugs.gnu.org; Thu, 23 May 2013 13:05:18 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1UfYwC-0001CJ-KH; Thu, 23 May 2013 13:04:24 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Angelo Graziosi <angelo.graziosi@HIDDEN>
Subject: Re: bug#14448: Wrong indentation in comment lines for F90 mode?
References: <519DF4B7.4020304@HIDDEN>
X-Spook: chameleon man FIPS140 BROMURE global Ermes Cocaine
X-Ran: R^)SDo/!$+0}F(ajd<l^E8>4Ui,GMqeE&8Q&GJW'|qYZi8)y>#+dG6m+/t7o{Pd5]p@9ee
X-Hue: red
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 23 May 2013 13:04:24 -0400
In-Reply-To: <519DF4B7.4020304@HIDDEN> (Angelo Graziosi's message of "Thu,
	23 May 2013 12:51:35 +0200")
Message-ID: <ka4ndteig7.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.6 (------)
X-Debbugs-Envelope-To: 14448
Cc: 14448 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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: -8.0 (--------)

Angelo Graziosi wrote:

> Start Emacs with
>
> $ emacs -Q &
>
> then "C-x C-f foo.f90". Now type "!" to start a comment line and then
> type M-j to produce other comment lines. The result is as follow:
>
>
> !
>   !

You reported this before.
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5595

As I said then:

  I don't understand what comment-indent-new-line is supposed to do, nor
  which variables modes should set to make it work correctly.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#14448; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 23 May 2013 11:36:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 23 07:36:58 2013
Received: from localhost ([127.0.0.1]:57685 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UfTpJ-0008JO-Ug
	for submit <at> debbugs.gnu.org; Thu, 23 May 2013 07:36:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57484)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfTpI-0008J6-7s
	for submit <at> debbugs.gnu.org; Thu, 23 May 2013 07:36:56 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfToM-00036y-OM
	for submit <at> debbugs.gnu.org; Thu, 23 May 2013 07:36:01 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: ***
X-Spam-Status: No, score=3.2 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_BL,
	RP_MATCHES_RCVD autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:45561)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfToM-00036u-L1
	for submit <at> debbugs.gnu.org; Thu, 23 May 2013 07:35:58 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40568)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfToI-0001R0-Vr
	for bug-gnu-emacs@HIDDEN; Thu, 23 May 2013 07:35:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfToC-00034y-1r
	for bug-gnu-emacs@HIDDEN; Thu, 23 May 2013 07:35:54 -0400
Received: from smtp204.alice.it ([82.57.200.100]:59122)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <angelo.graziosi@HIDDEN>) id 1UfT7d-0005tG-UZ
	for bug-gnu-emacs@HIDDEN; Thu, 23 May 2013 06:51:50 -0400
Received: from [192.168.1.100] (80.183.93.76) by smtp204.alice.it (8.6.060.15)
	(authenticated as angelo.graziosi@HIDDEN)
	id 512397E607083098 for bug-gnu-emacs@HIDDEN;
	Thu, 23 May 2013 12:51:44 +0200
Message-ID: <519DF4B7.4020304@HIDDEN>
Date: Thu, 23 May 2013 12:51:35 +0200
From: Angelo Graziosi <angelo.graziosi@HIDDEN>
User-Agent: Mozilla/5.0 (Windows NT 5.1;
	rv:17.0) Gecko/20130509 Thunderbird/17.0.6
MIME-Version: 1.0
To: bug-emacs <bug-gnu-emacs@HIDDEN>
Subject: Wrong indentation in comment lines for F90 mode?
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
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/cgi-bin/mailman/private/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.9 (------)

Start Emacs with

$ emacs -Q &

then "C-x C-f foo.f90". Now type "!" to start a comment line and then 
type M-j to produce other comment lines. The result is as follow:


!
   !
   !
   !
   !

from the second line, the comment is indented. Repeating the same steps 
for a C++ mode file, "C-x C-f foo.cpp", the result is

//
//
//
//
//

without indentation. I would expect the same for F90 mode...

So, is the behavior in F90 mode to be expected (on purpose) or is it wrong?


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 bug-gnu-emacs@HIDDEN:
bug#14448; 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.