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#4259: Cannot indent fortran continue statement in emacs 23 Date: Tue, 25 Aug 2009 21:56:11 -0400 Message-ID: <19092.38459.64403.819245@fencepost.gnu.org> References: <4A9436EA.3070303@cal.berkeley.edu> Reply-To: Glenn Morris , 4259@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251252436 24622 80.91.229.12 (26 Aug 2009 02:07:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2009 02:07:16 +0000 (UTC) Cc: 4259@emacsbugs.donarmstrong.com To: Ushnish Basu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 04:07:08 2009 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.50) id 1Mg7uk-0005HG-UA for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2009 04:07:07 +0200 Original-Received: from localhost ([127.0.0.1]:38737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mg7uk-0006MQ-Bc for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Aug 2009 22:07:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mg7ue-0006MH-Tk for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2009 22:07:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mg7uZ-0006Jb-NT for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2009 22:06:59 -0400 Original-Received: from [199.232.76.173] (port=35964 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mg7uZ-0006JQ-EZ for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2009 22:06:55 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50426) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mg7uY-0006oI-Nu for bug-gnu-emacs@gnu.org; Tue, 25 Aug 2009 22:06:55 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7Q26q22025047; Tue, 25 Aug 2009 19:06:52 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7Q258OZ024558; Tue, 25 Aug 2009 19:05:08 -0700 Resent-Date: Tue, 25 Aug 2009 19:05:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 26 Aug 2009 02:05:08 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4259 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4259-submit@emacsbugs.donarmstrong.com id=B4259.125125177322476 (code B ref 4259); Wed, 26 Aug 2009 02:05:08 +0000 Original-Received: (at 4259) by emacsbugs.donarmstrong.com; 26 Aug 2009 01:56:13 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7Q1uCRl022473 for <4259@emacsbugs.donarmstrong.com>; Tue, 25 Aug 2009 18:56:13 -0700 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Mg7kB-0002kB-3M; Tue, 25 Aug 2009 21:56:11 -0400 In-Reply-To: <4A9436EA.3070303@cal.berkeley.edu> X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: cyan X-Ran: ;i/Nt9qFFcBu/AK]N,y^&oSsq.k`qc5$i@iSuhZC5`U{Dd" 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:30572 Archived-At: Please use M-x report-emacs-bug to report Emacs bugs, rather than sending mail to addresses in the source files. Ushnish Basu wrote (on Tue, 25 Aug 2009 at 12:09 -0700): > Currently I am using version 23.1.1, but I did not have this problem > with 23.0.60 from CVS. [...] > subroutine first > do 10 i=1,10 > 10 continue > end > do 20 i=1,100 > 20 continue > > If I run fortran-indent-line on the first continue (label 10) it works > fine. However, if I run it on the second one (label 20), I get the error: > > fortran-check-end-prog-re: Lisp nesting exceeds 'max-lisp-eval-depth' The example does not look like valid Fortran, so I'm not too bothered if fortran-mode cannot indent it (although an infinite loop is not a nice way to fail). Do you have a minimum example of a valid Fortran file that fails in this way? The problem is another (see eg bug #2106) infinite loop in end-of-defun, when called from the start of the "20" line. It's not immediately obvious to me whether this is a problem in fortran-mode or in end-of-defun.