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#14448: Wrong indentation in comment lines for F90 mode? Date: Sat, 25 May 2013 13:24:28 +0200 Message-ID: <51A09F6C.20102@alice.it> References: <519DF4B7.4020304@alice.it> <519E754D.1030405@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369481174 5039 80.91.229.3 (25 May 2013 11:26:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 May 2013 11:26:14 +0000 (UTC) Cc: 14448@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 25 13:26:13 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UgCbz-0004Lu-D3 for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 May 2013 13:26:11 +0200 Original-Received: from localhost ([::1]:55638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgCby-0005FD-R1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 May 2013 07:26:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59478) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgCbu-0005Ep-0r for bug-gnu-emacs@gnu.org; Sat, 25 May 2013 07:26:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgCbp-0007Ed-Uc for bug-gnu-emacs@gnu.org; Sat, 25 May 2013 07:26:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgCbp-0007EV-RX for bug-gnu-emacs@gnu.org; Sat, 25 May 2013 07:26:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UgCco-0005Ft-6e for bug-gnu-emacs@gnu.org; Sat, 25 May 2013 07:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Angelo Graziosi Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 May 2013 11:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14448 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: help X-Debbugs-Original-Cc: Glenn Morris , bug-emacs Original-Received: via spool by submit@debbugs.gnu.org id=B.136948116519985 (code B ref -1); Sat, 25 May 2013 11:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2013 11:26:05 +0000 Original-Received: from localhost ([127.0.0.1]:33646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UgCbq-0005Bx-PZ for submit@debbugs.gnu.org; Sat, 25 May 2013 07:26:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47580) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UgCbo-0005BO-M7 for submit@debbugs.gnu.org; Sat, 25 May 2013 07:26:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgCah-0006k9-Pt for submit@debbugs.gnu.org; Sat, 25 May 2013 07:24:54 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:36897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgCah-0006k3-Me for submit@debbugs.gnu.org; Sat, 25 May 2013 07:24:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgCae-0004zo-UJ for bug-gnu-emacs@gnu.org; Sat, 25 May 2013 07:24:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgCaZ-0006iS-QU for bug-gnu-emacs@gnu.org; Sat, 25 May 2013 07:24:48 -0400 Original-Received: from smtp201.alice.it ([82.57.200.97]:44945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgCaV-0006hH-FS; Sat, 25 May 2013 07:24:39 -0400 Original-Received: from [192.168.1.100] (79.19.243.20) by smtp201.alice.it (8.6.060.15) (authenticated as angelo.graziosi@alice.it) id 5123901C072F7EF6; Sat, 25 May 2013 13:24:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 In-Reply-To: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74559 Archived-At: 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.