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 21:51:06 -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 1404265936 21395 80.91.229.3 (2 Jul 2014 01:52:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2014 01:52:16 +0000 (UTC) Cc: Roland Winkler , 17895@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 02 03:52:08 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 1X29iR-0004JG-Rw for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jul 2014 03:52:07 +0200 Original-Received: from localhost ([::1]:50635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X29iR-0007Wo-H8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Jul 2014 21:52:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X29iN-0007Wf-Ti for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 21:52:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X29iN-0000Fb-3Y for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 21:52:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X29iM-0000EH-Vx for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 21:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X29iM-0007jO-8Q for bug-gnu-emacs@gnu.org; Tue, 01 Jul 2014 21:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 02 Jul 2014 01:52: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.140426587029639 (code B ref 17895); Wed, 02 Jul 2014 01:52:02 +0000 Original-Received: (at 17895) by debbugs.gnu.org; 2 Jul 2014 01:51:10 +0000 Original-Received: from localhost ([127.0.0.1]:39755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X29hW-0007hy-8C for submit@debbugs.gnu.org; Tue, 01 Jul 2014 21:51:10 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:58126 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X29hT-0007hq-Kv for 17895@debbugs.gnu.org; Tue, 01 Jul 2014 21:51:08 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1X29hS-0005A0-Pi; Tue, 01 Jul 2014 21:51:06 -0400 X-Spook: NASA Albright domestic disruption White Water UOP Medco X-Ran: v%fnK$Jq}B`@o$9g>g22,9}>oWgC]>>(qaGa*)(&(IVI3-k.%bc~AtO@YFVEV:f"88+h?s X-Hue: cyan X-Attribution: GM In-Reply-To: (Stefan Monnier's message of "Tue, 01 Jul 2014 21:17:47 -0400") 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:91078 Archived-At: Stefan Monnier wrote: > Instead, the problem here seems to only affect empty lines (i.e. lines > where the text hasn't been written yet) (How do you type RET and have text already written on the new line...?) > , and this problem affects many/most modes. Oh duh, of course. if foo; then ... ... when will endif appear... ... who knows... endif # oh here it is > But I guess if the first non-whitespace char is a capital C, > fortran-mode has a similar problem to python-mode in that it can't know > for sure if the line should be assumed to be a comment (and go to > column-0) or to be some instruction that happens to start with a capital > C (and should go to some further column). Yep. (CHARACTER for example.) So I don't really see that there is anything to do here.