From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#5595: Commenting in F90 Date: Fri, 19 Feb 2010 04:12:14 -0500 Message-ID: References: <4B7D16C2.3070908@alice.it> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266571401 12623 80.91.229.12 (19 Feb 2010 09:23:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2010 09:23:21 +0000 (UTC) Cc: 5595@debbugs.gnu.org To: Angelo Graziosi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 19 10:23:18 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 1NiP4u-0003ed-NG for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2010 10:23:17 +0100 Original-Received: from localhost ([127.0.0.1]:58990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiP4u-00026u-4g for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Feb 2010 04:23:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiP4e-0001ur-6T for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 04:23:00 -0500 Original-Received: from [140.186.70.92] (port=36099 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiP4b-0001tw-LC for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 04:22:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NiP4a-0000sx-Kv for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 04:22:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58475) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiP4a-0000st-Bd for bug-gnu-emacs@gnu.org; Fri, 19 Feb 2010 04:22:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NiOv0-00073n-Eb; Fri, 19 Feb 2010 04:13:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Feb 2010 09:13: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.126657074127118 (code B ref 5595); Fri, 19 Feb 2010 09:13:02 +0000 Original-Received: (at 5595) by debbugs.gnu.org; 19 Feb 2010 09:12:21 +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 1NiOuL-00073L-Dl for submit@debbugs.gnu.org; Fri, 19 Feb 2010 04:12:21 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiOuK-00073D-4e; Fri, 19 Feb 2010 04:12:20 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NiOuE-0006yX-VA; Fri, 19 Feb 2010 04:12:14 -0500 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-Attribution: GM In-Reply-To: <4B7D16C2.3070908@alice.it> (Angelo Graziosi's message of "Thu\, 18 Feb 2010 11\:30\:26 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 19 Feb 2010 04:13: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:35190 Archived-At: 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 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'.