GNU bug report logs - #4259
Cannot indent fortran continue statement in emacs 23

Previous Next

Package: emacs;

Reported by: Ushnish Basu <ubasu <at> cal.berkeley.edu>

Date: Tue, 25 Aug 2009 19:50:04 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Subject: bug#4259: marked as done (Cannot indent fortran continue
 statement in emacs 23)
Date: Sun, 30 Aug 2009 01:45:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 29 Aug 2009 21:40:33 -0400
with message-id <ja8wh23wq6.fsf <at> fencepost.gnu.org>
and subject line Re: Cannot indent fortran continue statement in emacs 23
has caused the Emacs bug report #4259,
regarding Cannot indent fortran continue statement in emacs 23
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact help-debbugs <at> gnu.org
immediately.)


-- 
4259: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4259
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ushnish Basu <ubasu <at> cal.berkeley.edu>
To: "Michael D. Prange" <prange <at> erl.mit.edu>, Glenn Morris <rgm <at> gnu.org>
Subject: Cannot indent fortran continue statement in emacs 23
Date: Tue, 25 Aug 2009 12:09:30 -0700
Hello,

I believe I came across a bug in the latest version of the fortran mode 
in emacs 23. Currently I am using version 23.1.1, but I did not have 
this problem with 23.0.60 from CVS.

Please see the following sample code - I have arranged it as such only 
to illustrate the problem:

      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'

presumably because it is after the 'end'

If I increase max-lisp-eval-depth (and max-specpdl-size) to 10000, then 
I get the error

fortran-check-end-prog-re: Variable binding depth exceeds max-specpdl-size

Is this something that has been fixed in CVS?

I look forward to hearing back from you.

Thanks,

Ushnish

[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 4259-done <at> debbugs.gnu.org
Subject: Re: Cannot indent fortran continue statement in emacs 23
Date: Sat, 29 Aug 2009 21:40:33 -0400
I believe this is fixed in the current CVS trunk. It would be great if
you are able to test it out.

2009-08-30  Glenn Morris  <rgm at gnu.org>

  * progmodes/fortran.el (fortran-start-prog-re): New constant, extracted
  from fortran-current-defun.
  (fortran-beginning-of-subprogram): Be more precise about finding the
  start, to avoid an infinite loop in end-of-defun.  (Bug#4259)
  (fortran-end-of-subprogram): Simplify.
  (fortran-current-defun): Use fortran-start-prog-re.

This bug report was last modified 15 years and 346 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.