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#17895: 24.3.91; electric-indent-mode not quite right with comments in fortran-mode Date: Tue, 01 Jul 2014 19:38:40 -0400 Message-ID: References: <87vbrgahqp.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1404257959 3806 80.91.229.3 (1 Jul 2014 23:39:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2014 23:39:19 +0000 (UTC) Cc: 17895@debbugs.gnu.org To: "Roland Winkler" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 02 01:39:12 2014 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 1X27dm-00016r-Rb for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 01:39:10 +0200 Original-Received: from localhost ([::1]:50362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X27dm-0000Rz-E3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Jul 2014 19:39:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X27di-0000Rt-K7 for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 19:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X27de-0004L7-UC for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 19:39:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X27de-0004L2-QJ for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 19:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X27de-0003AD-CF for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 19:39:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87vbrgahqp.fsf@gnu.org> Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jul 2014 23:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17895 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17895-submit@debbugs.gnu.org id=B17895.140425792512132 (code B ref 17895); Tue, 01 Jul 2014 23:39:02 +0000 Original-Received: (at 17895) by debbugs.gnu.org; 1 Jul 2014 23:38:45 +0000 Original-Received: from localhost ([127.0.0.1]:39679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X27dN-00039c-0p for submit@debbugs.gnu.org; Tue, 01 Jul 2014 19:38:45 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:55095 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X27dJ-00039T-Ph for 17895@debbugs.gnu.org; Tue, 01 Jul 2014 19:38:42 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1X27dI-00063O-OP; Tue, 01 Jul 2014 19:38:40 -0400 X-Spook: enemy of the state Aladdin Telex NSA Guantanamo Agfa X-Ran: LC{Q;(yYm9\sY=&I:F{$%SmB3}+01H@f]n&q~*SI(V:u5_1.TIobb[8|LQ;1g$8g.ENltG X-Hue: blue X-Attribution: GM 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.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:91069 Archived-At: "Roland Winkler" wrote: > emacs -Q > insert a multiline comment while editing a file with fortran-mode But Fortran doesn't have multi-line comments. :) I know what you mean though, you mean that the desired indentation of the new line isn't known in advance, because it depends on what you write. Other modes, such as Python, have similar issues. There, TAB cycles between possible indent positions. I don't think I see the point in adding something like that for fixed-format Fortran though. > A similar problem exists with multiline statements requiring > fortran-continuation-string in column 5. I don't see the issue here. Previously you would have to enter: RET SPC SPC SPC SPC SPC $ or: RET TAB DEL $ or: RET $ TAB The 1st is inefficient. The 2nd is replaced by: RET DEL $ (less typing) The 3rd still works. > I do not see the benefit of this new behavior in the context of > fortran-mode. Maybe electric-indent-chars should be locally bound to > nil in fortran-mode. Seems like a sledgehammer solution, just for the sake of "C" comments. Even g77 supports "!" comments. The new method is less typing on average, unless you write more "C" comments than code.