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#14448: Wrong indentation in comment lines for F90 mode? Date: Fri, 24 May 2013 23:23:27 -0400 Message-ID: References: <519DF4B7.4020304@alice.it> <519E754D.1030405@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369452251 632 80.91.229.3 (25 May 2013 03:24:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 May 2013 03:24:11 +0000 (UTC) Cc: 14448@debbugs.gnu.org To: Angelo Graziosi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 25 05:24:10 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 1Ug55V-0001qG-Qx for geb-bug-gnu-emacs@m.gmane.org; Sat, 25 May 2013 05:24:10 +0200 Original-Received: from localhost ([::1]:47811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ug55V-0005Aw-7n for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 May 2013 23:24:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ug55R-0005Aj-GD for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 23:24:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ug55Q-0007y1-0i for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 23:24:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ug55P-0007xx-UI for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 23:24:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Ug56M-0005p1-Gv for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 23:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 May 2013 03:25: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.136945227822295 (code B ref -1); Sat, 25 May 2013 03:25:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 May 2013 03:24:38 +0000 Original-Received: from localhost ([127.0.0.1]:33179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ug55x-0005nW-FP for submit@debbugs.gnu.org; Fri, 24 May 2013 23:24:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47361) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ug55v-0005nB-RX for submit@debbugs.gnu.org; Fri, 24 May 2013 23:24:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ug54t-0007mf-0z for submit@debbugs.gnu.org; Fri, 24 May 2013 23:23:31 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:57370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ug54s-0007ma-U9 for submit@debbugs.gnu.org; Fri, 24 May 2013 23:23:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ug54r-00058L-HO for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 23:23:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ug54q-0007m5-GA for bug-gnu-emacs@gnu.org; Fri, 24 May 2013 23:23:29 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:53670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) 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" Original-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 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 0DCA8AE1B4; Fri, 24 May 2013 23:23:27 -0400 (EDT) In-Reply-To: <519E754D.1030405@alice.it> (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) 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:74549 Archived-At: >> 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