From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fred Krogh Newsgroups: gmane.emacs.bugs Subject: bug#14076: 24.3; Comments in Fortran Source Date: Tue, 02 Apr 2013 17:34:58 -0700 Organization: Math a la Carte Message-ID: <515B7932.7020206@mathalacarte.com> References: <87vc8b8r6d.fsf@mon1.i-did-not-set--mail-host-address--so-tickle-me> <51564D9C.4030905@mathalacarte.com> Reply-To: fkrogh@mathalacarte.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364949368 25188 80.91.229.3 (3 Apr 2013 00:36:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Apr 2013 00:36:08 +0000 (UTC) Cc: 14076@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 03 02:36:36 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 1UNBgp-0004FN-7H for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 02:36:35 +0200 Original-Received: from localhost ([::1]:52901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNBgQ-00013p-3Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 20:36:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNBgL-00013k-AS for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2013 20:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNBgH-0002Wy-H5 for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2013 20:36:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNBgH-0002Ws-DA for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2013 20:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UNBjB-0002ta-VG for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2013 20:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fred Krogh Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Apr 2013 00:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14076 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.136494949111065 (code B ref -1); Wed, 03 Apr 2013 00:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Apr 2013 00:38:11 +0000 Original-Received: from localhost ([127.0.0.1]:58906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UNBiN-0002sP-FB for submit@debbugs.gnu.org; Tue, 02 Apr 2013 20:38:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32948) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UNBiL-0002sI-80 for submit@debbugs.gnu.org; Tue, 02 Apr 2013 20:38:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNBfO-0002Pg-Lh for submit@debbugs.gnu.org; Tue, 02 Apr 2013 20:35:07 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:34239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNBfO-0002PZ-Jh for submit@debbugs.gnu.org; Tue, 02 Apr 2013 20:35:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNBfN-0000yB-Iy for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2013 20:35:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNBfM-0002Ma-K7 for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2013 20:35:05 -0400 Original-Received: from mathalacarte.com ([216.86.203.11]:54677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNBfM-0002Fq-Ar; Tue, 02 Apr 2013 20:35:04 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mathalacarte.com (Postfix) with ESMTP id 217823C0E58; Tue, 2 Apr 2013 17:35:02 -0700 (PDT) X-Virus-Scanned: amavisd-new at mathalacarte.com Original-Received: from mathalacarte.com ([127.0.0.1]) by localhost (mathalacarte.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pRUKxZQ_BUcv; Tue, 2 Apr 2013 17:34:58 -0700 (PDT) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by mathalacarte.com (Postfix) with ESMTP id 719FF3C0CFD; Tue, 2 Apr 2013 17:34:58 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130325 Thunderbird/17.0.4 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:73101 Archived-At: On 04/02/2013 05:19 PM, Glenn Morris wrote: > Please keep the debbugs address cc'd. > > Fred Krogh wrote: > >> O.k. The program shows up with emacs -Q with this program >> >> program tmp >> integer :: i >> do i = 1, 5 >> ! Comment >> print '("i=",i0)', i >> end do >> end program tmp >> >> Highlight the whole program, then \ >> and the ! Comment is indented, and I think this should not happen. > Why do you think it should not happen? > F90 mode has always behaved like this. I'm hoping that just because it has "always" done this, that does not make it correct. > > Earlier you said: > >> I have options set so that comments should not be touched when >> formatting a region, > What options are those? fortran-comment-indent-style is a variable defined in `fortran.el'. Its value is nil Original value was fixed This variable is safe as a file local variable if its value satisfies the predicate which is a byte-compiled expression. Documentation: How to indent comments. nil forces comment lines not to be touched; `fixed' indents to `fortran-comment-line-extra-indent' columns beyond `fortran-minimum-statement-indent-fixed' (if `indent-tabs-mode' nil), or `fortran-minimum-statement-indent-tab' (if `indent-tabs-mode' non-nil); `relative' indents to current Fortran indentation plus `fortran-comment-line-extra-indent'. You can customize this variable. Specifically nil forces comment lines not to be touched. When you get down to it, I don't care what nil does, but I certainly want some way to say "don't change my comments". But from the above, that seems to be what nil is supposed to do. I'd be happy if there was some choice that did this, but here is what I see for choices Fortran Comment Indent Style: (*) Untouched ( ) fixed ( ) relative State : SAVED and set. How to indent comments. Hide nil forces comment lines not to be touched; `fixed' indents to `fortran-comment-line-extra-indent' columns beyond `fortran-minimum-statement-indent-fixed' (if `indent-tabs-mode' nil), or `fortran-minimum-statement-indent-tab' (if `indent-tabs-mode' non-nil); `relative' indents to current Fortran indentation plus `fortran-comment-line-extra-indent'. Groups: Fortran Indent I have fortran-comment-line-extra-indent set to 0. Perhaps there is some combination in there that would make it do what I want, but since it appears that nil should do the job, I've filed this report. Many thanks for looking into this. Fred